Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_Thermal_HeatTransfer_Examples_TwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,fileNamePrefix="Modelica_3_2_3_cpp_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.002095/0.0021, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.211/2.211, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001077/0.001078, allocations: 93.62 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 1.723e-05/1.724e-05, allocations: 0 / 314.9 MB, free: 9.059 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3475/0.3476, allocations: 47.56 MB / 362.4 MB, free: 45.73 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1252/0.4729, allocations: 74.91 MB / 437.3 MB, free: 11.31 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002737/0.4732, allocations: 69 kB / 437.4 MB, free: 11.25 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.007454/0.4807, allocations: 1.782 MB / 439.2 MB, free: 9.488 MB / 331.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.4807, allocations: 2.656 kB / 439.2 MB, free: 9.488 MB / 331.1 MB Notification: Performance of Transformations before backend: time 8.476e-06/0.4807, allocations: 0 / 439.2 MB, free: 9.488 MB / 331.1 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.0005062/0.4813, allocations: 369.3 kB / 439.5 MB, free: 9.086 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.905e-05/0.4813, allocations: 8.031 kB / 439.6 MB, free: 9.078 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001401/0.4815, allocations: 11.91 kB / 439.6 MB, free: 9.066 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001551/0.4816, allocations: 165 kB / 439.7 MB, free: 8.867 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.811e-05/0.4817, allocations: 4 kB / 439.7 MB, free: 8.863 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.88e-05/0.4817, allocations: 12.69 kB / 439.7 MB, free: 8.852 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001893/0.4819, allocations: 47.94 kB / 439.8 MB, free: 8.805 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001757/0.4821, allocations: 70.52 kB / 439.9 MB, free: 8.73 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.473e-05/0.4821, allocations: 0 / 439.9 MB, free: 8.73 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.423e-05/0.4822, allocations: 0 / 439.9 MB, free: 8.73 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.027e-06/0.4822, allocations: 4.688 kB / 439.9 MB, free: 8.727 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000868/0.4831, allocations: 372.3 kB / 440.2 MB, free: 8.328 MB / 331.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001648/0.4833, allocations: 68.5 kB / 440.3 MB, free: 8.254 MB / 331.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.983e-05/0.4833, allocations: 30.81 kB / 440.3 MB, free: 8.223 MB / 331.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.835e-05/0.4834, allocations: 4 kB / 440.3 MB, free: 8.219 MB / 331.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.926e-05/0.4834, allocations: 34.56 kB / 440.4 MB, free: 8.176 MB / 331.1 MB Notification: Performance of pre-optimization done (n=8): time 1.783e-05/0.4834, allocations: 0 / 440.4 MB, free: 8.176 MB / 331.1 MB Notification: Performance of matching and sorting (n=8): time 0.000234/0.4837, allocations: 71.67 kB / 440.4 MB, free: 8.102 MB / 331.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.47e-05/0.4837, allocations: 51.41 kB / 440.5 MB, free: 8.039 MB / 331.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.683e-05/0.4838, allocations: 97.5 kB / 440.6 MB, free: 7.938 MB / 331.1 MB Notification: Performance of collectPreVariables (initialization): time 2.973e-05/0.4839, allocations: 25.7 kB / 440.6 MB, free: 7.906 MB / 331.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001004/0.484, allocations: 174.3 kB / 440.8 MB, free: 7.734 MB / 331.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.292e-05/0.484, allocations: 27.55 kB / 440.8 MB, free: 7.707 MB / 331.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.012e-06/0.4841, allocations: 4 kB / 440.8 MB, free: 7.703 MB / 331.1 MB Notification: Performance of setup shared object (initialization): time 0.0001444/0.4842, allocations: 318.8 kB / 441.1 MB, free: 7.383 MB / 331.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.75e-05/0.4843, allocations: 16 kB / 441.1 MB, free: 7.367 MB / 331.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.413e-05/0.4844, allocations: 39.2 kB / 441.2 MB, free: 7.32 MB / 331.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8e-05/0.4845, allocations: 27.38 kB / 441.2 MB, free: 7.297 MB / 331.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.4845, allocations: 0 / 441.2 MB, free: 7.297 MB / 331.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002189/0.4847, allocations: 97.52 kB / 441.3 MB, free: 7.195 MB / 331.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.939e-05/0.4847, allocations: 8.062 kB / 441.3 MB, free: 7.188 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.775e-06/0.4848, allocations: 1.562 kB / 441.3 MB, free: 7.188 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.828e-05/0.4848, allocations: 4 kB / 441.3 MB, free: 7.184 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000216/0.485, allocations: 27.92 kB / 441.3 MB, free: 7.156 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.661e-06/0.485, allocations: 1.125 kB / 441.3 MB, free: 7.156 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001003/0.4851, allocations: 11.84 kB / 441.3 MB, free: 7.145 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.584e-05/0.4852, allocations: 7.984 kB / 441.3 MB, free: 7.137 MB / 331.1 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 8.576e-05/0.4853, allocations: 101 kB / 441.4 MB, free: 7.031 MB / 331.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001687/0.4854, allocations: 82.41 kB / 441.5 MB, free: 6.945 MB / 331.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.11e-05/0.4855, allocations: 4 kB / 441.5 MB, free: 6.941 MB / 331.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.316e-05/0.4855, allocations: 8.625 kB / 441.5 MB, free: 6.93 MB / 331.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.111e-06/0.4856, allocations: 4 kB / 441.5 MB, free: 6.926 MB / 331.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.4856, allocations: 0 / 441.5 MB, free: 6.926 MB / 331.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.4856, allocations: 0 / 441.5 MB, free: 6.926 MB / 331.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002357/0.4858, allocations: 154.2 kB / 441.7 MB, free: 6.738 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.574e-06/0.4858, allocations: 1.75 kB / 441.7 MB, free: 6.738 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001888/0.486, allocations: 21.02 kB / 441.7 MB, free: 6.719 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.783e-06/0.4861, allocations: 3.953 kB / 441.7 MB, free: 6.715 MB / 331.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.133e-05/0.4861, allocations: 4 kB / 441.7 MB, free: 6.711 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.509e-06/0.4861, allocations: 4 kB / 441.7 MB, free: 6.707 MB / 331.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.4861, allocations: 0 / 441.7 MB, free: 6.707 MB / 331.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002806/0.4864, allocations: 184.1 kB / 441.9 MB, free: 6.512 MB / 331.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.698e-05/0.4865, allocations: 88.98 kB / 442 MB, free: 6.406 MB / 331.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.285e-05/0.4865, allocations: 3.953 kB / 442 MB, free: 6.402 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001056/0.4866, allocations: 0 / 442 MB, free: 6.402 MB / 331.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.708e-05/0.4867, allocations: 12.88 kB / 442 MB, free: 6.391 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.167e-06/0.4867, allocations: 8.047 kB / 442 MB, free: 6.383 MB / 331.1 MB Notification: Performance of sorting global known variables: time 5.22e-05/0.4867, allocations: 81.41 kB / 442.1 MB, free: 6.305 MB / 331.1 MB Notification: Performance of sort global known variables: time 3.8e-07/0.4868, allocations: 0 / 442.1 MB, free: 6.305 MB / 331.1 MB Notification: Performance of remove unused functions: time 0.0003574/0.4871, allocations: 23.94 kB / 442.1 MB, free: 6.281 MB / 331.1 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.0006382/0.4878, allocations: 0.7092 MB / 442.8 MB, free: 5.547 MB / 331.1 MB Notification: Performance of simCode: created initialization part: time 0.0001826/0.488, allocations: 56 kB / 442.9 MB, free: 5.492 MB / 331.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.488, allocations: 0 / 442.9 MB, free: 5.492 MB / 331.1 MB Notification: Performance of simCode: created simulation system equations: time 5.506e-05/0.4881, allocations: 25.72 kB / 442.9 MB, free: 5.469 MB / 331.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000261/0.4883, allocations: 4.969 kB / 442.9 MB, free: 5.465 MB / 331.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009431/0.4893, allocations: 304 kB / 443.2 MB, free: 5.125 MB / 331.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000347/0.4897, allocations: 0.7001 MB / 443.9 MB, free: 4.398 MB / 331.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.021e-05/0.4897, allocations: 19.44 kB / 443.9 MB, free: 4.379 MB / 331.1 MB Notification: Performance of SimCode: time 1.082e-06/0.4897, allocations: 0 / 443.9 MB, free: 4.379 MB / 331.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.465/2.955, allocations: 1.34 MB / 445.3 MB, free: 3.066 MB / 331.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Thermal_HeatTransfer_Examples_TwoMasses_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Thermal_HeatTransfer_Examples_TwoMasses.fmu > Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.mat does not exist to compare? outputFormat=mat