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/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.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/Complex 4.0.0+maint.om/package.mo): time 0.001438/0.001438, allocations: 181.2 kB / 16.38 MB, free: 5.762 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.417/1.417, allocations: 223.2 MB / 240.3 MB, free: 10.15 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001112/0.001112, allocations: 95.22 kB / 291.5 MB, free: 10.7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000348/0.0003482, allocations: 8 kB / 351.2 MB, free: 15.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3078/0.3082, allocations: 50.41 MB / 401.6 MB, free: 32.55 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1077/0.416, allocations: 85.64 MB / 487.2 MB, free: 10.79 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003135/0.4164, allocations: 72.48 kB / 487.3 MB, free: 10.72 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04545/0.4619, allocations: 15.13 MB / 0.4906 GB, free: 11.52 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.4619, allocations: 0 / 0.4906 GB, free: 11.52 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.351e-05/0.462, allocations: 12 kB / 0.4906 GB, free: 11.51 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: 169 * Number of variables: 169 Notification: Performance of Generate backend data structure: time 0.003523/0.4655, allocations: 1.139 MB / 0.4918 GB, free: 10.32 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.64e-05/0.4656, allocations: 8.031 kB / 0.4918 GB, free: 10.31 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000333/0.4659, allocations: 118.4 kB / 0.4919 GB, free: 10.19 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003795/0.4663, allocations: 90.97 kB / 0.492 GB, free: 10.1 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008898/0.4672, allocations: 417 kB / 0.4924 GB, free: 9.648 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.724e-05/0.4673, allocations: 50 kB / 0.4924 GB, free: 9.598 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001555/0.4675, allocations: 68 kB / 0.4925 GB, free: 9.531 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001811/0.4693, allocations: 0.7881 MB / 0.4932 GB, free: 8.734 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.729e-05/0.4693, allocations: 7.906 kB / 0.4933 GB, free: 8.727 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.928e-05/0.4694, allocations: 28 kB / 0.4933 GB, free: 8.699 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.281e-05/0.4695, allocations: 20 kB / 0.4933 GB, free: 8.68 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002429/0.4719, allocations: 0.8549 MB / 0.4941 GB, free: 7.828 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00607/0.478, allocations: 2.443 MB / 0.4965 GB, free: 5.258 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001536/0.4796, allocations: 0.7153 MB / 0.4972 GB, free: 4.539 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.678e-05/0.4797, allocations: 16.98 kB / 0.4972 GB, free: 4.523 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001378/0.4811, allocations: 0.5633 MB / 0.4978 GB, free: 3.949 MB / 378.7 MB Notification: Performance of pre-optimization done (n=89): time 5.37e-06/0.4811, allocations: 0 / 0.4978 GB, free: 3.949 MB / 378.7 MB Notification: Performance of matching and sorting (n=109): time 0.2247/0.7058, allocations: 4.411 MB / 0.5021 GB, free: 95.8 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.519e-05/0.7059, allocations: 64.53 kB / 0.5022 GB, free: 95.74 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004653/0.7064, allocations: 315.1 kB / 0.5025 GB, free: 95.64 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002019/0.7066, allocations: 57.36 kB / 0.5025 GB, free: 95.61 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001596/0.7068, allocations: 258.2 kB / 0.5028 GB, free: 95.53 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003421/0.7071, allocations: 373.2 kB / 0.5031 GB, free: 95.38 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.23e-05/0.7072, allocations: 23.58 kB / 0.5031 GB, free: 95.38 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001104/0.7073, allocations: 369.8 kB / 0.5035 GB, free: 95.07 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00103/0.7083, allocations: 433.4 kB / 0.5039 GB, free: 95.06 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001016/0.7094, allocations: 0.5139 MB / 0.5044 GB, free: 95 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008275/0.7102, allocations: 372.6 kB / 0.5048 GB, free: 94.99 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.7102, allocations: 1.125 kB / 0.5048 GB, free: 94.99 MB / 378.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003355/0.7136, allocations: 1.314 MB / 0.506 GB, free: 94.87 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.129e-05/0.7136, allocations: 7.094 kB / 0.506 GB, free: 94.87 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.916e-05/0.7137, allocations: 8.938 kB / 0.5061 GB, free: 94.87 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009906/0.7147, allocations: 0.5577 MB / 0.5066 GB, free: 94.84 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007619/0.7154, allocations: 205.5 kB / 0.5068 GB, free: 94.84 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003129/0.7186, allocations: 3.232 MB / 0.51 GB, free: 92.46 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001157/0.7198, allocations: 240.6 kB / 0.5102 GB, free: 92.46 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.895e-05/0.7199, allocations: 41.72 kB / 0.5102 GB, free: 92.46 MB / 378.7 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): 110 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0003465/0.7202, allocations: 218.1 kB / 0.5104 GB, free: 92.29 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000111/0.7203, allocations: 75.84 kB / 0.5105 GB, free: 92.25 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002603/0.7229, allocations: 1.332 MB / 0.5118 GB, free: 91.73 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.207e-06/0.723, allocations: 11.06 kB / 0.5118 GB, free: 91.73 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.723, allocations: 0 / 0.5118 GB, free: 91.73 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.789e-06/0.723, allocations: 3.844 kB / 0.5118 GB, free: 91.73 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003956/0.727, allocations: 2.506 MB / 0.5143 GB, free: 90.52 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.953e-06/0.727, allocations: 3.219 kB / 0.5143 GB, free: 90.52 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007466/0.7277, allocations: 189.6 kB / 0.5144 GB, free: 90.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008072/0.7286, allocations: 0.5235 MB / 0.515 GB, free: 90.36 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.505e-05/0.7286, allocations: 41.58 kB / 0.515 GB, free: 90.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002682/0.7313, allocations: 3.068 MB / 0.518 GB, free: 87.72 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.388e-06/0.7313, allocations: 7.812 kB / 0.518 GB, free: 87.72 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003258/0.7346, allocations: 1.915 MB / 0.5199 GB, free: 86.74 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003742/0.735, allocations: 230 kB / 0.5201 GB, free: 86.57 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000117/0.7351, allocations: 34.03 kB / 0.5201 GB, free: 86.55 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001148/0.7363, allocations: 252 kB / 0.5204 GB, free: 86.52 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008084/0.7371, allocations: 439.6 kB / 0.5208 GB, free: 86.45 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.463e-05/0.7372, allocations: 45.78 kB / 0.5208 GB, free: 86.45 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002268/0.7374, allocations: 253.1 kB / 0.5211 GB, free: 86.32 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.312e-06/0.7374, allocations: 0 / 0.5211 GB, free: 86.32 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008385/0.7383, allocations: 253.9 kB / 0.5213 GB, free: 86.29 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (90): * Single equations (assignments): 87 * 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.003876/0.7422, allocations: 3.072 MB / 0.5243 GB, free: 84.22 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002494/0.7447, allocations: 1.233 MB / 0.5255 GB, free: 83.57 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.009e-06/0.7447, allocations: 0 / 0.5255 GB, free: 83.57 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001392/0.7461, allocations: 0.7845 MB / 0.5263 GB, free: 82.85 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007524/0.7469, allocations: 113.4 kB / 0.5264 GB, free: 82.76 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008677/0.7556, allocations: 6.073 MB / 0.5323 GB, free: 77.24 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003295/0.7559, allocations: 0.9526 MB / 0.5332 GB, free: 76.35 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003528/0.7563, allocations: 71.58 kB / 0.5333 GB, free: 76.3 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002925/0.7566, allocations: 245.4 kB / 0.5336 GB, free: 76.09 MB / 378.7 MB Notification: Performance of SimCode: time 1.192e-06/0.7566, allocations: 0 / 0.5336 GB, free: 76.09 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03163/0.7882, allocations: 20.47 MB / 0.5535 GB, free: 56.89 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001365/0.7884, allocations: 212.1 kB / 0.5537 GB, free: 56.65 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.673/3.461, allocations: 0 / 0.5537 GB, free: 56.65 MB / 378.7 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