Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.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.SpringMassSystem,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",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.0009704/0.0009704, allocations: 181.3 kB / 17.02 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.274/1.274, allocations: 205.4 MB / 223.1 MB, free: 9.117 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008315/0.0008316, allocations: 108.8 kB / 271.5 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000291/0.0002913, allocations: 12 kB / 328.4 MB, free: 15.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2569/0.2573, allocations: 47.56 MB / 375.9 MB, free: 45.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1074/0.3647, allocations: 94.94 MB / 470.9 MB, free: 1.68 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002573/0.365, allocations: 87.95 kB / 470.9 MB, free: 1.594 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3849/0.7499, allocations: 85.03 MB / 0.5429 GB, free: 73.58 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.485e-06/0.75, allocations: 0 / 0.5429 GB, free: 73.58 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002107/0.7502, allocations: 88 kB / 0.543 GB, free: 73.49 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1469 * Number of variables: 1469 Notification: Performance of Generate backend data structure: time 0.01158/0.7618, allocations: 4.089 MB / 0.547 GB, free: 69.33 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.702e-05/0.7619, allocations: 12.03 kB / 0.547 GB, free: 69.32 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002864/0.7647, allocations: 0.7418 MB / 0.5477 GB, free: 68.57 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0109/0.7757, allocations: 2.436 MB / 0.5501 GB, free: 66.12 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01309/0.7888, allocations: 5.091 MB / 0.5551 GB, free: 60.96 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003587/0.7892, allocations: 320.1 kB / 0.5554 GB, free: 60.65 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002186/0.7914, allocations: 415.8 kB / 0.5558 GB, free: 60.24 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02067/0.8121, allocations: 10.07 MB / 0.5656 GB, free: 49.1 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002896/0.8124, allocations: 63.5 kB / 0.5657 GB, free: 49.04 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001676/0.8141, allocations: 199.9 kB / 0.5659 GB, free: 48.84 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001463/0.8156, allocations: 1.006 MB / 0.5669 GB, free: 47.83 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01488/0.8305, allocations: 7.893 MB / 0.5746 GB, free: 39.92 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0467/0.8773, allocations: 45.7 MB / 0.6192 GB, free: 8.691 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006676/0.884, allocations: 2.866 MB / 0.622 GB, free: 5.684 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007277/0.8913, allocations: 3.83 MB / 0.6257 GB, free: 1.652 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.359e-05/0.8914, allocations: 55.16 kB / 0.6258 GB, free: 1.59 MB / 394.7 MB Notification: Performance of pre-optimization done (n=134): time 4.298e-06/0.8914, allocations: 0 / 0.6258 GB, free: 1.59 MB / 394.7 MB Notification: Performance of matching and sorting (n=152): time 0.02348/0.9149, allocations: 9.348 MB / 0.6349 GB, free: 8.062 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.755e-05/0.915, allocations: 153.4 kB / 0.6351 GB, free: 7.879 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006771/0.9218, allocations: 3.545 MB / 0.6385 GB, free: 4.309 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001787/0.922, allocations: 45.7 kB / 0.6386 GB, free: 4.258 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002469/0.9245, allocations: 3.105 MB / 0.6416 GB, free: 1.109 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006601/0.9252, allocations: 0.6096 MB / 0.6422 GB, free: 0.4922 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003855/0.9256, allocations: 112 kB / 0.6423 GB, free: 392 kB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.1897/1.115, allocations: 0.5485 MB / 0.6428 GB, free: 101.9 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003382/1.119, allocations: 1.587 MB / 0.6444 GB, free: 101.9 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003787/1.123, allocations: 5.319 MB / 0.6496 GB, free: 97.07 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003799/1.126, allocations: 2.845 MB / 0.6524 GB, free: 97.07 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.915e-05/1.126, allocations: 39.53 kB / 0.6524 GB, free: 97.07 MB / 410.7 MB Notification: Performance of matching and sorting (n=760) (initialization): time 0.01077/1.137, allocations: 6.657 MB / 0.6589 GB, free: 96.45 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.19e-05/1.137, allocations: 62.41 kB / 0.659 GB, free: 96.45 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001243/1.137, allocations: 136 kB / 0.6591 GB, free: 96.45 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001655/1.138, allocations: 199.5 kB / 0.6593 GB, free: 96.45 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003551/1.141, allocations: 1.393 MB / 0.6606 GB, free: 96.32 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001414/1.141, allocations: 264.8 kB / 0.6609 GB, free: 96.27 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003722/1.145, allocations: 369 kB / 0.6613 GB, free: 96.27 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004286/1.145, allocations: 363.1 kB / 0.6616 GB, free: 96.27 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 610 * Number of states: 0 () * Number of discrete variables: 36 (spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],p1.boxColor[3],p1.boxColor[2],p1.boxColor[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 (736): * Single equations (assignments): 733 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003023/1.149, allocations: 1.978 MB / 0.6635 GB, free: 96.03 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005497/1.149, allocations: 340.4 kB / 0.6639 GB, free: 96.03 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001831/1.151, allocations: 1.248 MB / 0.6651 GB, free: 95.93 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.933e-05/1.151, allocations: 20.02 kB / 0.6651 GB, free: 95.93 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.945e-06/1.151, allocations: 3.703 kB / 0.6651 GB, free: 95.93 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.14e-05/1.151, allocations: 7.719 kB / 0.6651 GB, free: 95.93 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007848/1.159, allocations: 5.802 MB / 0.6708 GB, free: 94 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-05/1.159, allocations: 19.84 kB / 0.6708 GB, free: 94 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008601/1.16, allocations: 282 kB / 0.6711 GB, free: 93.97 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.142e-05/1.16, allocations: 29.62 kB / 0.6711 GB, free: 93.97 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.123e-05/1.16, allocations: 48.38 kB / 0.6711 GB, free: 93.95 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.896e-05/1.16, allocations: 37.98 kB / 0.6712 GB, free: 93.94 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.245e-05/1.16, allocations: 28.97 kB / 0.6712 GB, free: 93.93 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003173/1.163, allocations: 5.389 MB / 0.6765 GB, free: 89.27 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009731/1.164, allocations: 0.5172 MB / 0.677 GB, free: 88.94 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002729/1.164, allocations: 48.98 kB / 0.677 GB, free: 88.92 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001131/1.165, allocations: 95.25 kB / 0.6771 GB, free: 88.9 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001236/1.166, allocations: 152.8 kB / 0.6772 GB, free: 88.84 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.966e-05/1.166, allocations: 70.56 kB / 0.6773 GB, free: 88.83 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002961/1.169, allocations: 2.483 MB / 0.6797 GB, free: 88 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.2e-07/1.169, allocations: 0 / 0.6797 GB, free: 88 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003781/1.172, allocations: 0.8789 MB / 0.6806 GB, free: 87.89 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 84 * Number of states: 4 (p1.s,p1.v,p2.s,p2.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 (144): * Single equations (assignments): 141 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004017/1.176, allocations: 10.61 MB / 0.691 GB, free: 78.32 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00522/1.182, allocations: 3.641 MB / 0.6945 GB, free: 77.12 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.064e-05/1.182, allocations: 4.219 kB / 0.6945 GB, free: 77.12 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007568/1.183, allocations: 0.7287 MB / 0.6952 GB, free: 76.88 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001774/1.184, allocations: 422.8 kB / 0.6956 GB, free: 76.7 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2392/1.423, allocations: 122.3 MB / 0.8151 GB, free: 120 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003474/1.427, allocations: 3.19 MB / 0.8182 GB, free: 119.2 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.004273/1.431, allocations: 1.771 MB / 0.8199 GB, free: 119.2 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002382/1.434, allocations: 1.818 MB / 0.8217 GB, free: 119.2 MB / 442.7 MB Notification: Performance of SimCode: time 8.22e-07/1.434, allocations: 0 / 0.8217 GB, free: 119.2 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09399/1.528, allocations: 65.49 MB / 0.8856 GB, free: 74.36 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001579/1.528, allocations: 202.4 kB / 0.8858 GB, free: 74.11 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.605/5.133, allocations: 0 / 0.8858 GB, free: 74.11 MB / 442.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat does not exist to compare? outputFormat=mat