Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.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.InitSpringConstant,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant",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.002352/0.002352, allocations: 181.4 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.289/2.289, 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.001196/0.001195, allocations: 82.72 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.365e-05/4.382e-05, allocations: 4 kB / 321.6 MB, free: 17.74 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.1101, allocations: 47.58 MB / 369.2 MB, free: 2.102 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4549/0.565, allocations: 97.66 MB / 466.9 MB, free: 11.46 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003102/0.5654, allocations: 86.33 kB / 466.9 MB, free: 11.41 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3272/0.8927, allocations: 73.21 MB / 0.5275 GB, free: 3.52 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.435e-06/0.8927, allocations: 0 / 0.5275 GB, free: 3.52 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002513/0.893, allocations: 68 kB / 0.5275 GB, free: 3.453 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: 1275 * Number of variables: 1275 Notification: Performance of Generate backend data structure: time 0.3015/1.194, allocations: 3.4 MB / 0.5309 GB, free: 93.63 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.362e-05/1.195, allocations: 8.844 kB / 0.5309 GB, free: 93.63 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003053/1.198, allocations: 0.6444 MB / 0.5315 GB, free: 93.56 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01716/1.215, allocations: 2.087 MB / 0.5335 GB, free: 93.32 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01674/1.232, allocations: 4.051 MB / 0.5375 GB, free: 93.03 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004244/1.232, allocations: 262 kB / 0.5377 GB, free: 93.02 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002072/1.234, allocations: 356.1 kB / 0.5381 GB, free: 93.02 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02779/1.262, allocations: 8.927 MB / 0.5468 GB, free: 90.39 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003602/1.262, allocations: 52.56 kB / 0.5469 GB, free: 90.39 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001611/1.264, allocations: 176.6 kB / 0.547 GB, free: 90.39 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002364/1.266, allocations: 0.8849 MB / 0.5479 GB, free: 90.39 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02116/1.288, allocations: 7.17 MB / 0.5549 GB, free: 90.29 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05896/1.347, allocations: 42.96 MB / 0.5968 GB, free: 58.62 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0123/1.359, allocations: 3.292 MB / 0.6001 GB, free: 57.22 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002922/1.362, allocations: 1.441 MB / 0.6015 GB, free: 56.6 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0101/1.372, allocations: 4.416 MB / 0.6058 GB, free: 53.95 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.39e-05/1.372, allocations: 55.8 kB / 0.6058 GB, free: 53.9 MB / 410.7 MB Notification: Performance of pre-optimization done (n=121): time 5.591e-06/1.372, allocations: 0 / 0.6058 GB, free: 53.9 MB / 410.7 MB Notification: Performance of matching and sorting (n=129): time 0.03902/1.411, allocations: 9.644 MB / 0.6153 GB, free: 49.93 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.251e-05/1.411, allocations: 144.8 kB / 0.6154 GB, free: 49.77 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007658/1.419, allocations: 3.303 MB / 0.6186 GB, free: 48.55 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003494/1.42, allocations: 50.67 kB / 0.6187 GB, free: 48.5 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002316/1.422, allocations: 2.69 MB / 0.6213 GB, free: 46.35 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008513/1.423, allocations: 0.5195 MB / 0.6218 GB, free: 45.98 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000603/1.423, allocations: 106.7 kB / 0.6219 GB, free: 45.9 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003476/1.424, allocations: 0.5349 MB / 0.6224 GB, free: 45.5 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004194/1.428, allocations: 1.647 MB / 0.624 GB, free: 44.17 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006281/1.434, allocations: 5.061 MB / 0.629 GB, free: 37.64 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006329/1.441, allocations: 2.868 MB / 0.6318 GB, free: 35.17 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001053/1.441, allocations: 36 kB / 0.6318 GB, free: 35.13 MB / 410.7 MB Notification: Performance of matching and sorting (n=694) (initialization): time 0.01675/1.458, allocations: 6.503 MB / 0.6382 GB, free: 29.38 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.96e-05/1.458, allocations: 57.25 kB / 0.6382 GB, free: 29.32 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001607/1.458, allocations: 120 kB / 0.6383 GB, free: 29.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001006/1.459, allocations: 336 kB / 0.6386 GB, free: 28.91 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007934/1.467, allocations: 1.288 MB / 0.6399 GB, free: 27.8 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00325/1.47, allocations: 2.313 MB / 0.6422 GB, free: 25.55 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005879/1.476, allocations: 280.4 kB / 0.6424 GB, free: 25.3 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001162/1.477, allocations: 327.1 kB / 0.6427 GB, free: 24.98 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 557 * Number of states: 0 () * Number of discrete variables: 33 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixed.color[3],fixed.color[2],fixed.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[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 (666): * Single equations (assignments): 662 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001316/1.479, allocations: 0.5154 MB / 0.6432 GB, free: 24.46 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008254/1.48, allocations: 319.9 kB / 0.6436 GB, free: 24.14 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007791/1.487, allocations: 2.349 MB / 0.6458 GB, free: 22.32 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.347e-05/1.488, allocations: 15.95 kB / 0.6459 GB, free: 22.3 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.505e-05/1.488, allocations: 4 kB / 0.6459 GB, free: 22.3 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.022e-05/1.488, allocations: 7.219 kB / 0.6459 GB, free: 22.3 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0185/1.506, allocations: 5.938 MB / 0.6517 GB, free: 17.58 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.703e-05/1.506, allocations: 0 / 0.6517 GB, free: 17.58 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001705/1.508, allocations: 176.8 kB / 0.6518 GB, free: 17.43 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003913/1.512, allocations: 0.7149 MB / 0.6525 GB, free: 16.97 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003069/1.512, allocations: 20 kB / 0.6526 GB, free: 16.95 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008605/1.521, allocations: 4.441 MB / 0.6569 GB, free: 12.96 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/1.521, allocations: 4.062 kB / 0.6569 GB, free: 12.96 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01095/1.532, allocations: 4.422 MB / 0.6612 GB, free: 9.109 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00199/1.534, allocations: 0.5342 MB / 0.6617 GB, free: 8.594 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009009/1.535, allocations: 19.91 kB / 0.6618 GB, free: 8.578 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002485/1.537, allocations: 76.3 kB / 0.6618 GB, free: 8.527 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003737/1.538, allocations: 61.36 kB / 0.6619 GB, free: 8.488 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001403/1.538, allocations: 35.19 kB / 0.6619 GB, free: 8.457 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.005756/1.544, allocations: 2.29 MB / 0.6642 GB, free: 6.367 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.12e-07/1.544, allocations: 7.938 kB / 0.6642 GB, free: 6.359 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006152/1.55, allocations: 0.8224 MB / 0.665 GB, free: 5.543 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 92 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0118/1.562, allocations: 5.359 MB / 0.6702 GB, free: 140 kB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01068/1.573, allocations: 3.958 MB / 0.6741 GB, free: 12.19 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.516e-06/1.573, allocations: 0 / 0.6741 GB, free: 12.19 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002935/1.576, allocations: 1.088 MB / 0.6751 GB, free: 11.09 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003368/1.579, allocations: 354.4 kB / 0.6755 GB, free: 10.75 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02803/1.607, allocations: 7.439 MB / 0.6827 GB, free: 3.285 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006834/1.614, allocations: 2.867 MB / 0.6855 GB, free: 416 kB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.2923/1.906, allocations: 1.572 MB / 0.6871 GB, free: 96.71 MB / 426.7 MB Notification: Performance of SimCode: time 1.563e-06/1.906, allocations: 4.844 kB / 0.6871 GB, free: 96.71 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.241/6.148, allocations: 83.05 MB / 0.7682 GB, free: 63.59 MB / 426.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant_res.mat does not exist to compare? outputFormat=mat