Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.001545/0.001545, allocations: 181.9 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.056/2.056, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001131/0.001131, allocations: 90.64 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.237e-05/3.253e-05, allocations: 4 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09657/0.09664, allocations: 47.58 MB / 369.2 MB, free: 2.105 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4308/0.5275, allocations: 94.85 MB / 464 MB, free: 14.58 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003145/0.5279, allocations: 84.39 kB / 464.1 MB, free: 14.54 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6813/1.209, allocations: 85.07 MB / 0.5363 GB, free: 91.83 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.775e-06/1.209, allocations: 3.938 kB / 0.5363 GB, free: 91.83 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003034/1.21, allocations: 79.19 kB / 0.5364 GB, free: 91.83 MB / 410.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.01787/1.227, allocations: 3.842 MB / 0.5401 GB, free: 90.26 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.826e-05/1.228, allocations: 9.625 kB / 0.5402 GB, free: 90.26 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004183/1.232, allocations: 0.7397 MB / 0.5409 GB, free: 90.19 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02209/1.254, allocations: 2.444 MB / 0.5433 GB, free: 89.91 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02077/1.275, allocations: 5.066 MB / 0.5482 GB, free: 89.35 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005794/1.275, allocations: 312.5 kB / 0.5485 GB, free: 89.34 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002621/1.278, allocations: 416.9 kB / 0.5489 GB, free: 89.33 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02964/1.308, allocations: 9.931 MB / 0.5586 GB, free: 86.5 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002882/1.308, allocations: 64.62 kB / 0.5587 GB, free: 86.49 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001875/1.31, allocations: 203.1 kB / 0.5589 GB, free: 86.49 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00256/1.313, allocations: 1.01 MB / 0.5598 GB, free: 86.48 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.023/1.336, allocations: 7.643 MB / 0.5673 GB, free: 86.43 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06332/1.399, allocations: 45.7 MB / 0.6119 GB, free: 50.98 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01055/1.41, allocations: 2.832 MB / 0.6147 GB, free: 49.7 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001998/1.412, allocations: 0.8438 MB / 0.6155 GB, free: 49.39 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009462/1.421, allocations: 3.834 MB / 0.6193 GB, free: 47.02 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.262e-05/1.421, allocations: 52.25 kB / 0.6193 GB, free: 46.96 MB / 410.7 MB Notification: Performance of pre-optimization done (n=134): time 5.38e-06/1.421, allocations: 2.938 kB / 0.6193 GB, free: 46.96 MB / 410.7 MB Notification: Performance of matching and sorting (n=152): time 0.03397/1.455, allocations: 8.442 MB / 0.6276 GB, free: 42.29 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.189e-05/1.455, allocations: 144.8 kB / 0.6277 GB, free: 42.12 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007776/1.463, allocations: 3.455 MB / 0.6311 GB, free: 39.02 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000287/1.464, allocations: 45.7 kB / 0.6311 GB, free: 38.97 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002639/1.466, allocations: 3.033 MB / 0.6341 GB, free: 36.22 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008274/1.467, allocations: 0.6034 MB / 0.6347 GB, free: 35.69 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006312/1.468, allocations: 116 kB / 0.6348 GB, free: 35.58 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003758/1.468, allocations: 0.5549 MB / 0.6353 GB, free: 35.08 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003691/1.472, allocations: 1.484 MB / 0.6368 GB, free: 33.74 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006372/1.478, allocations: 5.217 MB / 0.6419 GB, free: 26.87 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006065/1.484, allocations: 2.784 MB / 0.6446 GB, free: 24.49 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001129/1.484, allocations: 40 kB / 0.6446 GB, free: 24.45 MB / 410.7 MB Notification: Performance of matching and sorting (n=760) (initialization): time 0.0162/1.501, allocations: 6.335 MB / 0.6508 GB, free: 18.81 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001078/1.501, allocations: 60.19 kB / 0.6509 GB, free: 18.75 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001884/1.501, allocations: 140 kB / 0.651 GB, free: 18.61 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002174/1.501, allocations: 196 kB / 0.6512 GB, free: 18.42 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008603/1.51, allocations: 1.389 MB / 0.6525 GB, free: 17.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002435/1.51, allocations: 270.9 kB / 0.6528 GB, free: 16.96 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007023/1.517, allocations: 376.8 kB / 0.6532 GB, free: 16.64 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001216/1.519, allocations: 367.8 kB / 0.6535 GB, free: 16.29 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 () * 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.001236/1.52, allocations: 0.5638 MB / 0.6541 GB, free: 15.72 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007965/1.521, allocations: 339.6 kB / 0.6544 GB, free: 15.39 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003061/1.524, allocations: 1.21 MB / 0.6556 GB, free: 14.33 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.509e-05/1.524, allocations: 16 kB / 0.6556 GB, free: 14.32 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.013e-05/1.524, allocations: 0 / 0.6556 GB, free: 14.32 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.946e-05/1.524, allocations: 11.22 kB / 0.6556 GB, free: 14.31 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01498/1.539, allocations: 5.779 MB / 0.6612 GB, free: 9.172 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.059e-05/1.539, allocations: 20 kB / 0.6613 GB, free: 9.152 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002065/1.541, allocations: 286.7 kB / 0.6615 GB, free: 8.91 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.214e-05/1.541, allocations: 28 kB / 0.6616 GB, free: 8.883 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001997/1.541, allocations: 48 kB / 0.6616 GB, free: 8.836 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.025e-05/1.541, allocations: 39.3 kB / 0.6616 GB, free: 8.801 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.957e-05/1.541, allocations: 27.88 kB / 0.6617 GB, free: 8.773 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005792/1.547, allocations: 5.355 MB / 0.6669 GB, free: 2.754 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001944/1.549, allocations: 0.5235 MB / 0.6674 GB, free: 2.242 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001051/1.55, allocations: 51.66 kB / 0.6675 GB, free: 2.195 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002958/1.553, allocations: 93.95 kB / 0.6675 GB, free: 2.125 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003946/1.554, allocations: 150.5 kB / 0.6677 GB, free: 2.012 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000139/1.554, allocations: 68 kB / 0.6678 GB, free: 1.945 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.007295/1.561, allocations: 2.444 MB / 0.6701 GB, free: 0 / 410.7 MB Notification: Performance of sort global known variables: time 1.012e-06/1.561, allocations: 336 / 0.6701 GB, free: 0 / 410.7 MB Notification: Performance of remove unused functions: time 0.00812/1.569, allocations: 0.9293 MB / 0.671 GB, free: 15.22 MB / 426.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 () * 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.009933/1.579, allocations: 10.57 MB / 0.6814 GB, free: 4.305 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.009249/1.589, allocations: 3.514 MB / 0.6848 GB, free: 1.082 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.421e-05/1.589, allocations: 4.375 kB / 0.6848 GB, free: 1.078 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001821/1.591, allocations: 0.72 MB / 0.6855 GB, free: 424 kB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003856/1.594, allocations: 418.5 kB / 0.6859 GB, free: 56 kB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3237/1.918, allocations: 8.773 MB / 0.6945 GB, free: 94.23 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009237/1.927, allocations: 3.186 MB / 0.6976 GB, free: 93.45 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004575/1.932, allocations: 1.859 MB / 0.6994 GB, free: 93.44 MB / 426.7 MB Notification: Performance of SimCode: time 1.332e-06/1.932, allocations: 3.656 kB / 0.6994 GB, free: 93.44 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.103/6.035, allocations: 74.15 MB / 0.7718 GB, free: 63.08 MB / 426.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat does not exist to compare? outputFormat=mat