Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.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.PendulumWithSpringDamper,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009309/0.000931, allocations: 101.3 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001001/0.001001, allocations: 191.8 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.409/1.409, allocations: 227.4 MB / 246 MB, free: 11.99 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002098/0.0002099, allocations: 4 kB / 306.8 MB, free: 1.469 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09984/0.1001, allocations: 51.49 MB / 358.3 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.2091/0.3092, allocations: 31.44 MB / 389.8 MB, free: 3.98 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01763/0.3269, allocations: 7.467 MB / 397.2 MB, free: 14.93 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006865/0.3338, allocations: 145.5 kB / 397.4 MB, free: 14.9 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005441/0.3393, allocations: 1.589 MB / 398.9 MB, free: 14.33 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01424/0.3535, allocations: 4.83 MB / 403.8 MB, free: 11.29 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00255/0.3561, allocations: 0.5712 MB / 404.3 MB, free: 10.91 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00628/0.3624, allocations: 3.848 MB / 408.2 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005827/0.3682, allocations: 3.356 MB / 411.6 MB, free: 6.52 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002893/0.3712, allocations: 1.039 MB / 412.6 MB, free: 5.477 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00286/0.374, allocations: 1.655 MB / 414.2 MB, free: 3.816 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006416/0.3747, allocations: 120 kB / 414.4 MB, free: 3.699 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002111/0.3768, allocations: 0.8698 MB / 415.2 MB, free: 2.828 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001553/0.3784, allocations: 1.399 MB / 416.6 MB, free: 1.426 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000919/0.3793, allocations: 0.7064 MB / 417.3 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005285/0.3846, allocations: 4.483 MB / 421.8 MB, free: 12.21 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/0.3846, allocations: 4 kB / 421.8 MB, free: 12.21 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.3847, allocations: 4 kB / 421.8 MB, free: 12.2 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001493/0.3848, allocations: 0 / 421.8 MB, free: 12.2 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1349 * Number of variables: 1349 Notification: Performance of Generate backend data structure: time 0.006525/0.3913, allocations: 3.436 MB / 425.3 MB, free: 8.707 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.513e-05/0.3914, allocations: 12.03 kB / 425.3 MB, free: 8.695 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00122/0.3926, allocations: 0.6411 MB / 425.9 MB, free: 8.043 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006411/0.3991, allocations: 1.914 MB / 427.8 MB, free: 6.121 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004497/0.4036, allocations: 2.046 MB / 429.9 MB, free: 4.023 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002034/0.4038, allocations: 205.2 kB / 430.1 MB, free: 3.82 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007122/0.4046, allocations: 271.8 kB / 430.3 MB, free: 3.555 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01931/0.4239, allocations: 10.01 MB / 440.3 MB, free: 8.871 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001021/0.424, allocations: 39.59 kB / 440.4 MB, free: 8.832 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000377/0.4244, allocations: 131.9 kB / 440.5 MB, free: 8.703 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003191/0.4276, allocations: 1.852 MB / 442.4 MB, free: 6.848 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01802/0.4456, allocations: 8.556 MB / 450.9 MB, free: 14.28 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05015/0.4958, allocations: 36.83 MB / 487.8 MB, free: 8.414 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01028/0.5062, allocations: 3.912 MB / 491.7 MB, free: 4.301 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003145/0.5094, allocations: 1.798 MB / 493.5 MB, free: 2.492 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01378/0.5232, allocations: 7.615 MB / 0.4893 GB, free: 10.59 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.769e-05/0.5233, allocations: 51.5 kB / 0.4894 GB, free: 10.53 MB / 414.1 MB Notification: Performance of pre-optimization done (n=150): time 5.009e-06/0.5233, allocations: 4 kB / 0.4894 GB, free: 10.52 MB / 414.1 MB Notification: Performance of matching and sorting (n=166): time 0.04988/0.5732, allocations: 17.53 MB / 0.5065 GB, free: 8.863 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.902e-05/0.5733, allocations: 149.5 kB / 0.5067 GB, free: 8.688 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00463/0.578, allocations: 3.458 MB / 0.51 GB, free: 5.227 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002416/0.5782, allocations: 49.7 kB / 0.5101 GB, free: 5.172 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001876/0.5801, allocations: 2.732 MB / 0.5127 GB, free: 2.402 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006412/0.5808, allocations: 0.6441 MB / 0.5134 GB, free: 1.75 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002187/0.581, allocations: 112 kB / 0.5135 GB, free: 1.641 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0003416/0.5813, allocations: 0.5376 MB / 0.514 GB, free: 1.098 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002903/0.5842, allocations: 1.939 MB / 0.5159 GB, free: 15.15 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005083/0.5893, allocations: 5.362 MB / 0.5211 GB, free: 8.07 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004236/0.5936, allocations: 3.136 MB / 0.5242 GB, free: 4.938 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.431e-05/0.5936, allocations: 36 kB / 0.5242 GB, free: 4.902 MB / 446.1 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.2128/0.8064, allocations: 8.135 MB / 0.5322 GB, free: 139.5 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.202e-05/0.8065, allocations: 56.38 kB / 0.5322 GB, free: 139.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001544/0.8067, allocations: 120.4 kB / 0.5323 GB, free: 139.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004348/0.8111, allocations: 1.315 MB / 0.5336 GB, free: 139.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004611/0.8157, allocations: 1.264 MB / 0.5349 GB, free: 139.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009238/0.8249, allocations: 6.098 MB / 0.5408 GB, free: 137.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004434/0.8294, allocations: 305.7 kB / 0.5411 GB, free: 137.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005962/0.83, allocations: 337.7 kB / 0.5414 GB, free: 137.6 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 552 * Number of states: 0 () * Number of discrete variables: 36 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (681): * Single equations (assignments): 677 * 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,88.9%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002845/0.8329, allocations: 1.817 MB / 0.5432 GB, free: 136.9 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005456/0.8334, allocations: 311.2 kB / 0.5435 GB, free: 136.9 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006676/0.8401, allocations: 3.397 MB / 0.5468 GB, free: 135.8 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.898e-05/0.8402, allocations: 16.39 kB / 0.5468 GB, free: 135.8 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.102e-05/0.8402, allocations: 3.969 kB / 0.5468 GB, free: 135.8 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.666e-05/0.8402, allocations: 11.39 kB / 0.5469 GB, free: 135.8 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01191/0.8521, allocations: 7.635 MB / 0.5543 GB, free: 133.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.226e-05/0.8522, allocations: 0 / 0.5543 GB, free: 133.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00103/0.8532, allocations: 254.6 kB / 0.5545 GB, free: 133.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003028/0.8562, allocations: 1.118 MB / 0.5556 GB, free: 133 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001518/0.8564, allocations: 36.2 kB / 0.5557 GB, free: 133 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006498/0.8629, allocations: 5.712 MB / 0.5613 GB, free: 129.4 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.8629, allocations: 3.719 kB / 0.5613 GB, free: 129.4 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00809/0.871, allocations: 5.75 MB / 0.5669 GB, free: 124.8 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001061/0.8721, allocations: 370.3 kB / 0.5672 GB, free: 124.5 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003242/0.8725, allocations: 20.62 kB / 0.5672 GB, free: 124.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00118/0.8737, allocations: 104.6 kB / 0.5673 GB, free: 124.3 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002075/0.8739, allocations: 88.88 kB / 0.5674 GB, free: 124.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001055/0.874, allocations: 41.17 kB / 0.5675 GB, free: 124.2 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002585/0.8766, allocations: 2.141 MB / 0.5696 GB, free: 122.1 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.8766, allocations: 0 / 0.5696 GB, free: 122.1 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004118/0.8807, allocations: 0.9083 MB / 0.5704 GB, free: 121.2 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,prismatic.s,prismatic.v) * 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 (129): * Single equations (assignments): 125 * 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 {(2,100.0%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007791/0.8885, allocations: 6.391 MB / 0.5767 GB, free: 114.8 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006841/0.8954, allocations: 4.778 MB / 0.5814 GB, free: 110 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.633e-06/0.8954, allocations: 1.859 kB / 0.5814 GB, free: 110 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002027/0.8975, allocations: 1.548 MB / 0.5829 GB, free: 108.5 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002027/0.8995, allocations: 352.6 kB / 0.5832 GB, free: 108.1 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03805/0.9376, allocations: 30.16 MB / 0.6127 GB, free: 74.85 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002201/0.9398, allocations: 2.847 MB / 0.6154 GB, free: 71.97 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003531/0.9434, allocations: 1.711 MB / 0.6171 GB, free: 70.26 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001753/0.9451, allocations: 1.592 MB / 0.6187 GB, free: 68.67 MB / 446.1 MB Notification: Performance of SimCode: time 1.092e-06/0.9451, allocations: 0 / 0.6187 GB, free: 68.67 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1094/1.054, allocations: 67.2 MB / 0.6843 GB, free: 1.875 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001905/1.055, allocations: 249.2 kB / 0.6845 GB, free: 1.625 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.819/4.874, allocations: 0 / 0.6845 GB, free: 1.625 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat does not exist to compare? outputFormat=mat