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.0009146/0.0009146, allocations: 96.86 kB / 16.95 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.001084/0.001084, allocations: 177.6 kB / 17.84 MB, free: 5.633 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.562/1.562, allocations: 205.4 MB / 224 MB, free: 13.16 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.0004872/0.0004873, allocations: 15.98 kB / 280.9 MB, free: 3.629 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1088/0.1093, allocations: 47.58 MB / 328.5 MB, free: 3.977 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.TwoMasses): time 0.001798/0.1112, allocations: 1.303 MB / 329.8 MB, free: 2.66 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007962/0.112, allocations: 0.4892 MB / 330.2 MB, free: 2.164 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.795e-05/0.1121, allocations: 8 kB / 330.3 MB, free: 2.156 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 2.91e-05/0.1121, allocations: 7.922 kB / 330.3 MB, free: 2.148 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 6.95e-05/0.1122, allocations: 23.78 kB / 330.3 MB, free: 2.125 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001866/0.1124, allocations: 19.97 kB / 330.3 MB, free: 2.105 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001112/0.1125, allocations: 95.53 kB / 330.4 MB, free: 2.012 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001263/0.1126, allocations: 27.97 kB / 330.4 MB, free: 1.984 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.479e-05/0.1127, allocations: 35.84 kB / 330.5 MB, free: 1.949 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.554e-05/0.1128, allocations: 27.92 kB / 330.5 MB, free: 1.922 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 1.506e-05/0.1128, allocations: 8 kB / 330.5 MB, free: 1.914 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.158e-05/0.1129, allocations: 11.98 kB / 330.5 MB, free: 1.902 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 2.239e-05/0.1129, allocations: 15.94 kB / 330.5 MB, free: 1.887 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 3.54e-05/0.1129, allocations: 41.64 kB / 330.6 MB, free: 1.84 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001236/0.1131, allocations: 72.06 kB / 330.6 MB, free: 1.77 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.091e-06/0.1131, allocations: 0 / 330.6 MB, free: 1.77 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.1131, allocations: 0 / 330.6 MB, free: 1.77 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.1131, allocations: 0 / 330.6 MB, free: 1.77 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.0004244/0.1135, allocations: 371.2 kB / 331 MB, free: 1.359 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.779e-05/0.1136, allocations: 12.03 kB / 331 MB, free: 1.348 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.622e-05/0.1136, allocations: 34.56 kB / 331 MB, free: 1.305 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000123/0.1137, allocations: 15.89 kB / 331.1 MB, free: 1.289 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001307/0.1139, allocations: 171 kB / 331.2 MB, free: 1.082 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.663e-05/0.1139, allocations: 8 kB / 331.2 MB, free: 1.074 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.15e-05/0.1139, allocations: 15.84 kB / 331.2 MB, free: 1.059 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00017/0.1141, allocations: 81.66 kB / 331.3 MB, free: 0.9727 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.197e-05/0.1141, allocations: 0 / 331.3 MB, free: 0.9727 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.129e-05/0.1142, allocations: 4 kB / 331.3 MB, free: 0.9688 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.1142, allocations: 7.938 kB / 331.3 MB, free: 0.9609 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001164/0.1143, allocations: 59.88 kB / 331.4 MB, free: 0.9023 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006337/0.1149, allocations: 400.5 kB / 331.8 MB, free: 472 kB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001301/0.1151, allocations: 70.56 kB / 331.9 MB, free: 392 kB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.595e-05/0.1152, allocations: 36.84 kB / 331.9 MB, free: 352 kB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.289e-05/0.1152, allocations: 3.938 kB / 331.9 MB, free: 348 kB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.712e-05/0.1152, allocations: 30.56 kB / 331.9 MB, free: 308 kB / 270.1 MB Notification: Performance of pre-optimization done (n=8): time 1.132e-06/0.1152, allocations: 0 / 331.9 MB, free: 308 kB / 270.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002026/0.1154, allocations: 86.06 kB / 332 MB, free: 216 kB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.463e-05/0.1155, allocations: 51.41 kB / 332.1 MB, free: 152 kB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.502e-05/0.1156, allocations: 113.8 kB / 332.2 MB, free: 28 kB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.562e-05/0.1156, allocations: 29.7 kB / 332.2 MB, free: 15.99 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.532e-05/0.1157, allocations: 107.8 kB / 332.3 MB, free: 15.88 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.516e-05/0.1157, allocations: 31.64 kB / 332.3 MB, free: 15.85 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.198e-06/0.1157, allocations: 0 / 332.3 MB, free: 15.85 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001337/0.1159, allocations: 314.8 kB / 332.6 MB, free: 15.54 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.061e-05/0.1159, allocations: 19.98 kB / 332.7 MB, free: 15.52 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.669e-05/0.116, allocations: 50.5 kB / 332.7 MB, free: 15.46 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.444e-05/0.116, allocations: 28 kB / 332.7 MB, free: 15.43 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.116, allocations: 0 / 332.7 MB, free: 15.43 MB / 286.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001542/0.1162, allocations: 109.4 kB / 332.8 MB, free: 15.32 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.34e-05/0.1162, allocations: 4 kB / 332.9 MB, free: 15.31 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.515e-06/0.1162, allocations: 8.312 kB / 332.9 MB, free: 15.3 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.161e-05/0.1162, allocations: 0 / 332.9 MB, free: 15.3 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001221/0.1164, allocations: 27.98 kB / 332.9 MB, free: 15.28 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.335e-06/0.1164, allocations: 3.984 kB / 332.9 MB, free: 15.27 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.727e-05/0.1165, allocations: 15.97 kB / 332.9 MB, free: 15.26 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.04e-05/0.1165, allocations: 7.953 kB / 332.9 MB, free: 15.25 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 9.435e-05/0.1166, allocations: 125.7 kB / 333 MB, free: 15.12 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.424e-05/0.1166, allocations: 4 kB / 333 MB, free: 15.11 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.102e-05/0.1166, allocations: 12.38 kB / 333.1 MB, free: 15.1 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.1166, allocations: 0 / 333.1 MB, free: 15.1 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.1167, allocations: 0 / 333.1 MB, free: 15.1 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.1167, allocations: 4 kB / 333.1 MB, free: 15.1 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002073/0.1169, allocations: 193.5 kB / 333.2 MB, free: 14.86 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.1169, allocations: 0 / 333.2 MB, free: 14.86 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.949e-05/0.117, allocations: 19.98 kB / 333.3 MB, free: 14.84 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.117, allocations: 0 / 333.3 MB, free: 14.84 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.647e-06/0.117, allocations: 0 / 333.3 MB, free: 14.84 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.117, allocations: 0 / 333.3 MB, free: 14.84 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.117, allocations: 4 kB / 333.3 MB, free: 14.84 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002148/0.1172, allocations: 199.3 kB / 333.5 MB, free: 14.62 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.715e-05/0.1173, allocations: 89.11 kB / 333.6 MB, free: 14.52 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.455e-05/0.1173, allocations: 0 / 333.6 MB, free: 14.52 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.978e-05/0.1174, allocations: 4 kB / 333.6 MB, free: 14.52 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.621e-05/0.1174, allocations: 4 kB / 333.6 MB, free: 14.51 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.99e-06/0.1174, allocations: 4 kB / 333.6 MB, free: 14.51 MB / 286.1 MB Notification: Performance of sorting global known variables: time 4.662e-05/0.1175, allocations: 83.27 kB / 333.6 MB, free: 14.43 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1175, allocations: 0 / 333.6 MB, free: 14.43 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002357/0.1177, allocations: 23.94 kB / 333.7 MB, free: 14.4 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.000418/0.1182, allocations: 0.7318 MB / 334.4 MB, free: 13.64 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001245/0.1183, allocations: 59.91 kB / 334.5 MB, free: 13.58 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.1183, allocations: 0 / 334.5 MB, free: 13.58 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 3.345e-05/0.1183, allocations: 23.98 kB / 334.5 MB, free: 13.56 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002804/0.1186, allocations: 8 kB / 334.5 MB, free: 13.55 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001014/0.1196, allocations: 0.696 MB / 335.2 MB, free: 12.8 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002946/0.12, allocations: 0.6926 MB / 335.9 MB, free: 12.08 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 3.855e-05/0.12, allocations: 11.89 kB / 335.9 MB, free: 12.07 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.777e-05/0.1201, allocations: 23.42 kB / 335.9 MB, free: 12.05 MB / 286.1 MB Notification: Performance of SimCode: time 5.1e-07/0.1201, allocations: 4 kB / 335.9 MB, free: 12.05 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01273/0.1328, allocations: 1.517 MB / 337.4 MB, free: 10.54 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00026/0.1331, allocations: 193.8 kB / 337.6 MB, free: 10.29 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.794/1.927, allocations: 0 / 337.6 MB, free: 10.29 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