Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001074/0.001074, allocations: 94.2 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001484/0.001484, allocations: 205 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.338/1.338, allocations: 227.3 MB / 245.9 MB, free: 10.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000263/0.0002632, allocations: 12 kB / 306.7 MB, free: 1.234 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1036, allocations: 51.48 MB / 358.2 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.01184/0.1155, allocations: 11.98 MB / 370.2 MB, free: 1.738 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2273/0.3428, allocations: 4.136 MB / 374.3 MB, free: 8.273 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002357/0.3452, allocations: 54.47 kB / 374.4 MB, free: 8.273 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001704/0.347, allocations: 0.5303 MB / 374.9 MB, free: 8.273 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006565/0.3535, allocations: 1.944 MB / 376.8 MB, free: 8.242 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001221/0.3548, allocations: 400.3 kB / 377.2 MB, free: 8.238 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003157/0.358, allocations: 1.483 MB / 378.7 MB, free: 8.176 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002348/0.3603, allocations: 1.327 MB / 380 MB, free: 7.977 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001194/0.3615, allocations: 0.595 MB / 380.6 MB, free: 7.875 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001275/0.3628, allocations: 0.8343 MB / 381.5 MB, free: 7.754 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002532/0.3631, allocations: 77.78 kB / 381.5 MB, free: 7.754 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001499/0.3646, allocations: 0.7068 MB / 382.3 MB, free: 7.73 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009998/0.3656, allocations: 0.8786 MB / 383.1 MB, free: 7.629 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000526/0.3661, allocations: 494.4 kB / 383.6 MB, free: 7.496 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00355/0.3697, allocations: 2.946 MB / 386.6 MB, free: 6.383 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.3697, allocations: 1.188 kB / 386.6 MB, free: 6.383 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.3697, allocations: 0 / 386.6 MB, free: 6.383 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001035/0.3698, allocations: 0 / 386.6 MB, free: 6.383 MB / 302.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.005935/0.3758, allocations: 2.503 MB / 389.1 MB, free: 4.785 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.753e-05/0.3758, allocations: 9.156 kB / 389.1 MB, free: 4.785 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001074/0.3769, allocations: 454.5 kB / 389.5 MB, free: 4.637 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006995/0.3839, allocations: 1.969 MB / 391.5 MB, free: 3.762 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003365/0.3873, allocations: 1.395 MB / 392.9 MB, free: 3.137 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001019/0.3874, allocations: 119.6 kB / 393 MB, free: 3.133 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003989/0.3878, allocations: 160.8 kB / 393.2 MB, free: 3.125 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009545/0.3974, allocations: 6.385 MB / 399.5 MB, free: 312 kB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.017e-05/0.3975, allocations: 28.84 kB / 399.6 MB, free: 296 kB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002644/0.3977, allocations: 80.2 kB / 399.6 MB, free: 272 kB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002478/0.4002, allocations: 1.431 MB / 401.1 MB, free: 14.93 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01123/0.4115, allocations: 5.693 MB / 406.8 MB, free: 9.234 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03289/0.4444, allocations: 26.32 MB / 433.1 MB, free: 14.22 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004921/0.4494, allocations: 2.264 MB / 435.4 MB, free: 11.81 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.356e-05/0.4495, allocations: 10.89 kB / 435.4 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.727e-05/0.4495, allocations: 50.5 kB / 435.4 MB, free: 11.75 MB / 350.1 MB Notification: Performance of pre-optimization done (n=98): time 4.338e-06/0.4495, allocations: 0 / 435.4 MB, free: 11.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=106): time 0.02325/0.4728, allocations: 8.815 MB / 444.2 MB, free: 2.738 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.311e-05/0.4729, allocations: 136.5 kB / 444.4 MB, free: 2.574 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004975/0.4779, allocations: 2.927 MB / 447.3 MB, free: 15.63 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002336/0.4782, allocations: 37.7 kB / 447.3 MB, free: 15.59 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001472/0.4796, allocations: 2.073 MB / 449.4 MB, free: 13.52 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005053/0.4802, allocations: 442.5 kB / 449.8 MB, free: 13.09 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001642/0.4803, allocations: 84 kB / 449.9 MB, free: 13.01 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002817/0.4806, allocations: 0.4918 MB / 450.4 MB, free: 12.51 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002029/0.4827, allocations: 1.394 MB / 451.8 MB, free: 11.11 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003654/0.4863, allocations: 4.206 MB / 456 MB, free: 5.473 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003148/0.4895, allocations: 2.369 MB / 458.4 MB, free: 3.105 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-05/0.4895, allocations: 28 kB / 458.4 MB, free: 3.078 MB / 366.1 MB Notification: Performance of matching and sorting (n=569) (initialization): time 0.009762/0.4993, allocations: 6.051 MB / 464.4 MB, free: 13.02 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.999e-05/0.4994, allocations: 51.94 kB / 464.5 MB, free: 12.97 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001432/0.4996, allocations: 100.1 kB / 464.6 MB, free: 12.87 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00214/0.5017, allocations: 0.8123 MB / 465.4 MB, free: 12.05 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002629/0.5043, allocations: 0.9864 MB / 466.4 MB, free: 11.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005283/0.5096, allocations: 4.246 MB / 470.6 MB, free: 6.695 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003028/0.5127, allocations: 251.5 kB / 470.9 MB, free: 6.449 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004605/0.5132, allocations: 276 kB / 471.2 MB, free: 6.18 MB / 382.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.002502/0.5157, allocations: 1.368 MB / 472.5 MB, free: 4.801 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004966/0.5162, allocations: 229 kB / 472.7 MB, free: 4.574 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003833/0.52, allocations: 1.853 MB / 474.6 MB, free: 2.699 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.622e-05/0.5201, allocations: 12 kB / 474.6 MB, free: 2.688 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.181e-05/0.5201, allocations: 4 kB / 474.6 MB, free: 2.684 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.253e-05/0.5201, allocations: 3.984 kB / 474.6 MB, free: 2.68 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01069/0.5308, allocations: 4.815 MB / 479.4 MB, free: 13.81 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.38e-05/0.5309, allocations: 0 / 479.4 MB, free: 13.81 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006356/0.5315, allocations: 131.8 kB / 479.6 MB, free: 13.68 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002113/0.5336, allocations: 0.6482 MB / 480.2 MB, free: 13.03 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001151/0.5338, allocations: 28.05 kB / 480.2 MB, free: 13 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00562/0.5394, allocations: 3.783 MB / 484 MB, free: 9.086 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.468e-06/0.5394, allocations: 4.031 kB / 484 MB, free: 9.082 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006983/0.5464, allocations: 3.776 MB / 487.8 MB, free: 5.246 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00105/0.5475, allocations: 309.8 kB / 488.1 MB, free: 4.922 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006072/0.5481, allocations: 23.94 kB / 488.1 MB, free: 4.898 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001285/0.5494, allocations: 59.91 kB / 488.2 MB, free: 4.84 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001753/0.5496, allocations: 47.94 kB / 488.2 MB, free: 4.793 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.531e-05/0.5497, allocations: 35.19 kB / 488.3 MB, free: 4.762 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.003906/0.5536, allocations: 1.836 MB / 490.1 MB, free: 2.918 MB / 398.1 MB Notification: Performance of sort global known variables: time 4.71e-07/0.5536, allocations: 0 / 490.1 MB, free: 2.918 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.004419/0.5581, allocations: 0.6603 MB / 490.8 MB, free: 2.258 MB / 398.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.007461/0.5655, allocations: 4.716 MB / 495.5 MB, free: 13.49 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006944/0.5725, allocations: 3.385 MB / 498.9 MB, free: 10.11 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.813e-06/0.5726, allocations: 0 / 498.9 MB, free: 10.11 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001466/0.574, allocations: 0.9269 MB / 499.8 MB, free: 9.176 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002035/0.5761, allocations: 235.4 kB / 0.4883 GB, free: 8.945 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2342/0.8104, allocations: 90.4 MB / 0.5766 GB, free: 92.1 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002216/0.8126, allocations: 2.234 MB / 0.5788 GB, free: 91.35 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003277/0.8159, allocations: 1.406 MB / 0.5801 GB, free: 91.27 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00122/0.8172, allocations: 1.052 MB / 0.5812 GB, free: 91.27 MB / 446.1 MB Notification: Performance of SimCode: time 7.61e-07/0.8172, allocations: 0 / 0.5812 GB, free: 91.27 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2416/1.059, allocations: 49 MB / 0.629 GB, free: 49.42 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001387/1.059, allocations: 215.9 kB / 0.6292 GB, free: 49.18 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.046/4.105, allocations: 0 / 0.6292 GB, free: 49.18 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.mat does not exist to compare? outputFormat=mat