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.0015/0.0015, allocations: 186 kB / 16.4 MB, free: 5.746 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.926/1.926, allocations: 205.4 MB / 222.5 MB, free: 9.129 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.001151/0.001151, allocations: 94.03 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000392/0.0003921, allocations: 16 kB / 327.1 MB, free: 104 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3242/0.3246, allocations: 47.56 MB / 374.6 MB, free: 45.46 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1507/0.4754, allocations: 91.97 MB / 466.6 MB, free: 4.766 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003449/0.4758, allocations: 87.95 kB / 466.7 MB, free: 4.68 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5121/0.9879, allocations: 58.14 MB / 0.5125 GB, free: 94.06 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.886e-06/0.988, allocations: 0 / 0.5125 GB, free: 94.06 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000137/0.9881, allocations: 60.97 kB / 0.5126 GB, free: 94.04 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: 968 * Number of variables: 968 Notification: Performance of Generate backend data structure: time 0.01778/1.006, allocations: 3.072 MB / 0.5156 GB, free: 92.72 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.851e-05/1.006, allocations: 9.969 kB / 0.5156 GB, free: 92.72 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002188/1.008, allocations: 0.5081 MB / 0.5161 GB, free: 92.66 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01631/1.025, allocations: 2.052 MB / 0.5181 GB, free: 92.4 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01443/1.039, allocations: 3.645 MB / 0.5217 GB, free: 91.16 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002434/1.039, allocations: 194.3 kB / 0.5218 GB, free: 91.14 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00148/1.041, allocations: 253 kB / 0.5221 GB, free: 91.14 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01835/1.059, allocations: 7.031 MB / 0.5289 GB, free: 84.84 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000164/1.059, allocations: 43.53 kB / 0.529 GB, free: 84.8 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008389/1.06, allocations: 130.3 kB / 0.5291 GB, free: 84.7 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001515/1.062, allocations: 0.7189 MB / 0.5298 GB, free: 83.97 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01752/1.079, allocations: 6.093 MB / 0.5358 GB, free: 77.89 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04375/1.123, allocations: 32.72 MB / 0.5677 GB, free: 44.22 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01144/1.135, allocations: 2.667 MB / 0.5703 GB, free: 41.41 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008512/1.143, allocations: 3.908 MB / 0.5741 GB, free: 37.27 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.531e-05/1.143, allocations: 47.06 kB / 0.5742 GB, free: 37.21 MB / 378.7 MB Notification: Performance of pre-optimization done (n=112): time 6.202e-06/1.143, allocations: 3.984 kB / 0.5742 GB, free: 37.21 MB / 378.7 MB Notification: Performance of matching and sorting (n=125): time 0.04616/1.189, allocations: 10.57 MB / 0.5845 GB, free: 26.43 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00137/1.191, allocations: 1.596 MB / 0.5861 GB, free: 24.66 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005694/1.197, allocations: 2.476 MB / 0.5885 GB, free: 22.16 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000372/1.197, allocations: 45.38 kB / 0.5885 GB, free: 22.12 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001694/1.199, allocations: 2.069 MB / 0.5905 GB, free: 20.05 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008055/1.2, allocations: 0.5076 MB / 0.591 GB, free: 19.55 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005836/1.2, allocations: 88 kB / 0.5911 GB, free: 19.46 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002948/1.201, allocations: 0.4969 MB / 0.5916 GB, free: 18.95 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00437/1.205, allocations: 1.625 MB / 0.5932 GB, free: 17.32 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006163/1.211, allocations: 4.403 MB / 0.5975 GB, free: 11.52 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006171/1.217, allocations: 2.626 MB / 0.6001 GB, free: 8.887 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.079e-05/1.217, allocations: 28 kB / 0.6001 GB, free: 8.859 MB / 378.7 MB Notification: Performance of matching and sorting (n=589) (initialization): time 0.02291/1.24, allocations: 6.97 MB / 0.6069 GB, free: 1.879 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.303e-05/1.241, allocations: 52.42 kB / 0.6069 GB, free: 1.828 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01092/1.251, allocations: 2.529 MB / 0.6094 GB, free: 15.29 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009948/1.261, allocations: 1.501 MB / 0.6109 GB, free: 13.78 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006361/1.268, allocations: 1.018 MB / 0.6119 GB, free: 12.76 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01809/1.286, allocations: 7.434 MB / 0.6191 GB, free: 5.059 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005998/1.292, allocations: 367.5 kB / 0.6195 GB, free: 4.699 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00122/1.293, allocations: 280 kB / 0.6198 GB, free: 4.426 MB / 394.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 () * Number of clocked 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.004321/1.298, allocations: 1.419 MB / 0.6211 GB, free: 2.996 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007224/1.298, allocations: 240.8 kB / 0.6214 GB, free: 2.758 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01275/1.311, allocations: 2.839 MB / 0.6241 GB, free: 15.89 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01137/1.323, allocations: 2.505 MB / 0.6266 GB, free: 13.37 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.443e-05/1.323, allocations: 8 kB / 0.6266 GB, free: 13.36 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.576e-05/1.323, allocations: 3.984 kB / 0.6266 GB, free: 13.36 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02506/1.348, allocations: 6.878 MB / 0.6333 GB, free: 6.414 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.351e-05/1.348, allocations: 0 / 0.6333 GB, free: 6.414 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001785/1.35, allocations: 179.7 kB / 0.6335 GB, free: 6.238 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009459/1.359, allocations: 1.43 MB / 0.6349 GB, free: 4.797 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003688/1.36, allocations: 27.98 kB / 0.6349 GB, free: 4.77 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01886/1.378, allocations: 7.557 MB / 0.6423 GB, free: 12.95 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00164/1.38, allocations: 1.458 MB / 0.6437 GB, free: 11.35 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01745/1.398, allocations: 4.947 MB / 0.6485 GB, free: 6.32 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001009/1.399, allocations: 310 kB / 0.6488 GB, free: 5.996 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008308/1.4, allocations: 23.94 kB / 0.6489 GB, free: 5.973 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002632/1.402, allocations: 131.8 kB / 0.649 GB, free: 5.844 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005592/1.403, allocations: 83.34 kB / 0.6491 GB, free: 5.766 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001776/1.403, allocations: 39.98 kB / 0.6491 GB, free: 5.727 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005103/1.408, allocations: 1.717 MB / 0.6508 GB, free: 4 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.22e-07/1.408, allocations: 0 / 0.6508 GB, free: 4 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005521/1.414, allocations: 0.7813 MB / 0.6515 GB, free: 3.219 MB / 426.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 () * Number of clocked 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.294/1.708, allocations: 5.952 MB / 0.6574 GB, free: 124.7 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01241/1.72, allocations: 4.319 MB / 0.6616 GB, free: 124.3 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.364e-06/1.72, allocations: 0 / 0.6616 GB, free: 124.3 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005955/1.726, allocations: 1.724 MB / 0.6633 GB, free: 123.9 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002327/1.729, allocations: 247.3 kB / 0.6635 GB, free: 123.9 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07549/1.804, allocations: 91.73 MB / 0.7531 GB, free: 43.65 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004113/1.808, allocations: 2.35 MB / 0.7554 GB, free: 42.61 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002632/1.811, allocations: 1.16 MB / 0.7565 GB, free: 41.71 MB / 426.7 MB Notification: Performance of SimCode: time 1.453e-06/1.811, allocations: 0 / 0.7565 GB, free: 41.71 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.342/6.154, allocations: 87.63 MB / 0.8421 GB, free: 142.1 MB / 442.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