Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001264/0.001264, allocations: 175.2 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.459/1.459, allocations: 221.3 MB / 235.5 MB, free: 2.988 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001025/0.001025, allocations: 92.72 kB / 286.5 MB, free: 252 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.451e-05/4.46e-05, allocations: 4 kB / 343.9 MB, free: 4.234 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1192/0.1193, allocations: 50.41 MB / 394.3 MB, free: 1.781 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4008/0.5201, allocations: 96.45 MB / 490.8 MB, free: 7.031 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003102/0.5205, allocations: 87.94 kB / 490.9 MB, free: 6.945 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5378/1.058, allocations: 85.97 MB / 0.5633 GB, free: 97.71 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.454e-06/1.058, allocations: 0 / 0.5633 GB, free: 97.71 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004599/1.059, allocations: 78.7 kB / 0.5634 GB, free: 97.71 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1469 * Number of variables: 1469 Notification: Performance of Generate backend data structure: time 0.01686/1.076, allocations: 3.838 MB / 0.5672 GB, free: 96.01 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.96e-05/1.076, allocations: 8.812 kB / 0.5672 GB, free: 96.01 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003916/1.08, allocations: 0.7438 MB / 0.5679 GB, free: 95.94 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01303/1.093, allocations: 2.44 MB / 0.5703 GB, free: 95.66 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01567/1.109, allocations: 4.774 MB / 0.5749 GB, free: 95.1 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006403/1.109, allocations: 315.5 kB / 0.5752 GB, free: 95.09 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002602/1.112, allocations: 412.6 kB / 0.5756 GB, free: 95.08 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02743/1.139, allocations: 9.938 MB / 0.5853 GB, free: 92.17 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000485/1.14, allocations: 69.72 kB / 0.5854 GB, free: 92.16 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00228/1.142, allocations: 202.2 kB / 0.5856 GB, free: 92.16 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001767/1.144, allocations: 1.001 MB / 0.5866 GB, free: 92.14 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.017/1.161, allocations: 7.643 MB / 0.594 GB, free: 90.01 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05206/1.213, allocations: 45.67 MB / 0.6386 GB, free: 54.25 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006634/1.22, allocations: 2.829 MB / 0.6414 GB, free: 52.98 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001359/1.221, allocations: 0.846 MB / 0.6422 GB, free: 52.66 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007465/1.229, allocations: 3.801 MB / 0.6459 GB, free: 49.22 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.518e-05/1.229, allocations: 47.28 kB / 0.646 GB, free: 49.17 MB / 426.7 MB Notification: Performance of pre-optimization done (n=134): time 5.34e-06/1.229, allocations: 0 / 0.646 GB, free: 49.17 MB / 426.7 MB Notification: Performance of matching and sorting (n=152): time 0.02498/1.254, allocations: 8.337 MB / 0.6541 GB, free: 41.72 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.557e-05/1.254, allocations: 153.2 kB / 0.6543 GB, free: 41.54 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00708/1.261, allocations: 3.423 MB / 0.6576 GB, free: 38.53 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003005/1.261, allocations: 49.61 kB / 0.6577 GB, free: 38.48 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002071/1.263, allocations: 3.09 MB / 0.6607 GB, free: 35.7 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007356/1.264, allocations: 0.6072 MB / 0.6613 GB, free: 35.17 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005724/1.265, allocations: 112 kB / 0.6614 GB, free: 35.06 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.00056/1.265, allocations: 0.5492 MB / 0.6619 GB, free: 34.57 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002459/1.268, allocations: 1.479 MB / 0.6634 GB, free: 33.23 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003775/1.272, allocations: 5.225 MB / 0.6685 GB, free: 26.36 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003559/1.275, allocations: 2.782 MB / 0.6712 GB, free: 23.98 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.87e-05/1.275, allocations: 43.95 kB / 0.6712 GB, free: 23.93 MB / 426.7 MB Notification: Performance of matching and sorting (n=760) (initialization): time 0.01034/1.286, allocations: 6.45 MB / 0.6775 GB, free: 17.61 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001444/1.286, allocations: 60 kB / 0.6776 GB, free: 17.55 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002296/1.286, allocations: 136 kB / 0.6777 GB, free: 17.41 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002467/1.286, allocations: 196 kB / 0.6779 GB, free: 17.22 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004639/1.291, allocations: 1.396 MB / 0.6792 GB, free: 15.82 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002828/1.291, allocations: 266.9 kB / 0.6795 GB, free: 15.56 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005702/1.297, allocations: 375.4 kB / 0.6799 GB, free: 15.2 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009625/1.298, allocations: 364 kB / 0.6802 GB, free: 14.84 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 610 * Number of states: 0 () * Number of discrete variables: 36 (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],p1.boxColor[3],p1.boxColor[2],p1.boxColor[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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (736): * Single equations (assignments): 733 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001277/1.299, allocations: 0.5623 MB / 0.6808 GB, free: 14.28 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008887/1.3, allocations: 343.5 kB / 0.6811 GB, free: 13.94 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002868/1.303, allocations: 1.209 MB / 0.6823 GB, free: 12.71 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.273e-05/1.303, allocations: 16 kB / 0.6823 GB, free: 12.7 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.43e-05/1.303, allocations: 4 kB / 0.6823 GB, free: 12.7 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.116e-05/1.303, allocations: 15.91 kB / 0.6823 GB, free: 12.68 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01378/1.317, allocations: 5.762 MB / 0.6879 GB, free: 6.613 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.99e-05/1.317, allocations: 20 kB / 0.6879 GB, free: 6.594 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001106/1.318, allocations: 279.5 kB / 0.6882 GB, free: 6.32 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.404e-05/1.318, allocations: 28 kB / 0.6882 GB, free: 6.293 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001672/1.318, allocations: 52 kB / 0.6883 GB, free: 6.242 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.642e-05/1.319, allocations: 35.86 kB / 0.6883 GB, free: 6.207 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.547e-05/1.319, allocations: 35.86 kB / 0.6884 GB, free: 6.172 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004194/1.323, allocations: 5.337 MB / 0.6936 GB, free: 252 kB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001444/1.324, allocations: 420.5 kB / 0.694 GB, free: 15.81 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001042/1.325, allocations: 47.98 kB / 0.694 GB, free: 15.77 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002204/1.327, allocations: 95.78 kB / 0.6941 GB, free: 15.68 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002324/1.328, allocations: 147.5 kB / 0.6942 GB, free: 15.53 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001349/1.328, allocations: 64 kB / 0.6943 GB, free: 15.47 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.005904/1.334, allocations: 2.365 MB / 0.6966 GB, free: 13.12 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.91e-07/1.334, allocations: 0 / 0.6966 GB, free: 13.12 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.007111/1.341, allocations: 0.8866 MB / 0.6975 GB, free: 12.24 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 84 * Number of states: 4 (p1.s,p1.v,p2.s,p2.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (144): * Single equations (assignments): 141 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009631/1.351, allocations: 10.56 MB / 0.7078 GB, free: 1.078 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.2711/1.622, allocations: 3.507 MB / 0.7112 GB, free: 102.1 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.257e-05/1.622, allocations: 3.75 kB / 0.7112 GB, free: 102.1 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001486/1.623, allocations: 0.7151 MB / 0.7119 GB, free: 102.1 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003228/1.627, allocations: 426.3 kB / 0.7123 GB, free: 102.1 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02723/1.654, allocations: 8.305 MB / 0.7204 GB, free: 99.98 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006759/1.661, allocations: 3.179 MB / 0.7235 GB, free: 99.19 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.006425/1.667, allocations: 1.771 MB / 0.7253 GB, free: 99.15 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003645/1.671, allocations: 1.809 MB / 0.727 GB, free: 99.14 MB / 442.7 MB Notification: Performance of SimCode: time 1.072e-06/1.671, allocations: 0 / 0.727 GB, free: 99.14 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1234/1.794, allocations: 65.51 MB / 0.791 GB, free: 72.26 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001899/1.794, allocations: 177.3 kB / 0.7912 GB, free: 72.03 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.634/6.428, allocations: 0 / 0.7912 GB, free: 72.03 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat does not exist to compare? outputFormat=mat