Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001113/0.001113, allocations: 201.1 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.288/1.288, allocations: 227.2 MB / 245 MB, free: 7.582 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009286/0.0009286, allocations: 100.6 kB / 297.3 MB, free: 6.188 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002428/0.0002427, allocations: 11.98 kB / 358 MB, free: 9.438 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2457/0.2459, allocations: 51.48 MB / 409.5 MB, free: 26.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1126/0.3585, allocations: 97.17 MB / 0.4948 GB, free: 9.383 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000247/0.3588, allocations: 93.23 kB / 0.4949 GB, free: 9.293 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.416/0.7748, allocations: 88.27 MB / 0.5811 GB, free: 29.09 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.834e-06/0.7749, allocations: 0 / 0.5811 GB, free: 29.09 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002288/0.7751, allocations: 79.98 kB / 0.5812 GB, free: 29.01 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.01276/0.7879, allocations: 4.066 MB / 0.5851 GB, free: 24.88 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.586e-05/0.7879, allocations: 8.031 kB / 0.5851 GB, free: 24.87 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0034/0.7913, allocations: 0.7379 MB / 0.5859 GB, free: 24.12 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01158/0.8029, allocations: 2.436 MB / 0.5882 GB, free: 21.67 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01211/0.8151, allocations: 4.168 MB / 0.5923 GB, free: 17.44 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003635/0.8155, allocations: 316.2 kB / 0.5926 GB, free: 17.12 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002072/0.8176, allocations: 415.8 kB / 0.593 GB, free: 16.72 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01976/0.8374, allocations: 10.07 MB / 0.6029 GB, free: 5.574 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002319/0.8376, allocations: 59.5 kB / 0.6029 GB, free: 5.516 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001225/0.8389, allocations: 203.9 kB / 0.6031 GB, free: 5.316 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001279/0.8402, allocations: 1.002 MB / 0.6041 GB, free: 4.309 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01481/0.855, allocations: 7.897 MB / 0.6118 GB, free: 12.39 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04965/0.9047, allocations: 45.66 MB / 0.6564 GB, free: 13.19 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00681/0.9115, allocations: 2.866 MB / 0.6592 GB, free: 10.18 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007333/0.9189, allocations: 3.802 MB / 0.6629 GB, free: 6.18 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.019e-05/0.919, allocations: 55.16 kB / 0.6629 GB, free: 6.117 MB / 442.7 MB Notification: Performance of pre-optimization done (n=134): time 3.636e-06/0.919, allocations: 0 / 0.6629 GB, free: 6.117 MB / 442.7 MB Notification: Performance of matching and sorting (n=152): time 0.257/1.176, allocations: 9.247 MB / 0.672 GB, free: 105.4 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.572e-05/1.176, allocations: 142.1 kB / 0.6721 GB, free: 105.2 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006833/1.183, allocations: 3.525 MB / 0.6756 GB, free: 104.9 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003862/1.183, allocations: 44.55 kB / 0.6756 GB, free: 104.9 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002832/1.186, allocations: 3.099 MB / 0.6786 GB, free: 103.4 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008266/1.187, allocations: 0.6069 MB / 0.6792 GB, free: 103.1 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002304/1.187, allocations: 115.3 kB / 0.6793 GB, free: 103.1 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0004252/1.188, allocations: 0.5529 MB / 0.6799 GB, free: 102.8 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002857/1.191, allocations: 1.584 MB / 0.6814 GB, free: 102.8 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004347/1.195, allocations: 5.324 MB / 0.6866 GB, free: 97.92 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004014/1.199, allocations: 2.844 MB / 0.6894 GB, free: 97.91 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.745e-05/1.199, allocations: 37.06 kB / 0.6894 GB, free: 97.91 MB / 442.7 MB Notification: Performance of matching and sorting (n=760) (initialization): time 0.01059/1.21, allocations: 6.648 MB / 0.6959 GB, free: 97.27 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.715e-05/1.21, allocations: 60.88 kB / 0.696 GB, free: 97.27 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001208/1.21, allocations: 135.4 kB / 0.6961 GB, free: 97.27 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001556/1.21, allocations: 194.3 kB / 0.6963 GB, free: 97.27 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00361/1.214, allocations: 1.401 MB / 0.6977 GB, free: 97.14 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001639/1.214, allocations: 266.5 kB / 0.6979 GB, free: 97.08 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004702/1.219, allocations: 371.4 kB / 0.6983 GB, free: 97.07 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004589/1.219, allocations: 366.5 kB / 0.6986 GB, free: 97.07 MB / 442.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.004102/1.223, allocations: 1.971 MB / 0.7005 GB, free: 96.75 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009937/1.224, allocations: 337.2 kB / 0.7009 GB, free: 96.56 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002251/1.226, allocations: 1.247 MB / 0.7021 GB, free: 96.46 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.602e-05/1.226, allocations: 15.94 kB / 0.7021 GB, free: 96.46 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.397e-05/1.226, allocations: 0 / 0.7021 GB, free: 96.46 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.585e-05/1.226, allocations: 10.34 kB / 0.7021 GB, free: 96.46 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009078/1.236, allocations: 5.791 MB / 0.7078 GB, free: 94.09 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.029e-05/1.236, allocations: 20.62 kB / 0.7078 GB, free: 94.09 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009193/1.236, allocations: 277.2 kB / 0.708 GB, free: 94.06 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.418e-05/1.237, allocations: 36.12 kB / 0.7081 GB, free: 94.06 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.931e-05/1.237, allocations: 52.72 kB / 0.7081 GB, free: 94.04 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.464e-05/1.237, allocations: 39.91 kB / 0.7082 GB, free: 94.03 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.656e-05/1.237, allocations: 31.59 kB / 0.7082 GB, free: 94.02 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003965/1.241, allocations: 5.361 MB / 0.7134 GB, free: 89.62 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009036/1.242, allocations: 415.1 kB / 0.7138 GB, free: 89.32 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003007/1.242, allocations: 61 kB / 0.7139 GB, free: 89.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001197/1.243, allocations: 88.45 kB / 0.714 GB, free: 89.29 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001897/1.243, allocations: 151.5 kB / 0.7141 GB, free: 89.23 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.472e-05/1.243, allocations: 70.44 kB / 0.7142 GB, free: 89.22 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00372/1.247, allocations: 2.46 MB / 0.7166 GB, free: 88.43 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.01e-07/1.247, allocations: 0 / 0.7166 GB, free: 88.43 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004909/1.252, allocations: 0.8809 MB / 0.7174 GB, free: 88.32 MB / 442.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.00486/1.257, allocations: 10.61 MB / 0.7278 GB, free: 78.74 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005992/1.263, allocations: 3.638 MB / 0.7314 GB, free: 77.55 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.652e-05/1.263, allocations: 3.938 kB / 0.7314 GB, free: 77.55 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009221/1.264, allocations: 0.7285 MB / 0.7321 GB, free: 77.3 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002694/1.267, allocations: 421 kB / 0.7325 GB, free: 77.13 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3067/1.573, allocations: 122.1 MB / 0.8518 GB, free: 130.9 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003645/1.577, allocations: 3.18 MB / 0.8549 GB, free: 130.1 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.004278/1.581, allocations: 1.776 MB / 0.8566 GB, free: 130.1 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00189/1.583, allocations: 1.805 MB / 0.8584 GB, free: 130.1 MB / 474.7 MB Notification: Performance of SimCode: time 1.453e-06/1.583, allocations: 3.25 kB / 0.8584 GB, free: 130.1 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1055/1.689, allocations: 65.24 MB / 0.9221 GB, free: 92.02 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001433/1.689, allocations: 202.3 kB / 0.9223 GB, free: 91.77 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.808/5.496, allocations: 0 / 0.9223 GB, free: 91.77 MB / 474.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat does not exist to compare? outputFormat=mat