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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001125/0.001125, allocations: 94.03 kB / 16.93 MB, free: 5.984 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001194/0.001194, allocations: 180.1 kB / 17.82 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.628/1.628, allocations: 205.4 MB / 224 MB, free: 13.17 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005319/0.0005319, allocations: 16 kB / 280.8 MB, free: 3.645 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.1132, allocations: 47.57 MB / 328.4 MB, free: 4 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.TwoMasses): time 0.001853/0.1151, allocations: 1.274 MB / 329.7 MB, free: 2.715 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008503/0.116, allocations: 496.2 kB / 330.2 MB, free: 2.223 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.265e-05/0.116, allocations: 4 kB / 330.2 MB, free: 2.219 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 3.971e-05/0.1161, allocations: 11.92 kB / 330.2 MB, free: 2.207 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 7.915e-05/0.1162, allocations: 27.92 kB / 330.2 MB, free: 2.18 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002189/0.1164, allocations: 31.91 kB / 330.2 MB, free: 2.148 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001162/0.1165, allocations: 67.84 kB / 330.3 MB, free: 2.082 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00015/0.1167, allocations: 31.95 kB / 330.3 MB, free: 2.051 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.878e-05/0.1167, allocations: 27.92 kB / 330.4 MB, free: 2.023 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.922e-05/0.1168, allocations: 31.86 kB / 330.4 MB, free: 1.992 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 1.688e-05/0.1169, allocations: 4 kB / 330.4 MB, free: 1.988 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.414e-05/0.1169, allocations: 8 kB / 330.4 MB, free: 1.98 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 2.164e-05/0.117, allocations: 19.97 kB / 330.4 MB, free: 1.961 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 4.585e-05/0.117, allocations: 45.64 kB / 330.5 MB, free: 1.91 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000126/0.1172, allocations: 72.08 kB / 330.6 MB, free: 1.84 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.1172, allocations: 0 / 330.6 MB, free: 1.84 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.384e-06/0.1172, allocations: 0 / 330.6 MB, free: 1.84 MB / 270.1 MB Notification: Performance of Transformations before backend: time 4.549e-06/0.1172, allocations: 0 / 330.6 MB, free: 1.84 MB / 270.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.000486/0.1177, allocations: 359.2 kB / 330.9 MB, free: 1.441 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.916e-05/0.1177, allocations: 16.02 kB / 330.9 MB, free: 1.426 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.443e-05/0.1178, allocations: 34.56 kB / 331 MB, free: 1.383 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001327/0.1179, allocations: 15.91 kB / 331 MB, free: 1.367 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001537/0.1181, allocations: 178.9 kB / 331.1 MB, free: 1.152 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.707e-05/0.1181, allocations: 8 kB / 331.1 MB, free: 1.145 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.078e-05/0.1181, allocations: 11.91 kB / 331.2 MB, free: 1.133 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001859/0.1183, allocations: 73.67 kB / 331.2 MB, free: 1.055 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.13e-05/0.1184, allocations: 0 / 331.2 MB, free: 1.055 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.594e-05/0.1184, allocations: 8 kB / 331.2 MB, free: 1.047 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.29e-06/0.1184, allocations: 0 / 331.2 MB, free: 1.047 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001119/0.1185, allocations: 55.92 kB / 331.3 MB, free: 0.9922 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006947/0.1192, allocations: 404.6 kB / 331.7 MB, free: 0.5469 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001312/0.1194, allocations: 66.5 kB / 331.8 MB, free: 484 kB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.907e-06/0.1194, allocations: 7.938 kB / 331.8 MB, free: 476 kB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.911e-05/0.1194, allocations: 38.56 kB / 331.8 MB, free: 428 kB / 270.1 MB Notification: Performance of pre-optimization done (n=8): time 1.002e-06/0.1194, allocations: 0 / 331.8 MB, free: 428 kB / 270.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002018/0.1196, allocations: 85.83 kB / 331.9 MB, free: 336 kB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.663e-05/0.1197, allocations: 63.27 kB / 331.9 MB, free: 260 kB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.405e-05/0.1198, allocations: 101.9 kB / 332 MB, free: 148 kB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 1.387e-05/0.1198, allocations: 25.7 kB / 332.1 MB, free: 116 kB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.295e-05/0.1199, allocations: 111.8 kB / 332.2 MB, free: 0 / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.919e-05/0.1199, allocations: 27.81 kB / 332.2 MB, free: 15.97 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.192e-06/0.1199, allocations: 8 kB / 332.2 MB, free: 15.96 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001321/0.1201, allocations: 314.6 kB / 332.5 MB, free: 15.65 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.064e-05/0.1201, allocations: 23.98 kB / 332.5 MB, free: 15.62 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.938e-05/0.1202, allocations: 50.56 kB / 332.6 MB, free: 15.57 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.994e-05/0.1202, allocations: 23.94 kB / 332.6 MB, free: 15.54 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.1202, allocations: 0 / 332.6 MB, free: 15.54 MB / 286.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001491/0.1204, allocations: 113.5 kB / 332.7 MB, free: 15.43 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.412e-05/0.1204, allocations: 4 kB / 332.7 MB, free: 15.42 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.1204, allocations: 0 / 332.7 MB, free: 15.42 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.079e-05/0.1204, allocations: 4 kB / 332.7 MB, free: 15.42 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001263/0.1206, allocations: 27.92 kB / 332.8 MB, free: 15.39 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.079e-06/0.1206, allocations: 0 / 332.8 MB, free: 15.39 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.702e-05/0.1207, allocations: 12.16 kB / 332.8 MB, free: 15.38 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.195e-05/0.1207, allocations: 11.95 kB / 332.8 MB, free: 15.37 MB / 286.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 () * 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.0001611/0.1208, allocations: 125.8 kB / 332.9 MB, free: 15.23 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.513e-05/0.1209, allocations: 7.984 kB / 332.9 MB, free: 15.23 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.223e-05/0.1209, allocations: 8.375 kB / 332.9 MB, free: 15.22 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.1209, allocations: 0 / 332.9 MB, free: 15.22 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.83e-06/0.1209, allocations: 0 / 332.9 MB, free: 15.22 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.1209, allocations: 0 / 332.9 MB, free: 15.22 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002088/0.1211, allocations: 197.6 kB / 333.1 MB, free: 14.98 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/0.1212, allocations: 0 / 333.1 MB, free: 14.98 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001017/0.1213, allocations: 23.92 kB / 333.1 MB, free: 14.95 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.1213, allocations: 0 / 333.1 MB, free: 14.95 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.518e-06/0.1213, allocations: 0 / 333.1 MB, free: 14.95 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.1213, allocations: 4 kB / 333.1 MB, free: 14.95 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.1213, allocations: 0 / 333.1 MB, free: 14.95 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000219/0.1215, allocations: 195.4 kB / 333.3 MB, free: 14.74 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.322e-05/0.1216, allocations: 85.05 kB / 333.4 MB, free: 14.64 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.455e-05/0.1216, allocations: 0 / 333.4 MB, free: 14.64 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.894e-05/0.1217, allocations: 0 / 333.4 MB, free: 14.64 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.97e-05/0.1217, allocations: 4 kB / 333.4 MB, free: 14.64 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.989e-06/0.1217, allocations: 8.047 kB / 333.4 MB, free: 14.63 MB / 286.1 MB Notification: Performance of sorting global known variables: time 4.566e-05/0.1218, allocations: 87.28 kB / 333.5 MB, free: 14.54 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1218, allocations: 0 / 333.5 MB, free: 14.54 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002394/0.122, allocations: 27.88 kB / 333.5 MB, free: 14.52 MB / 286.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 () * 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.0004954/0.1225, allocations: 0.724 MB / 334.3 MB, free: 13.76 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001291/0.1227, allocations: 64.39 kB / 334.3 MB, free: 13.7 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.1227, allocations: 0 / 334.3 MB, free: 13.7 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 4.605e-05/0.1227, allocations: 31.92 kB / 334.4 MB, free: 13.67 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002187/0.123, allocations: 0 / 334.4 MB, free: 13.67 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001028/0.124, allocations: 0.8887 MB / 335.3 MB, free: 12.72 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003063/0.1243, allocations: 0.6965 MB / 335.9 MB, free: 12 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 3.991e-05/0.1244, allocations: 11.94 kB / 336 MB, free: 11.99 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.302e-05/0.1244, allocations: 19.44 kB / 336 MB, free: 11.97 MB / 286.1 MB Notification: Performance of SimCode: time 3.5e-07/0.1244, allocations: 0 / 336 MB, free: 11.97 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01361/0.138, allocations: 1.504 MB / 337.5 MB, free: 10.48 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002888/0.1384, allocations: 180.7 kB / 337.7 MB, free: 10.24 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.674/1.813, allocations: 0 / 337.7 MB, free: 10.24 MB / 286.1 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) Environment - environmentSimulation: 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