Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.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.SpringWithMass,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",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.001428/0.001428, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.955/1.955, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001112/0.001112, allocations: 94.47 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.998e-05/2.997e-05, allocations: 4 kB / 314.9 MB, free: 9.051 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3466/0.3466, allocations: 47.55 MB / 362.4 MB, free: 45.85 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.188/0.5347, allocations: 91.21 MB / 453.6 MB, free: 11.08 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003149/0.5351, allocations: 88.8 kB / 453.7 MB, free: 10.99 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.2573/0.7924, allocations: 57.17 MB / 0.4989 GB, free: 1.484 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.705e-06/0.7925, allocations: 0 / 0.4989 GB, free: 1.484 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.000155/0.7926, allocations: 48 kB / 0.499 GB, free: 1.438 MB / 395.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 968 * Number of variables: 968 Notification: Performance of Generate backend data structure: time 0.2851/1.078, allocations: 2.944 MB / 0.5018 GB, free: 98.43 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.682e-05/1.078, allocations: 10.72 kB / 0.5019 GB, free: 98.43 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01767/1.095, allocations: 2.058 MB / 0.5039 GB, free: 98.25 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01634/1.112, allocations: 3.628 MB / 0.5074 GB, free: 98.01 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002194/1.112, allocations: 79.19 kB / 0.5075 GB, free: 98.01 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001488/1.114, allocations: 156.9 kB / 0.5076 GB, free: 98 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01085/1.125, allocations: 4.076 MB / 0.5116 GB, free: 97.99 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01541/1.14, allocations: 6.269 MB / 0.5177 GB, free: 96.05 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000153/1.14, allocations: 42.84 kB / 0.5178 GB, free: 96.05 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007997/1.141, allocations: 24.41 kB / 0.5178 GB, free: 96.05 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00156/1.143, allocations: 0.7162 MB / 0.5185 GB, free: 96.05 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04249/1.185, allocations: 31.41 MB / 0.5492 GB, free: 73.18 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003443/1.189, allocations: 2.01 MB / 0.5511 GB, free: 71.97 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002014/1.191, allocations: 0.9809 MB / 0.5521 GB, free: 71.56 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001579/1.192, allocations: 0.9781 MB / 0.553 GB, free: 70.68 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.248e-05/1.192, allocations: 50.12 kB / 0.5531 GB, free: 70.63 MB / 395.1 MB Notification: Performance of pre-optimization done (n=118): time 4.739e-06/1.192, allocations: 0 / 0.5531 GB, free: 70.63 MB / 395.1 MB Notification: Performance of matching and sorting (n=131): time 0.03014/1.223, allocations: 8.306 MB / 0.5612 GB, free: 67.29 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.287e-05/1.223, allocations: 140.4 kB / 0.5613 GB, free: 67.13 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004058/1.227, allocations: 2.151 MB / 0.5634 GB, free: 66.23 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003328/1.227, allocations: 25.7 kB / 0.5635 GB, free: 66.2 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00156/1.229, allocations: 2.14 MB / 0.5655 GB, free: 64.47 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008264/1.23, allocations: 0.5115 MB / 0.566 GB, free: 64.1 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004753/1.23, allocations: 6.688 kB / 0.5661 GB, free: 64.1 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0003003/1.23, allocations: 0.5073 MB / 0.5666 GB, free: 63.7 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003578/1.234, allocations: 1.538 MB / 0.5681 GB, free: 63.18 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005396/1.239, allocations: 4.412 MB / 0.5724 GB, free: 58.62 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005382/1.245, allocations: 2.588 MB / 0.5749 GB, free: 56.96 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.582e-05/1.245, allocations: 32 kB / 0.5749 GB, free: 56.93 MB / 395.1 MB Notification: Performance of matching and sorting (n=616) (initialization): time 0.02099/1.266, allocations: 6.433 MB / 0.5812 GB, free: 51.61 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.086e-05/1.266, allocations: 48 kB / 0.5812 GB, free: 51.57 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.009923/1.276, allocations: 2.479 MB / 0.5837 GB, free: 49.73 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00895/1.285, allocations: 1.472 MB / 0.5851 GB, free: 48.74 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006237/1.291, allocations: 1.065 MB / 0.5861 GB, free: 47.81 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0139/1.305, allocations: 6.894 MB / 0.5929 GB, free: 41.37 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005829/1.311, allocations: 283.4 kB / 0.5931 GB, free: 41.09 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001104/1.312, allocations: 293.4 kB / 0.5934 GB, free: 40.81 MB / 395.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 471 * Number of states: 0 () * Number of discrete variables: 21 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],spring.color[3],spring.color[2],spring.color[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (568): * Single equations (assignments): 560 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001041/1.313, allocations: 370.3 kB / 0.5938 GB, free: 40.44 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01133/1.325, allocations: 3.144 MB / 0.5969 GB, free: 37.28 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008081/1.326, allocations: 218.6 kB / 0.5971 GB, free: 37.07 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01089/1.337, allocations: 2.743 MB / 0.5997 GB, free: 34.3 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009996/1.347, allocations: 2.446 MB / 0.6021 GB, free: 31.84 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.678e-05/1.347, allocations: 12 kB / 0.6021 GB, free: 31.83 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-05/1.347, allocations: 7.969 kB / 0.6021 GB, free: 31.82 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02169/1.368, allocations: 6.769 MB / 0.6088 GB, free: 25 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.128e-05/1.368, allocations: 4 kB / 0.6088 GB, free: 24.99 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001774/1.37, allocations: 183.7 kB / 0.6089 GB, free: 24.81 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008537/1.379, allocations: 1.395 MB / 0.6103 GB, free: 23.41 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003476/1.379, allocations: 19.97 kB / 0.6103 GB, free: 23.39 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01426/1.394, allocations: 7.066 MB / 0.6172 GB, free: 16.1 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001085/1.395, allocations: 1.391 MB / 0.6186 GB, free: 14.59 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01413/1.409, allocations: 4.939 MB / 0.6234 GB, free: 9.57 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009039/1.41, allocations: 286.1 kB / 0.6237 GB, free: 9.27 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007953/1.411, allocations: 8 kB / 0.6237 GB, free: 9.262 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002614/1.413, allocations: 113.4 kB / 0.6238 GB, free: 9.152 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004818/1.414, allocations: 80.38 kB / 0.6239 GB, free: 9.074 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001579/1.414, allocations: 41.31 kB / 0.6239 GB, free: 9.035 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.003142/1.417, allocations: 1.412 MB / 0.6253 GB, free: 7.609 MB / 395.1 MB Notification: Performance of sort global known variables: time 7.62e-07/1.417, allocations: 0 / 0.6253 GB, free: 7.609 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.005744/1.423, allocations: 0.6918 MB / 0.626 GB, free: 6.922 MB / 395.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 ($STATESET7091200392.x[3],$STATESET7091200392.x[2],$STATESET7091200392.x[1],body.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (89): * Single equations (assignments): 83 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0144/1.437, allocations: 5.943 MB / 0.6318 GB, free: 0.9102 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.01142/1.449, allocations: 4.133 MB / 0.6358 GB, free: 12.75 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 8.306e-06/1.449, allocations: 224 / 0.6358 GB, free: 12.75 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005837/1.455, allocations: 1.703 MB / 0.6375 GB, free: 11.01 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002132/1.457, allocations: 201.8 kB / 0.6377 GB, free: 10.82 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0221/1.479, allocations: 6.615 MB / 0.6441 GB, free: 4.18 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004746/1.484, allocations: 2.348 MB / 0.6464 GB, free: 1.812 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003088/1.487, allocations: 1.155 MB / 0.6475 GB, free: 0.6562 MB / 411.1 MB Notification: Performance of SimCode: time 1.924e-06/1.487, allocations: 0 / 0.6475 GB, free: 0.6562 MB / 411.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.538/6.025, allocations: 86.46 MB / 0.732 GB, free: 83.24 MB / 427.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat does not exist to compare? outputFormat=mat