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.001529/0.001529, allocations: 181.7 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.128/2.128, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.001169/0.001168, allocations: 94.64 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.232e-05/4.245e-05, allocations: 4 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09982/0.09991, allocations: 47.57 MB / 369.2 MB, free: 2.102 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4377/0.5377, allocations: 91.87 MB / 461.1 MB, free: 1.504 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003079/0.5381, allocations: 89.64 kB / 461.1 MB, free: 1.457 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2622/0.8003, allocations: 58.17 MB / 0.5071 GB, free: 8.543 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.225e-06/0.8003, allocations: 0 / 0.5071 GB, free: 8.543 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000154/0.8005, allocations: 44 kB / 0.5072 GB, free: 8.5 MB / 394.7 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.01924/0.8198, allocations: 2.959 MB / 0.5101 GB, free: 5.484 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.816e-05/0.8198, allocations: 12.03 kB / 0.5101 GB, free: 5.473 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002377/0.8222, allocations: 0.5026 MB / 0.5106 GB, free: 4.961 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01736/0.8396, allocations: 2.059 MB / 0.5126 GB, free: 2.895 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0163/0.856, allocations: 3.622 MB / 0.5161 GB, free: 15.21 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003469/0.8564, allocations: 196.9 kB / 0.5163 GB, free: 15.02 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001674/0.8581, allocations: 255.8 kB / 0.5166 GB, free: 14.77 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02177/0.8799, allocations: 6.945 MB / 0.5233 GB, free: 7.078 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001944/0.8802, allocations: 39.69 kB / 0.5234 GB, free: 7.039 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009834/0.8812, allocations: 131.9 kB / 0.5235 GB, free: 6.91 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001926/0.8831, allocations: 0.715 MB / 0.5242 GB, free: 6.195 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0196/0.9027, allocations: 5.947 MB / 0.53 GB, free: 248 kB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3278/1.231, allocations: 32.71 MB / 0.5619 GB, free: 79.93 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0118/1.242, allocations: 2.65 MB / 0.5645 GB, free: 79.27 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002501/1.245, allocations: 1.012 MB / 0.5655 GB, free: 79.23 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009945/1.255, allocations: 3.918 MB / 0.5693 GB, free: 77.36 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.045e-05/1.255, allocations: 42.22 kB / 0.5694 GB, free: 77.32 MB / 410.7 MB Notification: Performance of pre-optimization done (n=112): time 5.35e-06/1.255, allocations: 3.625 kB / 0.5694 GB, free: 77.32 MB / 410.7 MB Notification: Performance of matching and sorting (n=125): time 0.0389/1.294, allocations: 8.93 MB / 0.5781 GB, free: 74.47 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001368/1.295, allocations: 1.583 MB / 0.5797 GB, free: 72.89 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005381/1.301, allocations: 2.424 MB / 0.582 GB, free: 72.01 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003848/1.301, allocations: 45.86 kB / 0.5821 GB, free: 71.96 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001788/1.303, allocations: 2.069 MB / 0.5841 GB, free: 70.37 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009157/1.304, allocations: 0.5033 MB / 0.5846 GB, free: 70.02 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005711/1.305, allocations: 90.61 kB / 0.5847 GB, free: 69.95 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003168/1.305, allocations: 0.4965 MB / 0.5851 GB, free: 69.55 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004015/1.309, allocations: 1.573 MB / 0.5867 GB, free: 69.04 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005868/1.315, allocations: 4.331 MB / 0.5909 GB, free: 64.8 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005957/1.321, allocations: 2.611 MB / 0.5935 GB, free: 63.97 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001076/1.321, allocations: 27.84 kB / 0.5935 GB, free: 63.97 MB / 410.7 MB Notification: Performance of matching and sorting (n=589) (initialization): time 0.02221/1.343, allocations: 6.84 MB / 0.6002 GB, free: 61.88 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.897e-05/1.344, allocations: 48.44 kB / 0.6002 GB, free: 61.88 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01027/1.354, allocations: 2.516 MB / 0.6027 GB, free: 61.28 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009062/1.363, allocations: 1.496 MB / 0.6041 GB, free: 61.08 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006004/1.369, allocations: 1.015 MB / 0.6051 GB, free: 60.95 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01448/1.384, allocations: 7.24 MB / 0.6122 GB, free: 56.83 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005932/1.39, allocations: 360.4 kB / 0.6125 GB, free: 56.74 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001079/1.391, allocations: 286.1 kB / 0.6128 GB, free: 56.71 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 450 * 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 (541): * Single equations (assignments): 533 * 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.001103/1.392, allocations: 449.6 kB / 0.6132 GB, free: 56.34 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006546/1.392, allocations: 231.5 kB / 0.6135 GB, free: 56.21 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01117/1.404, allocations: 2.832 MB / 0.6162 GB, free: 54.8 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01008/1.414, allocations: 2.493 MB / 0.6187 GB, free: 52.96 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.372e-05/1.414, allocations: 8 kB / 0.6187 GB, free: 52.96 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.349e-05/1.414, allocations: 3.75 kB / 0.6187 GB, free: 52.96 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02215/1.436, allocations: 6.872 MB / 0.6254 GB, free: 47.62 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.383e-05/1.436, allocations: 0 / 0.6254 GB, free: 47.62 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001725/1.438, allocations: 180.3 kB / 0.6256 GB, free: 47.48 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00857/1.446, allocations: 1.426 MB / 0.6269 GB, free: 46.56 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003501/1.447, allocations: 32.34 kB / 0.627 GB, free: 46.54 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01477/1.462, allocations: 7.324 MB / 0.6341 GB, free: 39.29 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001077/1.463, allocations: 1.45 MB / 0.6355 GB, free: 37.71 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01439/1.477, allocations: 4.931 MB / 0.6404 GB, free: 32.7 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008785/1.478, allocations: 301.9 kB / 0.6407 GB, free: 32.39 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005412/1.479, allocations: 31.98 kB / 0.6407 GB, free: 32.36 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002418/1.481, allocations: 119.8 kB / 0.6408 GB, free: 32.24 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004235/1.482, allocations: 88.33 kB / 0.6409 GB, free: 32.15 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001571/1.482, allocations: 41.61 kB / 0.6409 GB, free: 32.11 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003633/1.485, allocations: 1.661 MB / 0.6425 GB, free: 30.44 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.202e-06/1.485, allocations: 0 / 0.6425 GB, free: 30.44 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00533/1.491, allocations: 0.7717 MB / 0.6433 GB, free: 29.67 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.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 (83): * Single equations (assignments): 77 * 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.0145/1.505, allocations: 5.932 MB / 0.6491 GB, free: 23.67 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01022/1.516, allocations: 4.242 MB / 0.6532 GB, free: 19.4 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.344e-06/1.516, allocations: 0 / 0.6532 GB, free: 19.4 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005059/1.521, allocations: 1.706 MB / 0.6549 GB, free: 17.64 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002114/1.523, allocations: 243.4 kB / 0.6551 GB, free: 17.41 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01947/1.542, allocations: 6.746 MB / 0.6617 GB, free: 10.64 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003542/1.546, allocations: 2.356 MB / 0.664 GB, free: 8.266 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002376/1.548, allocations: 1.151 MB / 0.6651 GB, free: 7.113 MB / 410.7 MB Notification: Performance of SimCode: time 1.072e-06/1.548, allocations: 0 / 0.6651 GB, free: 7.113 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.447/5.995, allocations: 87.6 MB / 0.7507 GB, free: 85.22 MB / 426.7 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