Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001449/0.001449, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.991/1.991, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00113/0.00113, allocations: 92.91 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.978e-05/2.941e-05, allocations: 4 kB / 314.9 MB, free: 9.055 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3338/0.3339, allocations: 47.56 MB / 362.4 MB, free: 45.73 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1485/0.4824, allocations: 89.82 MB / 452.3 MB, free: 12.37 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003126/0.4828, allocations: 87.05 kB / 452.3 MB, free: 12.29 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.2528/0.7356, allocations: 56.82 MB / 0.4972 GB, free: 3.109 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.7357, allocations: 0 / 0.4972 GB, free: 3.109 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0001422/0.7358, allocations: 44 kB / 0.4973 GB, free: 3.066 MB / 395.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 934 * Number of variables: 934 Notification: Performance of Generate backend data structure: time 0.009533/0.7454, allocations: 2.539 MB / 0.4997 GB, free: 484 kB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.164e-05/0.7455, allocations: 8.031 kB / 0.4998 GB, free: 476 kB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2854/1.031, allocations: 1.97 MB / 0.5017 GB, free: 100.1 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01344/1.044, allocations: 3.292 MB / 0.5049 GB, free: 99.81 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001731/1.045, allocations: 74.5 kB / 0.505 GB, free: 99.81 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001258/1.046, allocations: 135.8 kB / 0.5051 GB, free: 99.81 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00986/1.056, allocations: 3.917 MB / 0.5089 GB, free: 99.79 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01433/1.07, allocations: 6.191 MB / 0.515 GB, free: 97.7 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001359/1.07, allocations: 45.41 kB / 0.515 GB, free: 97.7 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005548/1.071, allocations: 22.94 kB / 0.515 GB, free: 97.7 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001416/1.072, allocations: 0.7212 MB / 0.5157 GB, free: 97.7 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04069/1.113, allocations: 32.05 MB / 0.547 GB, free: 74.15 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003325/1.116, allocations: 2.035 MB / 0.549 GB, free: 72.95 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001812/1.118, allocations: 0.9883 MB / 0.55 GB, free: 72.54 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.546e-05/1.118, allocations: 11.92 kB / 0.55 GB, free: 72.54 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.144e-05/1.118, allocations: 53.95 kB / 0.55 GB, free: 72.48 MB / 395.1 MB Notification: Performance of pre-optimization done (n=98): time 4.879e-06/1.118, allocations: 3.219 kB / 0.5501 GB, free: 72.48 MB / 395.1 MB Notification: Performance of matching and sorting (n=106): time 0.02333/1.142, allocations: 8.186 MB / 0.558 GB, free: 69.05 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.947e-05/1.142, allocations: 136.4 kB / 0.5582 GB, free: 68.89 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003903/1.146, allocations: 2.183 MB / 0.5603 GB, free: 68.05 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002877/1.146, allocations: 25.7 kB / 0.5603 GB, free: 68.02 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001407/1.148, allocations: 2.146 MB / 0.5624 GB, free: 66.28 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005864/1.148, allocations: 432 kB / 0.5628 GB, free: 65.98 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002776/1.148, allocations: 0 / 0.5628 GB, free: 65.98 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0002809/1.149, allocations: 0.4984 MB / 0.5633 GB, free: 65.59 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002957/1.152, allocations: 1.312 MB / 0.5646 GB, free: 65.15 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005056/1.157, allocations: 4.235 MB / 0.5687 GB, free: 60.62 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00498/1.162, allocations: 2.342 MB / 0.571 GB, free: 59.77 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.618e-05/1.162, allocations: 27.91 kB / 0.5711 GB, free: 59.77 MB / 395.1 MB Notification: Performance of matching and sorting (n=591) (initialization): time 0.01609/1.178, allocations: 5.454 MB / 0.5764 GB, free: 56.09 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.594e-05/1.178, allocations: 48.19 kB / 0.5764 GB, free: 56.05 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001469/1.178, allocations: 112.8 kB / 0.5765 GB, free: 55.94 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003973/1.182, allocations: 0.8064 MB / 0.5773 GB, free: 55.38 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005984/1.188, allocations: 1.047 MB / 0.5783 GB, free: 54.46 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007829/1.196, allocations: 3.961 MB / 0.5822 GB, free: 50.97 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005072/1.201, allocations: 209.1 kB / 0.5824 GB, free: 50.8 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001053/1.203, allocations: 284.9 kB / 0.5827 GB, free: 50.53 MB / 395.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 481 * Number of states: 0 () * Number of discrete variables: 18 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (555): * Single equations (assignments): 551 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000734/1.203, allocations: 358.1 kB / 0.583 GB, free: 50.18 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.006793/1.21, allocations: 2.192 MB / 0.5852 GB, free: 48.45 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007979/1.211, allocations: 217.2 kB / 0.5854 GB, free: 48.23 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006227/1.217, allocations: 1.782 MB / 0.5871 GB, free: 46.9 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.843e-05/1.217, allocations: 21.34 kB / 0.5871 GB, free: 46.88 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.092e-05/1.217, allocations: 0 / 0.5871 GB, free: 46.88 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.611e-05/1.217, allocations: 9.297 kB / 0.5871 GB, free: 46.88 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01283/1.23, allocations: 4.311 MB / 0.5914 GB, free: 43.46 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.915e-05/1.23, allocations: 4.812 kB / 0.5914 GB, free: 43.45 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001236/1.232, allocations: 138.8 kB / 0.5915 GB, free: 43.34 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003506/1.235, allocations: 0.6378 MB / 0.5921 GB, free: 42.78 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002243/1.235, allocations: 7.953 kB / 0.5921 GB, free: 42.77 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006739/1.242, allocations: 3.509 MB / 0.5956 GB, free: 39.15 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.123e-06/1.242, allocations: 4.062 kB / 0.5956 GB, free: 39.15 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008625/1.251, allocations: 3.672 MB / 0.5991 GB, free: 35.41 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001466/1.252, allocations: 414.2 kB / 0.5995 GB, free: 34.98 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005337/1.253, allocations: 0 / 0.5995 GB, free: 34.98 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001963/1.255, allocations: 55.91 kB / 0.5996 GB, free: 34.93 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003679/1.255, allocations: 51.92 kB / 0.5996 GB, free: 34.88 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001174/1.255, allocations: 36.05 kB / 0.5997 GB, free: 34.84 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.003227/1.259, allocations: 1.434 MB / 0.6011 GB, free: 33.4 MB / 395.1 MB Notification: Performance of sort global known variables: time 1.362e-06/1.259, allocations: 0 / 0.6011 GB, free: 33.4 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.005556/1.264, allocations: 0.559 MB / 0.6016 GB, free: 32.84 MB / 395.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (75): * Single equations (assignments): 71 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009669/1.274, allocations: 4.594 MB / 0.6061 GB, free: 28.19 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.007061/1.281, allocations: 3.188 MB / 0.6092 GB, free: 25.02 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 7.093e-06/1.281, allocations: 0 / 0.6092 GB, free: 25.02 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00184/1.283, allocations: 0.8916 MB / 0.6101 GB, free: 24.12 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0018/1.285, allocations: 196 kB / 0.6103 GB, free: 23.93 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01691/1.302, allocations: 5.398 MB / 0.6155 GB, free: 18.47 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00369/1.306, allocations: 2.243 MB / 0.6177 GB, free: 16.21 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002556/1.308, allocations: 1.093 MB / 0.6188 GB, free: 15.11 MB / 395.1 MB Notification: Performance of SimCode: time 1.362e-06/1.308, allocations: 4 kB / 0.6188 GB, free: 15.11 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.934/5.242, allocations: 59.56 MB / 0.677 GB, free: 101.1 MB / 411.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.mat does not exist to compare? outputFormat=mat