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.001575/0.001575, allocations: 188.4 kB / 16.41 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.122/2.122, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.001156/0.001156, allocations: 94.14 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003812/0.0003809, allocations: 12 kB / 327.1 MB, free: 108 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3449/0.3453, allocations: 47.57 MB / 374.6 MB, free: 45.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1248/0.4701, allocations: 75.66 MB / 450.3 MB, free: 5.086 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002439/0.4704, allocations: 67.97 kB / 450.4 MB, free: 5.02 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007202/0.4776, allocations: 1.788 MB / 452.1 MB, free: 3.23 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.585e-06/0.4777, allocations: 3.938 kB / 452.2 MB, free: 3.227 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.433e-05/0.4777, allocations: 0 / 452.2 MB, free: 3.227 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.0005324/0.4782, allocations: 375.2 kB / 452.5 MB, free: 2.812 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.688e-05/0.4783, allocations: 8.031 kB / 452.5 MB, free: 2.805 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.02e-05/0.4784, allocations: 42.56 kB / 452.6 MB, free: 2.754 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001482/0.4785, allocations: 15.89 kB / 452.6 MB, free: 2.738 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001561/0.4787, allocations: 167 kB / 452.7 MB, free: 2.535 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.73e-05/0.4787, allocations: 7.953 kB / 452.8 MB, free: 2.527 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.028e-05/0.4788, allocations: 12 kB / 452.8 MB, free: 2.516 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002267/0.479, allocations: 82.17 kB / 452.8 MB, free: 2.43 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.5e-05/0.479, allocations: 0 / 452.8 MB, free: 2.43 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.817e-05/0.4791, allocations: 11.98 kB / 452.9 MB, free: 2.418 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.956e-06/0.4791, allocations: 4 kB / 452.9 MB, free: 2.414 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001749/0.4793, allocations: 55.86 kB / 452.9 MB, free: 2.359 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008939/0.4802, allocations: 392.7 kB / 453.3 MB, free: 1.926 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001914/0.4804, allocations: 74.5 kB / 453.4 MB, free: 1.844 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.458e-05/0.4804, allocations: 4 kB / 453.4 MB, free: 1.84 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.053e-05/0.4805, allocations: 38.55 kB / 453.4 MB, free: 1.793 MB / 330.7 MB Notification: Performance of pre-optimization done (n=8): time 1.753e-06/0.4805, allocations: 0 / 453.4 MB, free: 1.793 MB / 330.7 MB Notification: Performance of matching and sorting (n=8): time 0.0002767/0.4808, allocations: 89.67 kB / 453.5 MB, free: 1.699 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.152e-05/0.4808, allocations: 55.41 kB / 453.6 MB, free: 1.633 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.199e-05/0.4809, allocations: 101 kB / 453.7 MB, free: 1.527 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.066e-05/0.481, allocations: 29.7 kB / 453.7 MB, free: 1.492 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.576e-05/0.4811, allocations: 166.8 kB / 453.8 MB, free: 1.328 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.106e-05/0.4811, allocations: 31.55 kB / 453.9 MB, free: 1.297 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.678e-06/0.4811, allocations: 4 kB / 453.9 MB, free: 1.293 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001441/0.4813, allocations: 322.8 kB / 454.2 MB, free: 0.9688 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.885e-05/0.4814, allocations: 16 kB / 454.2 MB, free: 0.9531 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.809e-05/0.4815, allocations: 46.56 kB / 454.3 MB, free: 0.8984 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.562e-05/0.4816, allocations: 38.23 kB / 454.3 MB, free: 0.8633 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.225e-06/0.4816, allocations: 0 / 454.3 MB, free: 0.8633 MB / 330.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000243/0.4818, allocations: 101.5 kB / 454.4 MB, free: 0.7578 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.98e-05/0.4819, allocations: 8 kB / 454.4 MB, free: 0.75 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.4819, allocations: 320 / 454.4 MB, free: 0.75 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.413e-05/0.4819, allocations: 3.938 kB / 454.4 MB, free: 0.7461 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002095/0.4821, allocations: 23.94 kB / 454.4 MB, free: 0.7227 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.067e-05/0.4821, allocations: 4 kB / 454.4 MB, free: 0.7188 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.695e-05/0.4823, allocations: 19.98 kB / 454.5 MB, free: 0.6992 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.102e-05/0.4823, allocations: 3.984 kB / 454.5 MB, free: 0.6953 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 0.0001128/0.4824, allocations: 119.3 kB / 454.6 MB, free: 0.5703 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.489e-05/0.4824, allocations: 7.906 kB / 454.6 MB, free: 0.5625 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.805e-05/0.4825, allocations: 8.375 kB / 454.6 MB, free: 0.5586 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.621e-06/0.4825, allocations: 4 kB / 454.6 MB, free: 0.5547 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.799e-06/0.4826, allocations: 0 / 454.6 MB, free: 0.5547 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.4826, allocations: 3.938 kB / 454.6 MB, free: 0.5508 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000264/0.4828, allocations: 197.6 kB / 454.8 MB, free: 316 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.4829, allocations: 0 / 454.8 MB, free: 316 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001925/0.4831, allocations: 23.92 kB / 454.8 MB, free: 292 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.966e-06/0.4831, allocations: 0 / 454.8 MB, free: 292 kB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.19e-05/0.4831, allocations: 0 / 454.8 MB, free: 292 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.37e-06/0.4831, allocations: 4 kB / 454.8 MB, free: 288 kB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.4831, allocations: 0 / 454.8 MB, free: 288 kB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002963/0.4834, allocations: 195.4 kB / 455 MB, free: 76 kB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.995e-05/0.4835, allocations: 81.17 kB / 455.1 MB, free: 15.98 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.918e-05/0.4835, allocations: 0 / 455.1 MB, free: 15.98 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.408e-05/0.4837, allocations: 7.906 kB / 455.1 MB, free: 15.97 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.611e-05/0.4837, allocations: 3.984 kB / 455.1 MB, free: 15.96 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.388e-05/0.4837, allocations: 8 kB / 455.1 MB, free: 15.96 MB / 346.7 MB Notification: Performance of sorting global known variables: time 6.026e-05/0.4838, allocations: 87.47 kB / 455.2 MB, free: 15.87 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.4838, allocations: 0 / 455.2 MB, free: 15.87 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003256/0.4841, allocations: 27.94 kB / 455.2 MB, free: 15.84 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.0005933/0.4847, allocations: 0.7223 MB / 455.9 MB, free: 15.1 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001951/0.4849, allocations: 63.89 kB / 456 MB, free: 15.04 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.485, allocations: 0 / 456 MB, free: 15.04 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 6.196e-05/0.485, allocations: 27.94 kB / 456 MB, free: 15.01 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002476/0.4853, allocations: 0 / 456 MB, free: 15.01 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001372/0.4867, allocations: 0.9369 MB / 457 MB, free: 14 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003377/0.487, allocations: 0.6972 MB / 457.7 MB, free: 13.28 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.273e-05/0.4871, allocations: 23.77 kB / 457.7 MB, free: 13.26 MB / 346.7 MB Notification: Performance of SimCode: time 1.022e-06/0.4871, allocations: 0 / 457.7 MB, free: 13.26 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.401/2.888, allocations: 1.328 MB / 459 MB, free: 11.93 MB / 346.7 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