Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_HeatTransfer_Examples_TwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_HeatTransfer_Examples_TwoMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001184/0.001184, allocations: 181.2 kB / 17.01 MB, free: 5.121 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.384/1.384, allocations: 205.4 MB / 223.1 MB, free: 9.133 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009494/0.0009494, allocations: 92.11 kB / 271.5 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002481/0.0002481, allocations: 4 kB / 328.3 MB, free: 15.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2614/0.2617, allocations: 47.57 MB / 375.9 MB, free: 45.52 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09009/0.3518, allocations: 75.66 MB / 451.6 MB, free: 4.898 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002415/0.3521, allocations: 67.97 kB / 451.6 MB, free: 4.832 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004947/0.3571, allocations: 1.788 MB / 453.4 MB, free: 3.043 MB / 330.7 MB Notification: Performance of FrontEnd: time 6.011e-06/0.3571, allocations: 0 / 453.4 MB, free: 3.043 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.029e-05/0.3571, allocations: 3.938 kB / 453.4 MB, free: 3.039 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.0005289/0.3577, allocations: 379.1 kB / 453.8 MB, free: 2.621 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.161e-05/0.3577, allocations: 8.031 kB / 453.8 MB, free: 2.613 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.243e-05/0.3578, allocations: 38.56 kB / 453.8 MB, free: 2.566 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001222/0.3579, allocations: 15.89 kB / 453.9 MB, free: 2.551 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001524/0.3581, allocations: 171 kB / 454 MB, free: 2.344 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.967e-05/0.3581, allocations: 11.95 kB / 454 MB, free: 2.332 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.094e-05/0.3581, allocations: 4 kB / 454 MB, free: 2.328 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001904/0.3583, allocations: 88.23 kB / 454.1 MB, free: 2.238 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.388e-05/0.3583, allocations: 3.984 kB / 454.1 MB, free: 2.234 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.734e-05/0.3584, allocations: 4 kB / 454.1 MB, free: 2.23 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/0.3584, allocations: 4 kB / 454.1 MB, free: 2.227 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001271/0.3585, allocations: 59.86 kB / 454.2 MB, free: 2.168 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007571/0.3593, allocations: 396.6 kB / 454.6 MB, free: 1.73 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001451/0.3594, allocations: 66.56 kB / 454.6 MB, free: 1.656 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.241e-05/0.3595, allocations: 0 / 454.6 MB, free: 1.656 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.041e-05/0.3595, allocations: 42.55 kB / 454.7 MB, free: 1.605 MB / 330.7 MB Notification: Performance of pre-optimization done (n=8): time 1.052e-06/0.3595, allocations: 0 / 454.7 MB, free: 1.605 MB / 330.7 MB Notification: Performance of matching and sorting (n=8): time 0.0002221/0.3597, allocations: 97.66 kB / 454.8 MB, free: 1.504 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.689e-05/0.3598, allocations: 51.41 kB / 454.8 MB, free: 1.441 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.138e-05/0.3599, allocations: 101 kB / 454.9 MB, free: 1.336 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.541e-05/0.3599, allocations: 25.7 kB / 455 MB, free: 1.305 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.802e-05/0.36, allocations: 100.4 kB / 455.1 MB, free: 1.203 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.581e-05/0.36, allocations: 31.55 kB / 455.1 MB, free: 1.172 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.088e-06/0.36, allocations: 4 kB / 455.1 MB, free: 1.168 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001302/0.3601, allocations: 326.8 kB / 455.4 MB, free: 0.8398 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.962e-05/0.3602, allocations: 16 kB / 455.4 MB, free: 0.8242 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.442e-05/0.3603, allocations: 42.56 kB / 455.5 MB, free: 0.7734 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.183e-05/0.3603, allocations: 34.12 kB / 455.5 MB, free: 0.7422 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.3603, allocations: 0 / 455.5 MB, free: 0.7422 MB / 330.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000152/0.3605, allocations: 105.5 kB / 455.6 MB, free: 0.6328 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.874e-05/0.3605, allocations: 8 kB / 455.6 MB, free: 0.625 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.207e-06/0.3605, allocations: 0 / 455.6 MB, free: 0.625 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.162e-05/0.3605, allocations: 0 / 455.6 MB, free: 0.625 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001298/0.3607, allocations: 27.94 kB / 455.6 MB, free: 0.5977 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.828e-06/0.3607, allocations: 7.984 kB / 455.6 MB, free: 0.5898 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.327e-05/0.3607, allocations: 7.938 kB / 455.7 MB, free: 0.582 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.532e-06/0.3608, allocations: 0 / 455.7 MB, free: 0.582 MB / 330.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 () * Number of clocked 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 9.094e-05/0.3609, allocations: 125.9 kB / 455.8 MB, free: 460 kB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.621e-05/0.3609, allocations: 7.906 kB / 455.8 MB, free: 452 kB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.565e-05/0.3609, allocations: 8.375 kB / 455.8 MB, free: 448 kB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.3609, allocations: 4 kB / 455.8 MB, free: 444 kB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.486e-06/0.3609, allocations: 0 / 455.8 MB, free: 444 kB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.195e-06/0.361, allocations: 7.922 kB / 455.8 MB, free: 436 kB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001962/0.3612, allocations: 193.7 kB / 456 MB, free: 192 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.3612, allocations: 4 kB / 456 MB, free: 188 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001032/0.3613, allocations: 19.98 kB / 456 MB, free: 168 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.3613, allocations: 0 / 456 MB, free: 168 kB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.274e-05/0.3613, allocations: 8 kB / 456 MB, free: 160 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.3613, allocations: 4 kB / 456 MB, free: 156 kB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.153e-06/0.3613, allocations: 0 / 456 MB, free: 156 kB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002678/0.3616, allocations: 193.7 kB / 456.2 MB, free: 15.95 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.691e-05/0.3617, allocations: 81.02 kB / 456.3 MB, free: 15.85 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.654e-05/0.3617, allocations: 0 / 456.3 MB, free: 15.85 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.953e-05/0.3618, allocations: 8.031 kB / 456.3 MB, free: 15.84 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.453e-05/0.3618, allocations: 11.98 kB / 456.3 MB, free: 15.83 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.56e-06/0.3618, allocations: 4 kB / 456.3 MB, free: 15.83 MB / 346.7 MB Notification: Performance of sorting global known variables: time 4.345e-05/0.3619, allocations: 83.28 kB / 456.4 MB, free: 15.75 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3619, allocations: 0 / 456.4 MB, free: 15.75 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002301/0.3621, allocations: 23.94 kB / 456.4 MB, free: 15.72 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 () * Number of clocked 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.00051/0.3626, allocations: 0.7281 MB / 457.2 MB, free: 14.97 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001452/0.3628, allocations: 59.92 kB / 457.2 MB, free: 14.91 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.3628, allocations: 0 / 457.2 MB, free: 14.91 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.491e-05/0.3628, allocations: 23.94 kB / 457.2 MB, free: 14.89 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002162/0.3631, allocations: 7.984 kB / 457.2 MB, free: 14.88 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001015/0.3641, allocations: 0.9005 MB / 458.1 MB, free: 13.91 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002895/0.3644, allocations: 0.6972 MB / 458.8 MB, free: 13.19 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 3.71e-05/0.3644, allocations: 7.953 kB / 458.8 MB, free: 13.18 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.089e-05/0.3645, allocations: 23.42 kB / 458.9 MB, free: 13.16 MB / 346.7 MB Notification: Performance of SimCode: time 2.1e-07/0.3645, allocations: 0 / 458.9 MB, free: 13.16 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01404/0.3785, allocations: 1.504 MB / 460.4 MB, free: 11.7 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002654/0.3789, allocations: 182.1 kB / 460.6 MB, free: 11.45 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.502/1.881, allocations: 0 / 460.6 MB, free: 11.45 MB / 346.7 MB (rm -f Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Thermal_HeatTransfer_Examples_TwoMasses_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Thermal_HeatTransfer_Examples_TwoMasses.fmu > Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.mat does not exist to compare? outputFormat=mat