Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Damper.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.Translational.Examples.Damper,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Damper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Damper,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Damper",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.001175/0.001175, allocations: 175.5 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.543/1.543, allocations: 221.3 MB / 235.5 MB, free: 2.969 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.001068/0.001068, allocations: 102 kB / 286.5 MB, free: 232 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.868e-05/2.871e-05, allocations: 0 / 343.9 MB, free: 4.23 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1132/0.1133, allocations: 50.43 MB / 394.3 MB, free: 1.762 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.338/0.4513, allocations: 77.3 MB / 471.6 MB, free: 10.19 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002093/0.4516, allocations: 67.95 kB / 471.7 MB, free: 10.12 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01106/0.4626, allocations: 4.286 MB / 476 MB, free: 5.836 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.966e-06/0.4627, allocations: 3.984 kB / 476 MB, free: 5.832 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.331e-05/0.4627, allocations: 4 kB / 476 MB, free: 5.828 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.0005493/0.4633, allocations: 479.2 kB / 476.5 MB, free: 5.316 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.096e-05/0.4633, allocations: 8.031 kB / 476.5 MB, free: 5.309 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.298e-05/0.4634, allocations: 58.53 kB / 476.5 MB, free: 5.242 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.889e-05/0.4634, allocations: 31.62 kB / 476.6 MB, free: 5.211 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002335/0.4637, allocations: 235.3 kB / 476.8 MB, free: 4.938 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.574e-05/0.4637, allocations: 20.56 kB / 476.8 MB, free: 4.914 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.59e-05/0.4637, allocations: 27.95 kB / 476.8 MB, free: 4.887 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000363/0.4641, allocations: 227.5 kB / 477.1 MB, free: 4.648 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.034e-05/0.4641, allocations: 11.91 kB / 477.1 MB, free: 4.637 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.984e-05/0.4642, allocations: 4 kB / 477.1 MB, free: 4.633 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.077e-06/0.4642, allocations: 8 kB / 477.1 MB, free: 4.625 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002517/0.4644, allocations: 155.9 kB / 477.2 MB, free: 4.473 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009684/0.4654, allocations: 0.8088 MB / 478.1 MB, free: 3.605 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004372/0.4659, allocations: 288.1 kB / 478.3 MB, free: 3.297 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002201/0.4661, allocations: 134.6 kB / 478.5 MB, free: 3.156 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.206e-05/0.4661, allocations: 4.219 kB / 478.5 MB, free: 3.152 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.355e-05/0.4662, allocations: 42.5 kB / 478.5 MB, free: 3.102 MB / 346.7 MB Notification: Performance of pre-optimization done (n=33): time 2.003e-06/0.4662, allocations: 3.938 kB / 478.5 MB, free: 3.098 MB / 346.7 MB Notification: Performance of matching and sorting (n=45): time 0.002264/0.4684, allocations: 1.865 MB / 480.4 MB, free: 0.9766 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.73e-05/0.4685, allocations: 106.8 kB / 480.5 MB, free: 0.8477 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001467/0.4686, allocations: 167.6 kB / 480.7 MB, free: 0.6758 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.391e-05/0.4687, allocations: 33.7 kB / 480.7 MB, free: 0.6367 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.41e-05/0.4688, allocations: 136.8 kB / 480.8 MB, free: 0.5 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.776e-05/0.4689, allocations: 157.6 kB / 481 MB, free: 352 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.613e-05/0.4689, allocations: 12 kB / 481 MB, free: 340 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001155/0.469, allocations: 338.8 kB / 481.3 MB, free: 15.99 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001421/0.4692, allocations: 92.81 kB / 481.4 MB, free: 15.9 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000177/0.4694, allocations: 150.4 kB / 481.6 MB, free: 15.74 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001843/0.4695, allocations: 118.4 kB / 481.7 MB, free: 15.62 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.4696, allocations: 4 kB / 481.7 MB, free: 15.62 MB / 362.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0004453/0.47, allocations: 333.8 kB / 482 MB, free: 15.29 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.781e-05/0.47, allocations: 8.656 kB / 482 MB, free: 15.29 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.47, allocations: 0 / 482 MB, free: 15.29 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.497e-05/0.4701, allocations: 4 kB / 482 MB, free: 15.28 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003132/0.4704, allocations: 95.89 kB / 482.1 MB, free: 15.19 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.016e-05/0.4704, allocations: 4 kB / 482.1 MB, free: 15.18 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001022/0.4705, allocations: 8.094 kB / 482.1 MB, free: 15.18 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.955e-05/0.4705, allocations: 16 kB / 482.1 MB, free: 15.16 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 54 * Array equations: 0 * 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 7.91e-05/0.4706, allocations: 132.8 kB / 482.3 MB, free: 15.02 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.149e-05/0.4707, allocations: 35.58 kB / 482.3 MB, free: 14.99 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.688e-05/0.4708, allocations: 37.64 kB / 482.3 MB, free: 14.95 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/0.4708, allocations: 4 kB / 482.3 MB, free: 14.95 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.4708, allocations: 4 kB / 482.3 MB, free: 14.95 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.334e-06/0.4708, allocations: 3.984 kB / 482.3 MB, free: 14.94 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001234/0.4721, allocations: 1.047 MB / 483.4 MB, free: 13.81 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.571e-06/0.4721, allocations: 4 kB / 483.4 MB, free: 13.8 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003503/0.4724, allocations: 91.84 kB / 483.5 MB, free: 13.71 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.126e-06/0.4725, allocations: 8.234 kB / 483.5 MB, free: 13.71 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.341e-05/0.4725, allocations: 15.98 kB / 483.5 MB, free: 13.69 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.538e-06/0.4725, allocations: 4 kB / 483.5 MB, free: 13.69 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.4725, allocations: 7.938 kB / 483.5 MB, free: 13.68 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008663/0.4734, allocations: 0.8332 MB / 484.4 MB, free: 12.73 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.47e-05/0.4735, allocations: 100.8 kB / 484.5 MB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.547e-05/0.4735, allocations: 16.06 kB / 484.5 MB, free: 12.6 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002013/0.4737, allocations: 15.95 kB / 484.5 MB, free: 12.58 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.568e-05/0.4738, allocations: 31.95 kB / 484.5 MB, free: 12.55 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.909e-05/0.4738, allocations: 12 kB / 484.5 MB, free: 12.54 MB / 362.7 MB Notification: Performance of sorting global known variables: time 9.838e-05/0.4739, allocations: 135.3 kB / 484.7 MB, free: 12.41 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.4739, allocations: 0 / 484.7 MB, free: 12.41 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003778/0.4743, allocations: 72 kB / 484.7 MB, free: 12.34 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 6 (springDamper3.s_rel,springDamper3.v_rel,damper1.s_rel,damper1.v_rel,damper2.s_rel,damper2.v_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 45 * Array equations: 0 * 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.001191/0.4755, allocations: 2.147 MB / 486.9 MB, free: 10.09 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000395/0.4759, allocations: 255.8 kB / 487.1 MB, free: 9.836 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.4759, allocations: 4.188 kB / 487.1 MB, free: 9.832 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002287/0.4761, allocations: 139.7 kB / 487.3 MB, free: 9.695 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000462/0.4766, allocations: 60.67 kB / 487.3 MB, free: 9.641 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001452/0.4781, allocations: 0.8593 MB / 488.2 MB, free: 8.711 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002877/0.4784, allocations: 0.7801 MB / 489 MB, free: 7.906 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001189/0.4785, allocations: 34.95 kB / 489 MB, free: 7.867 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001257/0.4786, allocations: 91.41 kB / 489.1 MB, free: 7.777 MB / 362.7 MB Notification: Performance of SimCode: time 2.71e-07/0.4786, allocations: 0 / 489.1 MB, free: 7.777 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01637/0.495, allocations: 5.335 MB / 494.4 MB, free: 2.574 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001692/0.4952, allocations: 159.6 kB / 494.6 MB, free: 2.344 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.059/2.554, allocations: 0 / 494.6 MB, free: 2.344 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Damper.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Damper.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Damper.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Damper.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Damper_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Damper_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Damper.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Damper.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Damper_res.mat does not exist to compare? outputFormat=mat