Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.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.Thermal.HeatTransfer.Examples.TwoMasses,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_TwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_TwoMasses",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.001535/0.001535, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.64/1.64, allocations: 221.5 MB / 230.3 MB, free: 7.598 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.0008636/0.0008638, allocations: 86.2 kB / 281.2 MB, free: 5.348 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.538e-05/1.55e-05, allocations: 7.984 kB / 337.1 MB, free: 9.953 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1071, allocations: 50.42 MB / 387.5 MB, free: 7.5 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3399/0.447, allocations: 75.76 MB / 463.3 MB, free: 2.992 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001799/0.4473, allocations: 71.95 kB / 463.4 MB, free: 2.922 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004569/0.4519, allocations: 1.767 MB / 465.1 MB, free: 1.164 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.4519, allocations: 0 / 465.1 MB, free: 1.164 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.803e-06/0.4519, allocations: 3.938 kB / 465.2 MB, free: 1.16 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0003872/0.4523, allocations: 379 kB / 465.5 MB, free: 0.7461 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.559e-05/0.4524, allocations: 8.031 kB / 465.5 MB, free: 0.7383 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001129/0.4525, allocations: 11.91 kB / 465.5 MB, free: 0.7266 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001604/0.4526, allocations: 163 kB / 465.7 MB, free: 0.5273 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.606e-05/0.4527, allocations: 4 kB / 465.7 MB, free: 0.5234 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.818e-05/0.4527, allocations: 4 kB / 465.7 MB, free: 0.5195 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000138/0.4528, allocations: 50.61 kB / 465.8 MB, free: 484 kB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001242/0.453, allocations: 73.58 kB / 465.8 MB, free: 404 kB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.387e-05/0.453, allocations: 3.984 kB / 465.8 MB, free: 400 kB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.281e-05/0.453, allocations: 4 kB / 465.8 MB, free: 396 kB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.676e-06/0.453, allocations: 4 kB / 465.8 MB, free: 392 kB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006466/0.4537, allocations: 361 kB / 466.2 MB, free: 15.99 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001184/0.4538, allocations: 70.56 kB / 466.3 MB, free: 15.91 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.09e-05/0.4539, allocations: 29 kB / 466.3 MB, free: 15.88 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.339e-05/0.4539, allocations: 4 kB / 466.3 MB, free: 15.88 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.226e-05/0.4539, allocations: 34.55 kB / 466.3 MB, free: 15.84 MB / 346.7 MB Notification: Performance of pre-optimization done (n=8): time 1.182e-06/0.4539, allocations: 0 / 466.3 MB, free: 15.84 MB / 346.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001756/0.4541, allocations: 73.66 kB / 466.4 MB, free: 15.76 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.168e-05/0.4542, allocations: 55.41 kB / 466.5 MB, free: 15.69 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.881e-05/0.4543, allocations: 105 kB / 466.6 MB, free: 15.58 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.46e-05/0.4543, allocations: 25.7 kB / 466.6 MB, free: 15.55 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.501e-05/0.4543, allocations: 99.88 kB / 466.7 MB, free: 15.45 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.043e-05/0.4544, allocations: 27.56 kB / 466.7 MB, free: 15.42 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.608e-06/0.4544, allocations: 0 / 466.7 MB, free: 15.42 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001114/0.4545, allocations: 318.8 kB / 467 MB, free: 15.1 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.628e-05/0.4545, allocations: 20 kB / 467 MB, free: 15.08 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.639e-05/0.4546, allocations: 34.58 kB / 467.1 MB, free: 15.04 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.47e-05/0.4546, allocations: 31.92 kB / 467.1 MB, free: 15.01 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.4546, allocations: 0 / 467.1 MB, free: 15.01 MB / 346.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001252/0.4548, allocations: 89.62 kB / 467.2 MB, free: 14.91 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.297e-05/0.4548, allocations: 4 kB / 467.2 MB, free: 14.91 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.591e-06/0.4548, allocations: 4 kB / 467.2 MB, free: 14.91 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.159e-05/0.4548, allocations: 0 / 467.2 MB, free: 14.91 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001299/0.455, allocations: 27.92 kB / 467.2 MB, free: 14.88 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.034e-05/0.455, allocations: 3.953 kB / 467.2 MB, free: 14.88 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.48e-05/0.455, allocations: 15.91 kB / 467.2 MB, free: 14.86 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.777e-06/0.455, allocations: 4 kB / 467.3 MB, free: 14.86 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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 6.533e-05/0.4551, allocations: 105 kB / 467.4 MB, free: 14.75 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 9.841e-05/0.4552, allocations: 69.59 kB / 467.4 MB, free: 14.67 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.317e-05/0.4553, allocations: 3.984 kB / 467.4 MB, free: 14.67 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.995e-05/0.4553, allocations: 8.625 kB / 467.4 MB, free: 14.66 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.562e-06/0.4553, allocations: 11.89 kB / 467.4 MB, free: 14.64 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.4553, allocations: 7.875 kB / 467.5 MB, free: 14.64 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/0.4553, allocations: 4 kB / 467.5 MB, free: 14.63 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001489/0.4555, allocations: 158.4 kB / 467.6 MB, free: 14.44 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.4555, allocations: 0 / 467.6 MB, free: 14.44 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001174/0.4556, allocations: 23.98 kB / 467.6 MB, free: 14.42 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.883e-06/0.4556, allocations: 0 / 467.6 MB, free: 14.42 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.135e-06/0.4556, allocations: 4 kB / 467.6 MB, free: 14.41 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.4557, allocations: 0 / 467.6 MB, free: 14.41 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.4557, allocations: 0 / 467.6 MB, free: 14.41 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001788/0.4558, allocations: 183.5 kB / 467.8 MB, free: 14.22 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.035e-05/0.4559, allocations: 89.03 kB / 467.9 MB, free: 14.11 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.416e-05/0.4559, allocations: 0 / 467.9 MB, free: 14.11 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.707e-05/0.456, allocations: 0 / 467.9 MB, free: 14.11 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.075e-05/0.456, allocations: 7.938 kB / 467.9 MB, free: 14.11 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.637e-06/0.456, allocations: 0 / 467.9 MB, free: 14.11 MB / 346.7 MB Notification: Performance of sorting global known variables: time 3.998e-05/0.4561, allocations: 91.22 kB / 468 MB, free: 14.02 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4561, allocations: 4 kB / 468 MB, free: 14.01 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002257/0.4563, allocations: 19.94 kB / 468 MB, free: 13.99 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (mass1.T,mass2.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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.0004646/0.4568, allocations: 0.7205 MB / 468.7 MB, free: 13.25 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001333/0.4569, allocations: 51.92 kB / 468.8 MB, free: 13.2 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.654e-06/0.4569, allocations: 0 / 468.8 MB, free: 13.2 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 2.907e-05/0.457, allocations: 19.94 kB / 468.8 MB, free: 13.18 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001803/0.4572, allocations: 13.44 kB / 468.8 MB, free: 13.16 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005914/0.4578, allocations: 262.2 kB / 469.1 MB, free: 12.87 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002626/0.458, allocations: 0.704 MB / 469.8 MB, free: 12.14 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 3.612e-05/0.4581, allocations: 4 kB / 469.8 MB, free: 12.14 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.337e-05/0.4581, allocations: 23.42 kB / 469.8 MB, free: 12.11 MB / 346.7 MB Notification: Performance of SimCode: time 2.6e-07/0.4581, allocations: 0 / 469.8 MB, free: 12.11 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01986/0.478, allocations: 1.217 MB / 471 MB, free: 10.91 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002862/0.4783, allocations: 139.4 kB / 471.2 MB, free: 10.71 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.565/2.044, allocations: 11.94 kB / 471.2 MB, free: 10.7 MB / 346.7 MB (rm -f Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_TwoMasses_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_TwoMasses.fmu > Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.mat does not exist to compare? outputFormat=mat