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.001085/0.001085, allocations: 180.6 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.395/1.395, allocations: 223.2 MB / 240.3 MB, free: 10.16 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001113/0.001113, allocations: 93.17 kB / 291.5 MB, free: 10.7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002963/0.0002962, allocations: 8 kB / 351.2 MB, free: 15 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2326/0.2329, allocations: 50.4 MB / 401.6 MB, free: 32.54 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1177/0.3507, allocations: 96.52 MB / 498.1 MB, free: 15.88 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002842/0.351, allocations: 94.11 kB / 498.2 MB, free: 15.79 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4189/0.7699, allocations: 85.94 MB / 0.5704 GB, free: 42.21 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.267e-06/0.77, allocations: 0 / 0.5704 GB, free: 42.21 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001736/0.7701, allocations: 83.94 kB / 0.5705 GB, free: 42.12 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.01166/0.7818, allocations: 4.062 MB / 0.5745 GB, free: 37.99 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.617e-05/0.7819, allocations: 8.031 kB / 0.5745 GB, free: 37.98 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002331/0.7842, allocations: 0.7457 MB / 0.5752 GB, free: 37.23 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01053/0.7948, allocations: 2.428 MB / 0.5776 GB, free: 34.79 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01122/0.806, allocations: 4.804 MB / 0.5823 GB, free: 29.92 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002422/0.8063, allocations: 316.2 kB / 0.5826 GB, free: 29.61 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001464/0.8078, allocations: 411.9 kB / 0.583 GB, free: 29.2 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01634/0.8241, allocations: 10.07 MB / 0.5928 GB, free: 18.06 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001842/0.8244, allocations: 67.41 kB / 0.5929 GB, free: 17.99 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009609/0.8253, allocations: 199.9 kB / 0.5931 GB, free: 17.8 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001279/0.8266, allocations: 1.017 MB / 0.5941 GB, free: 16.77 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01401/0.8406, allocations: 7.886 MB / 0.6018 GB, free: 8.859 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04517/0.8858, allocations: 45.66 MB / 0.6464 GB, free: 9.672 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0066/0.8925, allocations: 2.854 MB / 0.6491 GB, free: 6.676 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006446/0.899, allocations: 3.818 MB / 0.6529 GB, free: 2.652 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.385e-05/0.8991, allocations: 47.22 kB / 0.6529 GB, free: 2.598 MB / 426.7 MB Notification: Performance of pre-optimization done (n=134): time 4.819e-06/0.8991, allocations: 4 kB / 0.6529 GB, free: 2.594 MB / 426.7 MB Notification: Performance of matching and sorting (n=152): time 0.02277/0.9219, allocations: 9.249 MB / 0.662 GB, free: 9.168 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.683e-05/0.922, allocations: 141.5 kB / 0.6621 GB, free: 9 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006383/0.9284, allocations: 3.516 MB / 0.6655 GB, free: 5.504 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003314/0.9288, allocations: 49.7 kB / 0.6656 GB, free: 5.449 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002488/0.9313, allocations: 3.101 MB / 0.6686 GB, free: 2.305 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007478/0.932, allocations: 0.6058 MB / 0.6692 GB, free: 1.691 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002806/0.9323, allocations: 116 kB / 0.6693 GB, free: 1.578 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003433/0.9327, allocations: 0.5537 MB / 0.6698 GB, free: 1.016 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2206/1.153, allocations: 1.585 MB / 0.6714 GB, free: 111.2 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005368/1.159, allocations: 5.32 MB / 0.6766 GB, free: 106.4 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004013/1.163, allocations: 2.846 MB / 0.6794 GB, free: 106.4 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.093e-05/1.163, allocations: 41.16 kB / 0.6794 GB, free: 106.4 MB / 442.7 MB Notification: Performance of matching and sorting (n=760) (initialization): time 0.01192/1.175, allocations: 6.649 MB / 0.6859 GB, free: 105.9 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001011/1.175, allocations: 66.56 kB / 0.686 GB, free: 105.9 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002191/1.175, allocations: 138 kB / 0.6861 GB, free: 105.9 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001975/1.175, allocations: 192.8 kB / 0.6863 GB, free: 105.9 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004279/1.18, allocations: 1.396 MB / 0.6876 GB, free: 105.8 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000269/1.18, allocations: 259.8 kB / 0.6879 GB, free: 105.7 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004519/1.185, allocations: 372.2 kB / 0.6882 GB, free: 105.7 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008733/1.185, allocations: 360.6 kB / 0.6886 GB, free: 105.7 MB / 442.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.003504/1.189, allocations: 1.979 MB / 0.6905 GB, free: 105.5 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005828/1.19, allocations: 335.8 kB / 0.6908 GB, free: 105.5 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002018/1.192, allocations: 1.243 MB / 0.6921 GB, free: 105.4 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.514e-05/1.192, allocations: 17.58 kB / 0.6921 GB, free: 105.4 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.967e-06/1.192, allocations: 0 / 0.6921 GB, free: 105.4 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.225e-05/1.192, allocations: 7.828 kB / 0.6921 GB, free: 105.4 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00916/1.201, allocations: 5.789 MB / 0.6977 GB, free: 104.1 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.268e-05/1.201, allocations: 19.34 kB / 0.6977 GB, free: 104.1 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009393/1.202, allocations: 282.5 kB / 0.698 GB, free: 104.1 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.996e-05/1.202, allocations: 27.31 kB / 0.698 GB, free: 104.1 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.966e-05/1.202, allocations: 49.88 kB / 0.6981 GB, free: 104.1 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.072e-05/1.202, allocations: 39.06 kB / 0.6981 GB, free: 104.1 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.54e-05/1.202, allocations: 37.73 kB / 0.6982 GB, free: 104.1 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003599/1.206, allocations: 5.373 MB / 0.7034 GB, free: 100.6 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009363/1.207, allocations: 419.3 kB / 0.7038 GB, free: 100.3 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003254/1.207, allocations: 52.41 kB / 0.7039 GB, free: 100.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002033/1.209, allocations: 93.64 kB / 0.7039 GB, free: 100.3 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002359/1.209, allocations: 152.1 kB / 0.7041 GB, free: 100.2 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001358/1.209, allocations: 70.47 kB / 0.7042 GB, free: 100.2 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.006552/1.216, allocations: 2.462 MB / 0.7066 GB, free: 99.55 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.81e-07/1.216, allocations: 0 / 0.7066 GB, free: 99.55 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01041/1.226, allocations: 0.8784 MB / 0.7074 GB, free: 99.45 MB / 442.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.008016/1.234, allocations: 10.61 MB / 0.7178 GB, free: 89.89 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006227/1.241, allocations: 3.636 MB / 0.7213 GB, free: 88.69 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.73e-05/1.241, allocations: 2.812 kB / 0.7213 GB, free: 88.69 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000961/1.242, allocations: 0.7311 MB / 0.722 GB, free: 88.45 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002524/1.244, allocations: 416.8 kB / 0.7224 GB, free: 88.28 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0803/1.325, allocations: 122.1 MB / 0.8417 GB, free: 1.059 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1984/1.523, allocations: 3.179 MB / 0.8448 GB, free: 142.4 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.004706/1.528, allocations: 1.772 MB / 0.8466 GB, free: 142.4 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002568/1.53, allocations: 1.807 MB / 0.8483 GB, free: 142.4 MB / 474.7 MB Notification: Performance of SimCode: time 1.543e-06/1.53, allocations: 0 / 0.8483 GB, free: 142.4 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08851/1.619, allocations: 65.27 MB / 0.9121 GB, free: 110.7 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002092/1.619, allocations: 197.1 kB / 0.9123 GB, free: 110.5 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.412/6.032, allocations: 0 / 0.9123 GB, free: 110.5 MB / 474.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