Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.HeatLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.HeatLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001045/0.001045, allocations: 88.72 kB / 16.31 MB, free: 5.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001373/0.001373, allocations: 179.6 kB / 17.21 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.368/1.368, allocations: 223.2 MB / 241.2 MB, free: 356 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002859/0.0002861, allocations: 11.98 kB / 300.9 MB, free: 6.344 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1059, allocations: 50.42 MB / 351.3 MB, free: 3.914 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.004197/0.1102, allocations: 3.713 MB / 355 MB, free: 176 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00254/0.1127, allocations: 1.322 MB / 356.4 MB, free: 14.85 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002612/0.113, allocations: 11.94 kB / 356.4 MB, free: 14.84 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002659/0.1133, allocations: 87.31 kB / 356.5 MB, free: 14.75 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003327/0.1136, allocations: 194.4 kB / 356.7 MB, free: 14.56 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009331/0.1146, allocations: 334.7 kB / 357 MB, free: 14.23 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009888/0.1156, allocations: 0.9946 MB / 358 MB, free: 13.23 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003463/0.1159, allocations: 199.2 kB / 358.2 MB, free: 13.02 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000513/0.1164, allocations: 414.6 kB / 358.6 MB, free: 12.62 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004767/0.1169, allocations: 462.3 kB / 359 MB, free: 12.16 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.007e-05/0.117, allocations: 48 kB / 359.1 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002155/0.1173, allocations: 91.95 kB / 359.2 MB, free: 12.03 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001796/0.1174, allocations: 171.3 kB / 359.3 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000147/0.1176, allocations: 157.3 kB / 359.5 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006813/0.1183, allocations: 0.7443 MB / 360.2 MB, free: 10.95 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.1183, allocations: 0 / 360.2 MB, free: 10.95 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.128e-06/0.1183, allocations: 4 kB / 360.2 MB, free: 10.95 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.027e-06/0.1183, allocations: 3.938 kB / 360.2 MB, free: 10.95 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 169 * Number of variables: 169 Notification: Performance of Generate backend data structure: time 0.002573/0.1209, allocations: 1.224 MB / 361.5 MB, free: 9.672 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.632e-05/0.121, allocations: 11.97 kB / 361.5 MB, free: 9.66 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001398/0.1211, allocations: 110.5 kB / 361.6 MB, free: 9.543 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001873/0.1213, allocations: 83.06 kB / 361.7 MB, free: 9.461 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005261/0.1218, allocations: 428.6 kB / 362.1 MB, free: 9.004 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.661e-05/0.1219, allocations: 58 kB / 362.1 MB, free: 8.945 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001239/0.122, allocations: 68 kB / 362.2 MB, free: 8.879 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001544/0.1236, allocations: 0.8193 MB / 363 MB, free: 8.055 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.674e-05/0.1236, allocations: 7.859 kB / 363 MB, free: 8.047 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.498e-05/0.1237, allocations: 28 kB / 363.1 MB, free: 8.02 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.598e-05/0.1237, allocations: 16 kB / 363.1 MB, free: 8.004 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001846/0.1256, allocations: 0.8978 MB / 364 MB, free: 7.105 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004171/0.1298, allocations: 2.459 MB / 366.4 MB, free: 4.516 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001394/0.1312, allocations: 0.7304 MB / 367.2 MB, free: 3.785 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00093/0.1321, allocations: 492.2 kB / 367.6 MB, free: 3.305 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.465e-05/0.1322, allocations: 12.98 kB / 367.7 MB, free: 3.289 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001138/0.1334, allocations: 0.5595 MB / 368.2 MB, free: 2.715 MB / 302.1 MB Notification: Performance of pre-optimization done (n=86): time 2.855e-06/0.1334, allocations: 4 kB / 368.2 MB, free: 2.711 MB / 302.1 MB Notification: Performance of matching and sorting (n=106): time 0.2163/0.3497, allocations: 4.455 MB / 372.7 MB, free: 24.14 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.996e-05/0.3498, allocations: 67.39 kB / 372.7 MB, free: 24.08 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006167/0.3504, allocations: 386 kB / 373.1 MB, free: 23.96 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001156/0.3505, allocations: 57.08 kB / 373.2 MB, free: 23.93 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002689/0.3508, allocations: 271.9 kB / 373.4 MB, free: 23.78 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003637/0.3512, allocations: 360.7 kB / 373.8 MB, free: 23.56 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.429e-05/0.3512, allocations: 22.64 kB / 373.8 MB, free: 23.56 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001491/0.3514, allocations: 376.3 kB / 374.2 MB, free: 23.25 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001089/0.3525, allocations: 449.9 kB / 374.6 MB, free: 23.25 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001099/0.3536, allocations: 0.546 MB / 375.2 MB, free: 23.02 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008593/0.3545, allocations: 397.3 kB / 375.5 MB, free: 22.87 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.057e-06/0.3545, allocations: 1.375 kB / 375.5 MB, free: 22.87 MB / 302.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003162/0.3577, allocations: 1.359 MB / 376.9 MB, free: 22.38 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.958e-05/0.3577, allocations: 8.75 kB / 376.9 MB, free: 22.38 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.264e-05/0.3577, allocations: 1.094 kB / 376.9 MB, free: 22.38 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001364/0.3591, allocations: 0.6538 MB / 377.6 MB, free: 22.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008419/0.3599, allocations: 208.7 kB / 377.8 MB, free: 22.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003953/0.3639, allocations: 3.306 MB / 381.1 MB, free: 19.39 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001293/0.3652, allocations: 236.5 kB / 381.3 MB, free: 19.36 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.351e-05/0.3653, allocations: 35.52 kB / 381.3 MB, free: 19.36 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 27 (supportFriction.free,$whenCondition1,elastoGap.contact,$PRE.supportFriction.startForward,supportFriction.startForward,$PRE.supportFriction.startBackward,supportFriction.startBackward,supportFriction.locked,$PRE.supportFriction.mode,supportFriction.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,massWithStopAndFriction.free,$PRE.massWithStopAndFriction.startForward,massWithStopAndFriction.startForward,$PRE.massWithStopAndFriction.startBackward,massWithStopAndFriction.startBackward,massWithStopAndFriction.locked,$PRE.massWithStopAndFriction.mode,massWithStopAndFriction.mode,massWithStopAndFriction.stopped) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (115): * Single equations (assignments): 112 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 7,1 5,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0004111/0.3657, allocations: 224.4 kB / 381.6 MB, free: 19.17 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001357/0.3659, allocations: 76.22 kB / 381.6 MB, free: 19.13 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002384/0.3661, allocations: 103.8 kB / 381.7 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.009e-05/0.3661, allocations: 14.41 kB / 381.8 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.606e-05/0.3662, allocations: 0.875 kB / 381.8 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.288e-05/0.3662, allocations: 5.203 kB / 381.8 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004726/0.3709, allocations: 2.56 MB / 384.3 MB, free: 17.79 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.322e-06/0.3709, allocations: 2.188 kB / 384.3 MB, free: 17.79 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000777/0.3717, allocations: 187.2 kB / 384.5 MB, free: 17.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001134/0.3728, allocations: 0.6231 MB / 385.1 MB, free: 17.57 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.121e-05/0.373, allocations: 34.95 kB / 385.2 MB, free: 17.56 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003185/0.3761, allocations: 3.125 MB / 388.3 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.949e-06/0.3762, allocations: 6.75 kB / 388.3 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003836/0.38, allocations: 1.885 MB / 390.2 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004494/0.3805, allocations: 234.8 kB / 390.4 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001323/0.3806, allocations: 28.8 kB / 390.4 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001242/0.3819, allocations: 275.3 kB / 390.7 MB, free: 13.84 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008545/0.3827, allocations: 438.2 kB / 391.1 MB, free: 13.78 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.471e-05/0.3828, allocations: 44.3 kB / 391.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002438/0.3831, allocations: 267.5 kB / 391.4 MB, free: 13.64 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.3831, allocations: 0 / 391.4 MB, free: 13.64 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008143/0.3839, allocations: 244.4 kB / 391.7 MB, free: 13.61 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (springDamper.s_rel,springDamper.v_rel,elastoGap.s_rel,elastoGap.v_rel,massWithStopAndFriction.s,massWithStopAndFriction.v,springDamper1.s_rel,springDamper1.v_rel) * Number of discrete variables: 17 ($whenCondition1,elastoGap.contact,supportFriction.startForward,supportFriction.startBackward,supportFriction.locked,supportFriction.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,massWithStopAndFriction.free,massWithStopAndFriction.startForward,massWithStopAndFriction.startBackward,massWithStopAndFriction.locked,massWithStopAndFriction.mode,massWithStopAndFriction.stopped) * Number of discrete states: 9 (massWithStopAndFriction.mode,massWithStopAndFriction.startBackward,massWithStopAndFriction.startForward,brake.mode,brake.startForward,brake.startBackward,supportFriction.mode,supportFriction.startForward,supportFriction.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (89): * Single equations (assignments): 86 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 6,1 6,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.003794/0.3877, allocations: 2.485 MB / 394.2 MB, free: 12.15 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002596/0.3903, allocations: 1.205 MB / 395.4 MB, free: 11.56 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.32e-06/0.3903, allocations: 1.625 kB / 395.4 MB, free: 11.56 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001436/0.3918, allocations: 0.7863 MB / 396.2 MB, free: 11.13 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009049/0.3927, allocations: 131.3 kB / 396.3 MB, free: 11.05 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008984/0.4017, allocations: 5.422 MB / 401.7 MB, free: 5.941 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004453/0.4022, allocations: 0.9322 MB / 402.6 MB, free: 4.984 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003888/0.4026, allocations: 84.5 kB / 402.7 MB, free: 4.902 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003244/0.4029, allocations: 239.3 kB / 403 MB, free: 4.672 MB / 302.1 MB Notification: Performance of SimCode: time 7.62e-07/0.4029, allocations: 4 kB / 403 MB, free: 4.668 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03948/0.4424, allocations: 21.02 MB / 424 MB, free: 15.91 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001693/0.4426, allocations: 219.6 kB / 424.2 MB, free: 15.67 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.353/2.795, allocations: 0 / 424.2 MB, free: 15.67 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_HeatLosses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_HeatLosses.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat does not exist to compare? outputFormat=mat