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.001524/0.001524, allocations: 186 kB / 16.41 MB, free: 5.727 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.961/1.961, allocations: 205.4 MB / 222.5 MB, free: 9.141 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.001158/0.001158, allocations: 99.22 kB / 270.9 MB, free: 8.387 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003977/0.0003978, allocations: 8 kB / 327.1 MB, free: 124 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.347/0.3475, allocations: 47.57 MB / 374.6 MB, free: 45.29 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1519/0.4994, allocations: 94.95 MB / 469.6 MB, free: 1.672 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000338/0.4998, allocations: 95.94 kB / 469.7 MB, free: 1.578 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.619/1.119, allocations: 85.02 MB / 0.5417 GB, free: 73.5 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.354e-06/1.119, allocations: 4 kB / 0.5417 GB, free: 73.49 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002225/1.119, allocations: 76 kB / 0.5418 GB, free: 73.42 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.01442/1.134, allocations: 4.085 MB / 0.5458 GB, free: 69.26 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.121e-05/1.134, allocations: 15.95 kB / 0.5458 GB, free: 69.25 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002968/1.137, allocations: 0.7418 MB / 0.5465 GB, free: 68.49 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0201/1.157, allocations: 2.44 MB / 0.5489 GB, free: 66.04 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01709/1.174, allocations: 5.087 MB / 0.5539 GB, free: 60.89 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003399/1.174, allocations: 316.1 kB / 0.5542 GB, free: 60.58 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002027/1.176, allocations: 411.8 kB / 0.5546 GB, free: 60.18 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0273/1.204, allocations: 10.08 MB / 0.5644 GB, free: 49.02 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002633/1.204, allocations: 59.48 kB / 0.5644 GB, free: 48.96 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001679/1.206, allocations: 207.8 kB / 0.5646 GB, free: 48.76 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002279/1.208, allocations: 1.006 MB / 0.5656 GB, free: 47.75 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02405/1.232, allocations: 7.893 MB / 0.5733 GB, free: 39.84 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06172/1.294, allocations: 45.69 MB / 0.618 GB, free: 8.617 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0119/1.306, allocations: 2.874 MB / 0.6208 GB, free: 5.598 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01045/1.316, allocations: 3.822 MB / 0.6245 GB, free: 1.574 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.946e-05/1.316, allocations: 51.14 kB / 0.6245 GB, free: 1.516 MB / 394.7 MB Notification: Performance of pre-optimization done (n=134): time 5.39e-06/1.316, allocations: 0 / 0.6245 GB, free: 1.516 MB / 394.7 MB Notification: Performance of matching and sorting (n=152): time 0.0401/1.357, allocations: 9.359 MB / 0.6337 GB, free: 7.98 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001146/1.357, allocations: 145.5 kB / 0.6338 GB, free: 7.805 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009846/1.367, allocations: 3.549 MB / 0.6373 GB, free: 4.23 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003064/1.367, allocations: 45.7 kB / 0.6373 GB, free: 4.18 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003633/1.371, allocations: 3.031 MB / 0.6403 GB, free: 1.109 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001018/1.372, allocations: 0.6096 MB / 0.6409 GB, free: 0.4922 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00074/1.372, allocations: 116 kB / 0.641 GB, free: 388 kB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.303/1.675, allocations: 0.5572 MB / 0.6415 GB, free: 101.7 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005199/1.681, allocations: 1.58 MB / 0.6431 GB, free: 101.7 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00719/1.688, allocations: 5.326 MB / 0.6483 GB, free: 96.85 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007234/1.695, allocations: 2.842 MB / 0.6511 GB, free: 96.84 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001792/1.695, allocations: 38.59 kB / 0.6511 GB, free: 96.84 MB / 410.7 MB Notification: Performance of matching and sorting (n=760) (initialization): time 0.01972/1.715, allocations: 6.539 MB / 0.6575 GB, free: 96.22 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001473/1.715, allocations: 66.81 kB / 0.6575 GB, free: 96.22 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002243/1.716, allocations: 136.6 kB / 0.6577 GB, free: 96.22 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002088/1.716, allocations: 195.9 kB / 0.6579 GB, free: 96.22 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008213/1.724, allocations: 1.401 MB / 0.6592 GB, free: 96.1 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002656/1.724, allocations: 256.5 kB / 0.6595 GB, free: 96.04 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006622/1.731, allocations: 369.5 kB / 0.6598 GB, free: 96.04 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00112/1.732, allocations: 363.4 kB / 0.6602 GB, free: 96.04 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.005061/1.737, allocations: 1.978 MB / 0.6621 GB, free: 95.8 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007855/1.738, allocations: 338.8 kB / 0.6624 GB, free: 95.8 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003395/1.741, allocations: 1.25 MB / 0.6637 GB, free: 95.7 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.996e-05/1.742, allocations: 19.38 kB / 0.6637 GB, free: 95.7 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.145e-05/1.742, allocations: 0 / 0.6637 GB, free: 95.7 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.905e-05/1.742, allocations: 7.781 kB / 0.6637 GB, free: 95.7 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01432/1.756, allocations: 5.804 MB / 0.6693 GB, free: 93.76 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.067e-05/1.756, allocations: 20.84 kB / 0.6694 GB, free: 93.76 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001878/1.758, allocations: 276.7 kB / 0.6696 GB, free: 93.73 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.187e-05/1.758, allocations: 32.62 kB / 0.6697 GB, free: 93.73 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001268/1.758, allocations: 52.72 kB / 0.6697 GB, free: 93.71 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.047e-05/1.758, allocations: 42.84 kB / 0.6698 GB, free: 93.7 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.981e-05/1.758, allocations: 30.09 kB / 0.6698 GB, free: 93.7 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005963/1.764, allocations: 5.38 MB / 0.675 GB, free: 89.09 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00172/1.766, allocations: 0.525 MB / 0.6755 GB, free: 88.76 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000811/1.767, allocations: 51.7 kB / 0.6756 GB, free: 88.74 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002447/1.769, allocations: 95.84 kB / 0.6757 GB, free: 88.72 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000302/1.77, allocations: 151.2 kB / 0.6758 GB, free: 88.66 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001496/1.77, allocations: 63.72 kB / 0.6759 GB, free: 88.66 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.006371/1.776, allocations: 2.483 MB / 0.6783 GB, free: 87.82 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.01e-07/1.776, allocations: 0 / 0.6783 GB, free: 87.82 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0066/1.783, allocations: 0.8857 MB / 0.6792 GB, free: 87.71 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.007227/1.79, allocations: 10.6 MB / 0.6895 GB, free: 78.15 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.008941/1.799, allocations: 3.637 MB / 0.6931 GB, free: 76.95 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.029e-05/1.799, allocations: 3.281 kB / 0.6931 GB, free: 76.95 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00162/1.801, allocations: 0.7285 MB / 0.6938 GB, free: 76.71 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003294/1.804, allocations: 418.8 kB / 0.6942 GB, free: 76.53 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3905/2.195, allocations: 122.7 MB / 0.8141 GB, free: 119.4 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0058/2.2, allocations: 3.196 MB / 0.8172 GB, free: 118.6 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003927/2.204, allocations: 1.85 MB / 0.819 GB, free: 118.6 MB / 442.7 MB Notification: Performance of SimCode: time 1.142e-06/2.205, allocations: 0 / 0.819 GB, free: 118.6 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.824/6.029, allocations: 74.18 MB / 0.8914 GB, free: 68.22 MB / 442.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