Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001328/0.001328, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.402/1.402, allocations: 221.5 MB / 230.3 MB, free: 7.57 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009511/0.000951, allocations: 90.05 kB / 281.2 MB, free: 5.324 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.198e-05/2.201e-05, allocations: 4 kB / 337.1 MB, free: 9.922 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.1115, allocations: 50.42 MB / 387.6 MB, free: 7.469 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4077/0.5193, allocations: 95.78 MB / 483.3 MB, free: 14.89 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003112/0.5197, allocations: 83.95 kB / 483.4 MB, free: 14.8 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4753/0.9949, allocations: 84.27 MB / 0.5544 GB, free: 97.02 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.395e-06/0.995, allocations: 0 / 0.5544 GB, free: 97.02 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002362/0.9952, allocations: 80.47 kB / 0.5545 GB, free: 97.02 MB / 426.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.01259/1.008, allocations: 3.829 MB / 0.5582 GB, free: 95.45 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.853e-05/1.008, allocations: 13.52 kB / 0.5582 GB, free: 95.45 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01351/1.021, allocations: 2.44 MB / 0.5606 GB, free: 95.17 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.013/1.034, allocations: 4.762 MB / 0.5652 GB, free: 94.62 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002911/1.035, allocations: 142.5 kB / 0.5654 GB, free: 94.62 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001858/1.037, allocations: 240.2 kB / 0.5656 GB, free: 94.61 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01084/1.048, allocations: 5.824 MB / 0.5713 GB, free: 94.59 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01465/1.062, allocations: 8.995 MB / 0.5801 GB, free: 91.77 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001535/1.062, allocations: 64.31 kB / 0.5801 GB, free: 91.77 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000494/1.063, allocations: 29.69 kB / 0.5802 GB, free: 91.77 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001248/1.064, allocations: 0.9986 MB / 0.5811 GB, free: 91.76 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03678/1.101, allocations: 44.87 MB / 0.625 GB, free: 58.22 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002522/1.104, allocations: 1.87 MB / 0.6268 GB, free: 57.09 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009029/1.104, allocations: 0.7551 MB / 0.6275 GB, free: 56.81 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006724/1.105, allocations: 0.7774 MB / 0.6283 GB, free: 56.11 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.655e-05/1.105, allocations: 46.31 kB / 0.6283 GB, free: 56.07 MB / 426.7 MB Notification: Performance of pre-optimization done (n=137): time 3.777e-06/1.105, allocations: 0 / 0.6283 GB, free: 56.07 MB / 426.7 MB Notification: Performance of matching and sorting (n=149): time 0.01316/1.118, allocations: 6.944 MB / 0.6351 GB, free: 52.41 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.07e-05/1.118, allocations: 150.5 kB / 0.6353 GB, free: 52.25 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003405/1.122, allocations: 2.977 MB / 0.6382 GB, free: 51.08 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001012/1.122, allocations: 28.73 kB / 0.6382 GB, free: 51.05 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001193/1.123, allocations: 3.146 MB / 0.6413 GB, free: 48.57 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003458/1.124, allocations: 0.5838 MB / 0.6418 GB, free: 48.15 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001496/1.124, allocations: 0 / 0.6418 GB, free: 48.15 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002309/1.124, allocations: 0.5579 MB / 0.6424 GB, free: 47.74 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001642/1.126, allocations: 1.411 MB / 0.6438 GB, free: 47.26 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003962/1.13, allocations: 5.26 MB / 0.6489 GB, free: 41.36 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003503/1.133, allocations: 2.719 MB / 0.6516 GB, free: 40.34 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.504e-05/1.133, allocations: 41.41 kB / 0.6516 GB, free: 40.34 MB / 426.7 MB Notification: Performance of matching and sorting (n=784) (initialization): time 0.009124/1.142, allocations: 5.765 MB / 0.6572 GB, free: 35.28 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.552e-05/1.142, allocations: 64.97 kB / 0.6573 GB, free: 35.21 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001041/1.143, allocations: 140 kB / 0.6574 GB, free: 35.08 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001638/1.143, allocations: 208 kB / 0.6576 GB, free: 34.88 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004004/1.147, allocations: 1.438 MB / 0.659 GB, free: 33.61 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001441/1.147, allocations: 274.6 kB / 0.6593 GB, free: 33.37 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004327/1.151, allocations: 263.8 kB / 0.6595 GB, free: 33.16 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006487/1.152, allocations: 376.2 kB / 0.6599 GB, free: 32.79 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 636 * 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 (760): * Single equations (assignments): 757 * 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.0006165/1.153, allocations: 444.4 kB / 0.6603 GB, free: 32.35 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001842/1.154, allocations: 1.503 MB / 0.6618 GB, free: 30.99 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003148/1.155, allocations: 312 kB / 0.6621 GB, free: 30.68 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001393/1.156, allocations: 1.037 MB / 0.6631 GB, free: 29.8 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.457e-05/1.156, allocations: 16 kB / 0.6631 GB, free: 29.79 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.04e-05/1.156, allocations: 4 kB / 0.6631 GB, free: 29.78 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.306e-05/1.156, allocations: 6.75 kB / 0.6631 GB, free: 29.78 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006328/1.163, allocations: 4.851 MB / 0.6679 GB, free: 25.46 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.847e-05/1.163, allocations: 18.91 kB / 0.6679 GB, free: 25.45 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009141/1.163, allocations: 269.1 kB / 0.6681 GB, free: 25.21 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.19e-05/1.164, allocations: 24 kB / 0.6682 GB, free: 25.19 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.098e-05/1.164, allocations: 27.94 kB / 0.6682 GB, free: 25.17 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.696e-05/1.164, allocations: 31.55 kB / 0.6682 GB, free: 25.14 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.326e-05/1.164, allocations: 27.88 kB / 0.6682 GB, free: 25.11 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002971/1.167, allocations: 4.816 MB / 0.6729 GB, free: 19.89 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006194/1.167, allocations: 379.5 kB / 0.6733 GB, free: 19.5 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002828/1.168, allocations: 27.05 kB / 0.6733 GB, free: 19.48 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001107/1.169, allocations: 62.36 kB / 0.6734 GB, free: 19.44 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000136/1.169, allocations: 140.4 kB / 0.6735 GB, free: 19.34 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.253e-05/1.169, allocations: 68 kB / 0.6736 GB, free: 19.27 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002782/1.172, allocations: 1.965 MB / 0.6755 GB, free: 17.57 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.9e-07/1.172, allocations: 0 / 0.6755 GB, free: 17.57 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004935/1.177, allocations: 0.7462 MB / 0.6762 GB, free: 16.83 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 75 * 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 (141): * Single equations (assignments): 138 * 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.004161/1.181, allocations: 9.653 MB / 0.6857 GB, free: 6.898 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005165/1.186, allocations: 3.273 MB / 0.6889 GB, free: 3.926 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.574e-05/1.186, allocations: 0 / 0.6889 GB, free: 3.926 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007791/1.187, allocations: 0.6744 MB / 0.6895 GB, free: 3.312 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002275/1.189, allocations: 343.9 kB / 0.6898 GB, free: 3.02 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01721/1.206, allocations: 8.002 MB / 0.6977 GB, free: 11.82 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003373/1.21, allocations: 3.174 MB / 0.7008 GB, free: 9.41 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.004521/1.214, allocations: 1.836 MB / 0.7026 GB, free: 8.281 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002615/1.217, allocations: 1.777 MB / 0.7043 GB, free: 6.633 MB / 442.7 MB Notification: Performance of SimCode: time 1.122e-06/1.217, allocations: 4 kB / 0.7043 GB, free: 6.629 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.346/1.563, allocations: 60.33 MB / 0.7632 GB, free: 89.72 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001586/1.563, allocations: 156.8 kB / 0.7634 GB, free: 89.53 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.215/5.778, allocations: 0 / 0.7634 GB, free: 89.53 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat does not exist to compare? outputFormat=mat