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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009361/0.0009354, allocations: 97.31 kB / 16.95 MB, free: 6.891 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001014/0.001014, allocations: 184.9 kB / 17.84 MB, free: 6.137 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.629/1.629, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0007276/0.0007277, allocations: 15.42 kB / 280.9 MB, free: 3.613 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.118/0.1187, allocations: 47.57 MB / 328.5 MB, free: 3.969 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.04003/0.1588, allocations: 35.01 MB / 363.5 MB, free: 0.8477 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01984/0.1787, allocations: 8.017 MB / 371.5 MB, free: 8.809 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007824/0.1866, allocations: 163.6 kB / 371.6 MB, free: 8.648 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00603/0.1927, allocations: 1.792 MB / 373.4 MB, free: 6.848 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01551/0.2082, allocations: 5.502 MB / 378.9 MB, free: 1.324 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002873/0.2111, allocations: 0.628 MB / 379.6 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2263/0.4374, allocations: 4.71 MB / 384.3 MB, free: 10.81 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006357/0.4438, allocations: 3.362 MB / 387.6 MB, free: 10.5 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002901/0.4467, allocations: 1.274 MB / 388.9 MB, free: 10.5 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003415/0.4502, allocations: 2.01 MB / 390.9 MB, free: 10.49 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006283/0.4508, allocations: 144.5 kB / 391.1 MB, free: 10.49 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001844/0.4527, allocations: 0.7192 MB / 391.8 MB, free: 10.49 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001702/0.4544, allocations: 1.638 MB / 393.4 MB, free: 10.49 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009635/0.4553, allocations: 0.7897 MB / 394.2 MB, free: 10.46 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005088/0.4604, allocations: 4.868 MB / 399.1 MB, free: 9.645 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.144e-06/0.4605, allocations: 0 / 399.1 MB, free: 9.645 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.505e-06/0.4605, allocations: 4.766 kB / 399.1 MB, free: 9.645 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001729/0.4607, allocations: 0 / 399.1 MB, free: 9.645 MB / 318.1 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.007648/0.4683, allocations: 3.895 MB / 403 MB, free: 7.246 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.055e-05/0.4684, allocations: 8.688 kB / 403 MB, free: 7.246 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001043/0.4694, allocations: 0.6955 MB / 403.7 MB, free: 7.035 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006378/0.4758, allocations: 1.992 MB / 405.7 MB, free: 6.094 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00597/0.4818, allocations: 3.104 MB / 408.8 MB, free: 5.09 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001814/0.482, allocations: 230.7 kB / 409 MB, free: 5.078 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006506/0.4827, allocations: 297.4 kB / 409.3 MB, free: 5.074 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01463/0.4973, allocations: 9.628 MB / 418.9 MB, free: 15.78 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001225/0.4975, allocations: 48.47 kB / 419 MB, free: 15.76 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004033/0.4979, allocations: 149.3 kB / 419.1 MB, free: 15.71 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002723/0.5006, allocations: 1.92 MB / 421 MB, free: 14.12 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01562/0.5163, allocations: 7.611 MB / 428.6 MB, free: 8.797 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04958/0.5659, allocations: 37.78 MB / 466.4 MB, free: 6.086 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006965/0.5729, allocations: 2.873 MB / 469.3 MB, free: 3.078 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001515/0.5745, allocations: 0.8722 MB / 470.2 MB, free: 2.195 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007132/0.5816, allocations: 3.767 MB / 473.9 MB, free: 14.26 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.787e-05/0.5817, allocations: 43.22 kB / 474 MB, free: 14.21 MB / 382.1 MB Notification: Performance of pre-optimization done (n=134): time 6.091e-06/0.5818, allocations: 0 / 474 MB, free: 14.21 MB / 382.1 MB Notification: Performance of matching and sorting (n=152): time 0.02562/0.6074, allocations: 9.152 MB / 483.1 MB, free: 4.984 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.471e-05/0.6075, allocations: 141.5 kB / 483.3 MB, free: 4.816 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008155/0.6157, allocations: 3.941 MB / 487.2 MB, free: 0.8516 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002514/0.616, allocations: 47.45 kB / 487.3 MB, free: 0.8008 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003049/0.619, allocations: 3.092 MB / 490.3 MB, free: 13.72 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000866/0.6199, allocations: 0.61 MB / 491 MB, free: 13.12 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004432/0.6204, allocations: 116 kB / 491.1 MB, free: 13 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0005213/0.6209, allocations: 0.55 MB / 491.6 MB, free: 12.45 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003158/0.6241, allocations: 1.538 MB / 493.2 MB, free: 10.9 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005769/0.6299, allocations: 5.31 MB / 498.5 MB, free: 3.758 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004603/0.6345, allocations: 2.794 MB / 0.4895 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001374/0.6347, allocations: 42.41 kB / 0.4896 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.01273/0.6474, allocations: 6.569 MB / 0.496 GB, free: 10.38 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001485/0.6476, allocations: 64 kB / 0.496 GB, free: 10.32 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002272/0.6478, allocations: 132 kB / 0.4962 GB, free: 10.19 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000245/0.6481, allocations: 200 kB / 0.4963 GB, free: 9.996 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00426/0.6524, allocations: 1.376 MB / 0.4977 GB, free: 8.617 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002806/0.6527, allocations: 268.7 kB / 0.4979 GB, free: 8.359 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004066/0.6567, allocations: 282.4 kB / 0.4982 GB, free: 8.086 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006673/0.6574, allocations: 367.9 kB / 0.4986 GB, free: 7.727 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 612 * 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 (738): * Single equations (assignments): 735 * 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.003811/0.6613, allocations: 1.978 MB / 0.5005 GB, free: 5.738 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007861/0.662, allocations: 339.6 kB / 0.5008 GB, free: 5.402 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002529/0.6646, allocations: 1.25 MB / 0.502 GB, free: 4.129 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.103e-05/0.6646, allocations: 16 kB / 0.5021 GB, free: 4.113 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.608e-05/0.6647, allocations: 3.953 kB / 0.5021 GB, free: 4.109 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.669e-05/0.6647, allocations: 3.984 kB / 0.5021 GB, free: 4.105 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01167/0.6764, allocations: 5.742 MB / 0.5077 GB, free: 14.07 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.689e-05/0.6764, allocations: 20 kB / 0.5077 GB, free: 14.05 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009678/0.6774, allocations: 275.5 kB / 0.508 GB, free: 13.78 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.12e-05/0.6775, allocations: 31.95 kB / 0.508 GB, free: 13.75 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.061e-05/0.6776, allocations: 59.34 kB / 0.508 GB, free: 13.69 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.777e-05/0.6776, allocations: 36.33 kB / 0.5081 GB, free: 13.66 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-05/0.6776, allocations: 27.88 kB / 0.5081 GB, free: 13.63 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004093/0.6817, allocations: 3.204 MB / 0.5112 GB, free: 10.16 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00128/0.683, allocations: 0.516 MB / 0.5117 GB, free: 9.625 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000328/0.6834, allocations: 55.94 kB / 0.5118 GB, free: 9.57 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001117/0.6845, allocations: 55.97 kB / 0.5118 GB, free: 9.516 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001682/0.6847, allocations: 148 kB / 0.512 GB, free: 9.371 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.628e-05/0.6848, allocations: 64 kB / 0.512 GB, free: 9.309 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.004422/0.6892, allocations: 2.447 MB / 0.5144 GB, free: 6.848 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6892, allocations: 0 / 0.5144 GB, free: 6.848 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.005927/0.6951, allocations: 0.8658 MB / 0.5153 GB, free: 5.984 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 82 * 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 (142): * Single equations (assignments): 139 * 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.005034/0.7002, allocations: 3.887 MB / 0.5191 GB, free: 1.828 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.006622/0.7068, allocations: 3.575 MB / 0.5226 GB, free: 14.29 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.682e-05/0.7069, allocations: 0.6875 kB / 0.5226 GB, free: 14.29 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001111/0.708, allocations: 0.7296 MB / 0.5233 GB, free: 13.56 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003177/0.7112, allocations: 439.7 kB / 0.5237 GB, free: 13.13 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2538/0.965, allocations: 30.55 MB / 0.5535 GB, free: 148.4 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003244/0.9683, allocations: 3.105 MB / 0.5566 GB, free: 147.2 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004187/0.9725, allocations: 1.764 MB / 0.5583 GB, free: 147.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00239/0.9749, allocations: 1.8 MB / 0.56 GB, free: 145.7 MB / 446.1 MB Notification: Performance of SimCode: time 2.114e-06/0.975, allocations: 0 / 0.56 GB, free: 145.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09906/1.074, allocations: 65.15 MB / 0.6237 GB, free: 87.6 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001535/1.074, allocations: 210.7 kB / 0.6239 GB, free: 87.36 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.846/4.92, allocations: 0 / 0.6239 GB, free: 87.36 MB / 446.1 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) Environment - environmentSimulation: 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