Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.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.SpringDamperSystem,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem",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.001544/0.001543, allocations: 188.4 kB / 16.41 MB, free: 5.723 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.945/1.945, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001099/0.001099, allocations: 91.55 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003946/0.0003946, allocations: 8 kB / 327.1 MB, free: 92 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3365/0.3369, allocations: 47.57 MB / 374.6 MB, free: 45.31 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1572/0.4942, allocations: 97.28 MB / 471.9 MB, free: 15.33 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000351/0.4946, allocations: 95.95 kB / 472 MB, free: 15.23 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6346/1.129, allocations: 93.91 MB / 0.5527 GB, free: 62.71 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.685e-06/1.129, allocations: 0 / 0.5527 GB, free: 62.71 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002363/1.13, allocations: 88 kB / 0.5527 GB, free: 62.62 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: 1686 * Number of variables: 1686 Notification: Performance of Generate backend data structure: time 0.02464/1.154, allocations: 4.971 MB / 0.5576 GB, free: 57.58 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.762e-05/1.154, allocations: 8.031 kB / 0.5576 GB, free: 57.57 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003714/1.158, allocations: 0.8566 MB / 0.5584 GB, free: 56.71 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02127/1.179, allocations: 2.692 MB / 0.5611 GB, free: 54 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01991/1.199, allocations: 5.638 MB / 0.5666 GB, free: 48.3 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004785/1.2, allocations: 361.5 kB / 0.5669 GB, free: 47.95 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002558/1.202, allocations: 483.7 kB / 0.5674 GB, free: 47.47 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0393/1.242, allocations: 12.67 MB / 0.5797 GB, free: 33.64 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002841/1.242, allocations: 67.34 kB / 0.5798 GB, free: 33.58 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001817/1.244, allocations: 231.9 kB / 0.58 GB, free: 33.35 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002863/1.247, allocations: 1.206 MB / 0.5812 GB, free: 32.14 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03562/1.283, allocations: 10.4 MB / 0.5914 GB, free: 21.72 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.374/1.657, allocations: 52.92 MB / 0.643 GB, free: 86.65 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01881/1.675, allocations: 4.537 MB / 0.6475 GB, free: 85.7 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01964/1.695, allocations: 8.297 MB / 0.6556 GB, free: 83.19 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.461e-05/1.695, allocations: 55.22 kB / 0.6556 GB, free: 83.15 MB / 410.7 MB Notification: Performance of pre-optimization done (n=183): time 5.3e-06/1.695, allocations: 0 / 0.6556 GB, free: 83.15 MB / 410.7 MB Notification: Performance of matching and sorting (n=205): time 0.07092/1.766, allocations: 16.18 MB / 0.6714 GB, free: 79.64 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00138/1.768, allocations: 1.603 MB / 0.673 GB, free: 78.12 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009722/1.777, allocations: 3.795 MB / 0.6767 GB, free: 77.72 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005065/1.778, allocations: 57.97 kB / 0.6768 GB, free: 77.69 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003047/1.781, allocations: 3.341 MB / 0.68 GB, free: 75.64 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001358/1.782, allocations: 0.8038 MB / 0.6808 GB, free: 75.18 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009868/1.783, allocations: 135.8 kB / 0.6809 GB, free: 75.18 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0005669/1.784, allocations: 0.5936 MB / 0.6815 GB, free: 74.86 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006536/1.791, allocations: 2.246 MB / 0.6837 GB, free: 74.54 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00926/1.8, allocations: 6.325 MB / 0.6899 GB, free: 68.37 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008891/1.809, allocations: 3.661 MB / 0.6935 GB, free: 67.22 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001439/1.809, allocations: 39.88 kB / 0.6935 GB, free: 67.22 MB / 410.7 MB Notification: Performance of matching and sorting (n=883) (initialization): time 0.02634/1.835, allocations: 8.978 MB / 0.7023 GB, free: 64.61 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001444/1.836, allocations: 72.83 kB / 0.7023 GB, free: 64.61 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.009181/1.845, allocations: 2.812 MB / 0.7051 GB, free: 63.8 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005869/1.851, allocations: 1.087 MB / 0.7062 GB, free: 63.65 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009846/1.861, allocations: 1.595 MB / 0.7077 GB, free: 63.46 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006433/1.867, allocations: 4.456 MB / 0.7121 GB, free: 60.07 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008532/1.876, allocations: 0.4903 MB / 0.7125 GB, free: 59.68 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001448/1.877, allocations: 412 kB / 0.7129 GB, free: 59.28 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 662 * Number of states: 0 () * Number of discrete variables: 45 (damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],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],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 (845): * Single equations (assignments): 836 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005676/1.883, allocations: 2.212 MB / 0.7151 GB, free: 57.34 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000969/1.884, allocations: 386 kB / 0.7155 GB, free: 56.96 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0104/1.894, allocations: 3.268 MB / 0.7187 GB, free: 54.35 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009022/1.903, allocations: 2.713 MB / 0.7213 GB, free: 52.16 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.408e-05/1.903, allocations: 10.61 kB / 0.7213 GB, free: 52.16 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.432e-05/1.903, allocations: 7.219 kB / 0.7213 GB, free: 52.16 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02896/1.932, allocations: 10.35 MB / 0.7314 GB, free: 43.68 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.539e-05/1.932, allocations: 12 kB / 0.7314 GB, free: 43.67 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002964/1.935, allocations: 369.1 kB / 0.7318 GB, free: 43.37 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00514/1.941, allocations: 0.9755 MB / 0.7327 GB, free: 42.73 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004869/1.941, allocations: 62.56 kB / 0.7328 GB, free: 42.67 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007028/1.948, allocations: 4.695 MB / 0.7374 GB, free: 38.3 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001074/1.949, allocations: 1.479 MB / 0.7388 GB, free: 36.74 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01412/1.963, allocations: 7.514 MB / 0.7462 GB, free: 29.23 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002354/1.966, allocations: 0.6712 MB / 0.7468 GB, free: 28.59 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009469/1.967, allocations: 56.77 kB / 0.7469 GB, free: 28.54 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003526/1.97, allocations: 176.3 kB / 0.747 GB, free: 28.43 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005517/1.971, allocations: 174.7 kB / 0.7472 GB, free: 28.31 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002149/1.971, allocations: 76.7 kB / 0.7473 GB, free: 28.24 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.006726/1.978, allocations: 2.638 MB / 0.7499 GB, free: 25.71 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.052e-06/1.978, allocations: 0 / 0.7499 GB, free: 25.71 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.007885/1.986, allocations: 1.151 MB / 0.751 GB, free: 24.57 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 61 * Number of states: 14 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3],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 (179): * Single equations (assignments): 172 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01609/2.002, allocations: 11.42 MB / 0.7621 GB, free: 12.72 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01529/2.017, allocations: 5.868 MB / 0.7679 GB, free: 6.816 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.515e-05/2.017, allocations: 4 kB / 0.7679 GB, free: 6.812 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006496/2.024, allocations: 2.181 MB / 0.77 GB, free: 4.562 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003943/2.028, allocations: 465.2 kB / 0.7704 GB, free: 4.121 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4133/2.441, allocations: 138.3 MB / 0.9054 GB, free: 27.83 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008866/2.45, allocations: 3.557 MB / 0.9089 GB, free: 27.03 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005235/2.455, allocations: 2.135 MB / 0.911 GB, free: 27.02 MB / 442.7 MB Notification: Performance of SimCode: time 1.473e-06/2.456, allocations: 0 / 0.911 GB, free: 27.02 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.113/7.568, allocations: 160.5 MB / 1.068 GB, free: 81.18 MB / 458.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat does not exist to compare? outputFormat=mat