Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009878/0.0009879, allocations: 88.66 kB / 16.31 MB, free: 6.461 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001032/0.001032, allocations: 181.5 kB / 17.21 MB, free: 6.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.423/1.423, allocations: 223.2 MB / 241.2 MB, free: 5.418 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003043/0.0003045, allocations: 6.281 kB / 300.9 MB, free: 6.344 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1299/0.1302, allocations: 50.42 MB / 351.3 MB, free: 11.71 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.01266/0.1429, allocations: 12.62 MB / 364 MB, free: 15.05 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008863/0.1518, allocations: 4.031 MB / 368 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002244/0.1541, allocations: 55.81 kB / 368.1 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001903/0.1561, allocations: 0.5948 MB / 368.6 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005538/0.1616, allocations: 2.141 MB / 370.8 MB, free: 8.207 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001358/0.163, allocations: 423.3 kB / 371.2 MB, free: 7.793 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003864/0.1669, allocations: 2.709 MB / 373.9 MB, free: 5.078 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002455/0.1694, allocations: 1.325 MB / 375.2 MB, free: 3.711 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001404/0.1708, allocations: 0.7004 MB / 375.9 MB, free: 3.008 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00186/0.1727, allocations: 1.137 MB / 377.1 MB, free: 1.867 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005278/0.1732, allocations: 76 kB / 377.1 MB, free: 1.793 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001778/0.175, allocations: 0.7449 MB / 377.9 MB, free: 1.047 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001328/0.1764, allocations: 0.9427 MB / 378.8 MB, free: 104 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009524/0.1773, allocations: 496.1 kB / 379.3 MB, free: 15.61 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003684/0.181, allocations: 2.95 MB / 382.3 MB, free: 12.65 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.181, allocations: 0 / 382.3 MB, free: 12.65 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.1811, allocations: 0 / 382.3 MB, free: 12.65 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001371/0.1812, allocations: 0 / 382.3 MB, free: 12.65 MB / 318.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.005566/0.1868, allocations: 2.442 MB / 384.7 MB, free: 10.15 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.843e-05/0.1868, allocations: 8.031 kB / 384.7 MB, free: 10.14 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001095/0.1879, allocations: 449.8 kB / 385.2 MB, free: 9.695 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005659/0.1936, allocations: 1.693 MB / 386.8 MB, free: 7.996 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003135/0.1968, allocations: 1.596 MB / 388.4 MB, free: 6.352 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001303/0.1969, allocations: 118.9 kB / 388.6 MB, free: 6.234 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005888/0.1975, allocations: 151.9 kB / 388.7 MB, free: 6.086 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009802/0.2073, allocations: 6.371 MB / 395.1 MB, free: 15.2 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.664e-05/0.2074, allocations: 27.75 kB / 395.1 MB, free: 15.17 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000235/0.2077, allocations: 79.89 kB / 395.2 MB, free: 15.09 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002192/0.2099, allocations: 1.437 MB / 396.6 MB, free: 13.65 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009425/0.2193, allocations: 5.65 MB / 402.3 MB, free: 8 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2315/0.4508, allocations: 26.27 MB / 428.5 MB, free: 46.12 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004038/0.4549, allocations: 2.246 MB / 430.8 MB, free: 45.46 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00143/0.4564, allocations: 1.024 MB / 431.8 MB, free: 45.43 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.347e-05/0.4564, allocations: 14.94 kB / 431.8 MB, free: 45.43 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.481e-05/0.4565, allocations: 41.11 kB / 431.9 MB, free: 45.39 MB / 350.1 MB Notification: Performance of pre-optimization done (n=98): time 4.188e-06/0.4565, allocations: 0 / 431.9 MB, free: 45.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=106): time 0.02176/0.4783, allocations: 8.556 MB / 440.4 MB, free: 43.44 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.778e-05/0.4784, allocations: 136.4 kB / 440.6 MB, free: 43.28 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004342/0.4827, allocations: 2.811 MB / 443.4 MB, free: 42.93 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002008/0.483, allocations: 41.64 kB / 443.4 MB, free: 42.9 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001215/0.4842, allocations: 2.076 MB / 445.5 MB, free: 41.64 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000455/0.4846, allocations: 443.2 kB / 445.9 MB, free: 41.41 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001557/0.4848, allocations: 81.75 kB / 446 MB, free: 41.41 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002048/0.485, allocations: 0.4914 MB / 446.5 MB, free: 41.09 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00191/0.4869, allocations: 1.393 MB / 447.9 MB, free: 41.07 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002806/0.4898, allocations: 4.216 MB / 452.1 MB, free: 37.34 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002624/0.4924, allocations: 2.381 MB / 454.5 MB, free: 36.38 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-05/0.4924, allocations: 26.94 kB / 454.5 MB, free: 36.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=569) (initialization): time 0.008958/0.5014, allocations: 6.046 MB / 460.6 MB, free: 31.58 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.679e-05/0.5015, allocations: 53.97 kB / 460.6 MB, free: 31.53 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.968e-05/0.5016, allocations: 100 kB / 460.7 MB, free: 31.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00202/0.5036, allocations: 0.8089 MB / 461.5 MB, free: 30.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00227/0.5059, allocations: 0.9825 MB / 462.5 MB, free: 29.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004281/0.5102, allocations: 4.159 MB / 466.7 MB, free: 25.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002762/0.513, allocations: 251.5 kB / 466.9 MB, free: 25.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003167/0.5133, allocations: 272.8 kB / 467.2 MB, free: 24.85 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 459 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (533): * Single equations (assignments): 529 * 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.001751/0.515, allocations: 1.37 MB / 468.5 MB, free: 23.46 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002945/0.5153, allocations: 229 kB / 468.8 MB, free: 23.24 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003055/0.5184, allocations: 1.849 MB / 470.6 MB, free: 21.37 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.972e-05/0.5184, allocations: 12.56 kB / 470.6 MB, free: 21.36 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.111e-05/0.5185, allocations: 4 kB / 470.6 MB, free: 21.36 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.698e-06/0.5185, allocations: 3.984 kB / 470.6 MB, free: 21.35 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006889/0.5254, allocations: 4.789 MB / 475.4 MB, free: 16.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.556e-06/0.5254, allocations: 0 / 475.4 MB, free: 16.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005431/0.526, allocations: 140.2 kB / 475.6 MB, free: 16.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001637/0.5276, allocations: 0.6491 MB / 476.2 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.063e-05/0.5277, allocations: 16 kB / 476.2 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003789/0.5315, allocations: 3.694 MB / 479.9 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.484e-06/0.5315, allocations: 4.031 kB / 479.9 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005047/0.5366, allocations: 3.684 MB / 483.6 MB, free: 8.168 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007151/0.5373, allocations: 305.9 kB / 483.9 MB, free: 7.848 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002592/0.5376, allocations: 13.41 kB / 483.9 MB, free: 7.836 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000854/0.5384, allocations: 63.91 kB / 484 MB, free: 7.773 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000153/0.5386, allocations: 51.92 kB / 484 MB, free: 7.723 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.703e-05/0.5387, allocations: 37.86 kB / 484.1 MB, free: 7.688 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002356/0.5411, allocations: 1.742 MB / 485.8 MB, free: 5.938 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5411, allocations: 0 / 485.8 MB, free: 5.938 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.003774/0.5448, allocations: 0.6394 MB / 486.4 MB, free: 5.301 MB / 350.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 () * Number of clocked 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.005387/0.5503, allocations: 4.311 MB / 490.8 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.006776/0.5571, allocations: 3.385 MB / 494.1 MB, free: 13.58 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.132e-05/0.5572, allocations: 4.188 kB / 494.1 MB, free: 13.57 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001484/0.5586, allocations: 0.9253 MB / 495.1 MB, free: 12.64 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002014/0.5607, allocations: 252.1 kB / 495.3 MB, free: 12.39 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03819/0.5989, allocations: 21.14 MB / 0.5044 GB, free: 4.699 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002279/0.6012, allocations: 2.185 MB / 0.5065 GB, free: 2.484 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.003268/0.6045, allocations: 1.396 MB / 0.5079 GB, free: 1.082 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001399/0.6059, allocations: 1.054 MB / 0.5089 GB, free: 28 kB / 382.1 MB Notification: Performance of SimCode: time 1.202e-06/0.6059, allocations: 0 / 0.5089 GB, free: 28 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08844/0.6944, allocations: 48.41 MB / 0.5562 GB, free: 15.95 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001697/0.6946, allocations: 225.3 kB / 0.5564 GB, free: 15.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.292/3.987, allocations: 0 / 0.5564 GB, free: 15.7 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.mat does not exist to compare? outputFormat=mat