Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001215/0.001215, allocations: 180.8 kB / 17.01 MB, free: 5.125 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.252/1.252, allocations: 205.4 MB / 223.1 MB, free: 9.125 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.0008394/0.0008394, allocations: 88.86 kB / 271.5 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002327/0.0002327, allocations: 8 kB / 328.3 MB, free: 15.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1975/0.1978, allocations: 47.57 MB / 375.9 MB, free: 45.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1017/0.2995, allocations: 97.27 MB / 473.2 MB, free: 15.34 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002613/0.2998, allocations: 95.95 kB / 473.3 MB, free: 15.24 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3778/0.6776, allocations: 93.91 MB / 0.5539 GB, free: 62.8 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.334e-06/0.6776, allocations: 0 / 0.5539 GB, free: 62.8 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002238/0.6779, allocations: 95.98 kB / 0.554 GB, free: 62.7 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.01632/0.6942, allocations: 4.96 MB / 0.5588 GB, free: 57.67 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.918e-05/0.6943, allocations: 12.03 kB / 0.5588 GB, free: 57.66 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003302/0.6976, allocations: 0.8605 MB / 0.5597 GB, free: 56.79 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01189/0.7095, allocations: 2.692 MB / 0.5623 GB, free: 54.09 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01296/0.7225, allocations: 5.634 MB / 0.5678 GB, free: 48.39 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003664/0.7229, allocations: 365.4 kB / 0.5682 GB, free: 48.03 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002098/0.725, allocations: 479.8 kB / 0.5686 GB, free: 47.56 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02476/0.7498, allocations: 12.67 MB / 0.581 GB, free: 33.73 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002971/0.7501, allocations: 63.34 kB / 0.5811 GB, free: 33.67 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001883/0.752, allocations: 231.9 kB / 0.5813 GB, free: 33.44 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001756/0.7538, allocations: 1.202 MB / 0.5824 GB, free: 32.24 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01888/0.7727, allocations: 10.41 MB / 0.5926 GB, free: 21.81 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2245/0.9973, allocations: 52.91 MB / 0.6443 GB, free: 86.66 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009693/1.007, allocations: 4.55 MB / 0.6487 GB, free: 85.71 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01038/1.017, allocations: 8.291 MB / 0.6568 GB, free: 83.2 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.33e-05/1.018, allocations: 49.97 kB / 0.6569 GB, free: 83.16 MB / 410.7 MB Notification: Performance of pre-optimization done (n=183): time 5e-06/1.018, allocations: 3.625 kB / 0.6569 GB, free: 83.16 MB / 410.7 MB Notification: Performance of matching and sorting (n=205): time 0.03704/1.055, allocations: 16.19 MB / 0.6727 GB, free: 79.65 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0008873/1.055, allocations: 1.611 MB / 0.6743 GB, free: 78.13 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004999/1.061, allocations: 3.795 MB / 0.678 GB, free: 77.73 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003361/1.061, allocations: 59.81 kB / 0.678 GB, free: 77.7 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00153/1.062, allocations: 3.411 MB / 0.6813 GB, free: 75.71 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006744/1.063, allocations: 0.8071 MB / 0.6821 GB, free: 75.26 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002378/1.063, allocations: 134.7 kB / 0.6823 GB, free: 75.26 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002617/1.064, allocations: 0.59 MB / 0.6828 GB, free: 74.94 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002968/1.067, allocations: 2.247 MB / 0.685 GB, free: 74.57 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004448/1.071, allocations: 6.325 MB / 0.6912 GB, free: 68.41 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004467/1.076, allocations: 3.665 MB / 0.6948 GB, free: 67.26 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.798e-05/1.076, allocations: 40.84 kB / 0.6948 GB, free: 67.26 MB / 410.7 MB Notification: Performance of matching and sorting (n=883) (initialization): time 0.01504/1.091, allocations: 9.089 MB / 0.7037 GB, free: 64.59 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001627/1.091, allocations: 75.8 kB / 0.7038 GB, free: 64.59 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005041/1.096, allocations: 2.811 MB / 0.7065 GB, free: 63.77 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003285/1.099, allocations: 1.089 MB / 0.7076 GB, free: 63.62 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005078/1.104, allocations: 1.589 MB / 0.7091 GB, free: 63.43 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003663/1.108, allocations: 4.457 MB / 0.7135 GB, free: 60.07 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005536/1.114, allocations: 0.4912 MB / 0.714 GB, free: 59.67 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001322/1.115, allocations: 419.1 kB / 0.7144 GB, free: 59.27 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.004735/1.12, allocations: 2.209 MB / 0.7165 GB, free: 57.33 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009016/1.121, allocations: 383 kB / 0.7169 GB, free: 56.95 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00624/1.127, allocations: 3.26 MB / 0.7201 GB, free: 54.34 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004319/1.131, allocations: 2.718 MB / 0.7227 GB, free: 52.16 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.658e-05/1.131, allocations: 0 / 0.7227 GB, free: 52.16 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-05/1.131, allocations: 14.64 kB / 0.7227 GB, free: 52.15 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01979/1.151, allocations: 10.36 MB / 0.7329 GB, free: 43.67 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-05/1.151, allocations: 12.22 kB / 0.7329 GB, free: 43.66 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001445/1.153, allocations: 372.1 kB / 0.7332 GB, free: 43.36 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002579/1.155, allocations: 0.9797 MB / 0.7342 GB, free: 42.71 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002279/1.155, allocations: 61.31 kB / 0.7342 GB, free: 42.66 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003711/1.159, allocations: 4.687 MB / 0.7388 GB, free: 38.29 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006508/1.16, allocations: 1.481 MB / 0.7403 GB, free: 36.73 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007636/1.167, allocations: 7.503 MB / 0.7476 GB, free: 29.22 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001829/1.169, allocations: 0.6712 MB / 0.7482 GB, free: 28.59 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008235/1.17, allocations: 57.48 kB / 0.7483 GB, free: 28.54 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00209/1.172, allocations: 179.8 kB / 0.7485 GB, free: 28.42 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002776/1.173, allocations: 180.7 kB / 0.7486 GB, free: 28.3 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001409/1.173, allocations: 71.75 kB / 0.7487 GB, free: 28.23 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004562/1.177, allocations: 2.641 MB / 0.7513 GB, free: 25.66 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.91e-07/1.177, allocations: 0 / 0.7513 GB, free: 25.66 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005884/1.183, allocations: 1.146 MB / 0.7524 GB, free: 24.52 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.008588/1.192, allocations: 11.42 MB / 0.7636 GB, free: 12.67 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00852/1.2, allocations: 5.855 MB / 0.7693 GB, free: 6.781 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.303e-05/1.2, allocations: 4 kB / 0.7693 GB, free: 6.777 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003277/1.204, allocations: 2.182 MB / 0.7714 GB, free: 4.527 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002652/1.206, allocations: 464.7 kB / 0.7719 GB, free: 4.082 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2647/1.471, allocations: 137.8 MB / 0.9064 GB, free: 28.34 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005149/1.476, allocations: 3.558 MB / 0.9099 GB, free: 27.54 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.005056/1.481, allocations: 2.032 MB / 0.9118 GB, free: 27.49 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003595/1.485, allocations: 2.089 MB / 0.9139 GB, free: 27.48 MB / 442.7 MB Notification: Performance of SimCode: time 2.033e-06/1.485, allocations: 0 / 0.9139 GB, free: 27.48 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3265/1.811, allocations: 82.09 MB / 0.994 GB, free: 123.1 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002907/1.812, allocations: 234.2 kB / 0.9943 GB, free: 122.8 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.049/5.861, allocations: 0 / 0.9943 GB, free: 122.8 MB / 458.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat does not exist to compare? outputFormat=mat