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/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_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/Complex 3.2.3+maint.om/package.mo): time 0.001392/0.001392, allocations: 171.9 kB / 14.1 MB, free: 1.223 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.412/1.412, allocations: 205.2 MB / 219.8 MB, free: 14.27 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.0007887/0.0007887, allocations: 90.69 kB / 268 MB, free: 14.09 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.593e-05/3.609e-05, allocations: 4 kB / 322.5 MB, free: 17.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09318/0.09324, allocations: 47.57 MB / 370.1 MB, free: 1.617 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3648/0.4581, allocations: 94.85 MB / 465 MB, free: 14.68 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002546/0.4584, allocations: 87.02 kB / 465 MB, free: 14.63 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4223/0.8808, allocations: 85.06 MB / 0.5372 GB, free: 91.88 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.283e-06/0.8808, allocations: 0 / 0.5372 GB, free: 91.88 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002172/0.8811, allocations: 84.75 kB / 0.5373 GB, free: 91.87 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.01097/0.8921, allocations: 3.843 MB / 0.541 GB, free: 90.3 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.165e-05/0.8921, allocations: 9.062 kB / 0.5411 GB, free: 90.3 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002142/0.8943, allocations: 0.7416 MB / 0.5418 GB, free: 90.23 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01124/0.9055, allocations: 2.436 MB / 0.5442 GB, free: 89.96 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01227/0.9178, allocations: 5.069 MB / 0.5491 GB, free: 89.39 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004324/0.9183, allocations: 313.7 kB / 0.5494 GB, free: 89.38 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00194/0.9202, allocations: 417.6 kB / 0.5498 GB, free: 89.38 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01536/0.9356, allocations: 9.935 MB / 0.5595 GB, free: 86.54 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001149/0.9358, allocations: 58.44 kB / 0.5596 GB, free: 86.54 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004668/0.9362, allocations: 203.9 kB / 0.5598 GB, free: 86.54 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001063/0.9373, allocations: 1.009 MB / 0.5607 GB, free: 86.53 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01059/0.9479, allocations: 7.65 MB / 0.5682 GB, free: 86.46 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03416/0.9821, allocations: 45.69 MB / 0.6128 GB, free: 51.09 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005626/0.9878, allocations: 2.84 MB / 0.6156 GB, free: 49.81 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00102/0.9888, allocations: 0.8399 MB / 0.6164 GB, free: 49.49 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005331/0.9942, allocations: 3.832 MB / 0.6202 GB, free: 47.12 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.621e-05/0.9942, allocations: 46.38 kB / 0.6202 GB, free: 47.07 MB / 410.7 MB Notification: Performance of pre-optimization done (n=134): time 3.637e-06/0.9942, allocations: 0 / 0.6202 GB, free: 47.07 MB / 410.7 MB Notification: Performance of matching and sorting (n=152): time 0.01906/1.013, allocations: 8.445 MB / 0.6285 GB, free: 42.17 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.693e-05/1.013, allocations: 153.2 kB / 0.6286 GB, free: 41.99 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005007/1.018, allocations: 3.451 MB / 0.632 GB, free: 38.9 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001469/1.019, allocations: 45.7 kB / 0.632 GB, free: 38.85 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001462/1.02, allocations: 3.098 MB / 0.6351 GB, free: 36.07 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004569/1.021, allocations: 0.609 MB / 0.6356 GB, free: 35.54 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002154/1.021, allocations: 116 kB / 0.6358 GB, free: 35.42 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002234/1.021, allocations: 0.553 MB / 0.6363 GB, free: 34.93 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001769/1.023, allocations: 1.482 MB / 0.6377 GB, free: 33.59 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003027/1.026, allocations: 5.217 MB / 0.6428 GB, free: 26.73 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00309/1.029, allocations: 2.798 MB / 0.6456 GB, free: 24.33 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.781e-05/1.029, allocations: 36 kB / 0.6456 GB, free: 24.3 MB / 410.7 MB Notification: Performance of matching and sorting (n=760) (initialization): time 0.008728/1.038, allocations: 6.445 MB / 0.6519 GB, free: 18.54 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.919e-05/1.038, allocations: 60 kB / 0.652 GB, free: 18.48 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001161/1.038, allocations: 139.9 kB / 0.6521 GB, free: 18.35 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001389/1.038, allocations: 196 kB / 0.6523 GB, free: 18.16 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003882/1.042, allocations: 1.4 MB / 0.6536 GB, free: 16.93 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001558/1.042, allocations: 263.4 kB / 0.6539 GB, free: 16.7 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004442/1.047, allocations: 366.2 kB / 0.6542 GB, free: 16.38 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008827/1.048, allocations: 364 kB / 0.6546 GB, free: 16.03 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.001181/1.049, allocations: 0.5693 MB / 0.6551 GB, free: 15.46 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007055/1.049, allocations: 343.5 kB / 0.6555 GB, free: 15.12 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002485/1.052, allocations: 1.209 MB / 0.6567 GB, free: 14.07 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.245e-05/1.052, allocations: 20 kB / 0.6567 GB, free: 14.05 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.332e-05/1.052, allocations: 7.938 kB / 0.6567 GB, free: 14.04 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.494e-05/1.052, allocations: 3.75 kB / 0.6567 GB, free: 14.04 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0109/1.063, allocations: 5.777 MB / 0.6623 GB, free: 8.898 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.149e-05/1.063, allocations: 20 kB / 0.6623 GB, free: 8.879 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00101/1.064, allocations: 283.7 kB / 0.6626 GB, free: 8.641 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.173e-05/1.064, allocations: 28 kB / 0.6626 GB, free: 8.613 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001288/1.064, allocations: 52 kB / 0.6627 GB, free: 8.562 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.28e-05/1.064, allocations: 34.69 kB / 0.6627 GB, free: 8.531 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.291e-05/1.064, allocations: 32.28 kB / 0.6628 GB, free: 8.5 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004023/1.068, allocations: 5.351 MB / 0.668 GB, free: 2.48 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001445/1.07, allocations: 0.5191 MB / 0.6685 GB, free: 1.973 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008307/1.071, allocations: 54.67 kB / 0.6685 GB, free: 1.922 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00193/1.073, allocations: 87.73 kB / 0.6686 GB, free: 1.859 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001763/1.073, allocations: 155.8 kB / 0.6688 GB, free: 1.738 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001143/1.073, allocations: 75.09 kB / 0.6688 GB, free: 1.668 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004912/1.078, allocations: 2.38 MB / 0.6712 GB, free: 15.54 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.01e-07/1.078, allocations: 0 / 0.6712 GB, free: 15.54 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00593/1.084, allocations: 0.8788 MB / 0.672 GB, free: 14.66 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.008012/1.092, allocations: 10.57 MB / 0.6824 GB, free: 3.746 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.006093/1.098, allocations: 3.511 MB / 0.6858 GB, free: 0.5273 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.657e-05/1.098, allocations: 4 kB / 0.6858 GB, free: 0.5234 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.1915/1.29, allocations: 0.7329 MB / 0.6865 GB, free: 96.36 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003067/1.293, allocations: 422.6 kB / 0.6869 GB, free: 96.34 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0225/1.315, allocations: 8.33 MB / 0.695 GB, free: 94.22 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006021/1.321, allocations: 3.189 MB / 0.6982 GB, free: 93.43 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.005239/1.327, allocations: 1.778 MB / 0.6999 GB, free: 93.39 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002504/1.329, allocations: 1.813 MB / 0.7017 GB, free: 93.39 MB / 426.7 MB Notification: Performance of SimCode: time 2.024e-06/1.329, allocations: 4.938 kB / 0.7017 GB, free: 93.38 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08704/1.416, allocations: 65.72 MB / 0.7658 GB, free: 68.63 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001355/1.416, allocations: 177.3 kB / 0.766 GB, free: 68.4 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.853/5.269, allocations: 0 / 0.766 GB, free: 68.4 MB / 426.7 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) 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