Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.FluidHeatFlow.Examples.TwoMass,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",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.001251/0.001251, allocations: 93.27 kB / 16.3 MB, free: 6.133 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.001466/0.001466, allocations: 179 kB / 17.2 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.388/1.388, allocations: 223.2 MB / 241.1 MB, free: 14.67 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002564/0.0002564, allocations: 4 kB / 300.8 MB, free: 6.148 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1117/0.112, allocations: 50.42 MB / 351.2 MB, free: 3.723 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.004072/0.1161, allocations: 3.991 MB / 355.2 MB, free: 15.71 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002297/0.1184, allocations: 1.244 MB / 356.5 MB, free: 14.46 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000346/0.1188, allocations: 7.938 kB / 356.5 MB, free: 14.45 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002553/0.119, allocations: 103.2 kB / 356.6 MB, free: 14.35 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005827/0.1196, allocations: 347 kB / 356.9 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003624/0.12, allocations: 167.7 kB / 357.1 MB, free: 13.85 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008838/0.1209, allocations: 0.7918 MB / 357.9 MB, free: 13.06 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003544/0.1213, allocations: 266.6 kB / 358.1 MB, free: 12.79 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003611/0.1216, allocations: 374.7 kB / 358.5 MB, free: 12.42 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004646/0.1221, allocations: 442.2 kB / 358.9 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001057/0.1222, allocations: 63.94 kB / 359 MB, free: 11.92 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001235/0.1224, allocations: 60 kB / 359.1 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001529/0.1225, allocations: 171.4 kB / 359.2 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000183/0.1227, allocations: 197.3 kB / 359.4 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007896/0.1235, allocations: 0.8296 MB / 360.2 MB, free: 10.66 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.1235, allocations: 0 / 360.2 MB, free: 10.66 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.033e-06/0.1235, allocations: 0 / 360.2 MB, free: 10.66 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.193e-05/0.1235, allocations: 0 / 360.2 MB, free: 10.66 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.002275/0.1258, allocations: 1.204 MB / 361.4 MB, free: 9.387 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.325e-05/0.1259, allocations: 11.97 kB / 361.5 MB, free: 9.375 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001975/0.1261, allocations: 119.6 kB / 361.6 MB, free: 9.25 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001938/0.1263, allocations: 106.9 kB / 361.7 MB, free: 9.145 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009018/0.1272, allocations: 0.5279 MB / 362.2 MB, free: 8.578 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000289/0.1275, allocations: 170.4 kB / 362.4 MB, free: 8.391 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.241e-05/0.1276, allocations: 64 kB / 362.4 MB, free: 8.328 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001414/0.129, allocations: 0.886 MB / 363.3 MB, free: 7.34 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.184e-05/0.1291, allocations: 3.906 kB / 363.3 MB, free: 7.336 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.645e-05/0.1291, allocations: 35.94 kB / 363.4 MB, free: 7.301 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.341e-05/0.1292, allocations: 12 kB / 363.4 MB, free: 7.289 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001453/0.1306, allocations: 0.6649 MB / 364 MB, free: 6.621 MB / 302.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003164/0.1338, allocations: 2.061 MB / 366.1 MB, free: 4.457 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001393/0.1352, allocations: 0.8891 MB / 367 MB, free: 3.508 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.294e-05/0.1353, allocations: 16.62 kB / 367 MB, free: 3.492 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.868e-05/0.1353, allocations: 55.22 kB / 367.1 MB, free: 3.43 MB / 302.1 MB Notification: Performance of pre-optimization done (n=73): time 3.957e-06/0.1353, allocations: 0 / 367.1 MB, free: 3.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=73): time 0.0052/0.1405, allocations: 1.987 MB / 369 MB, free: 1.352 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002992/0.1409, allocations: 0.8234 MB / 369.9 MB, free: 340 kB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2019/0.3428, allocations: 0.5707 MB / 370.4 MB, free: 24.61 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002064/0.343, allocations: 45.81 kB / 370.5 MB, free: 24.58 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002903/0.3433, allocations: 346.5 kB / 370.8 MB, free: 24.5 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002245/0.3436, allocations: 258.5 kB / 371.1 MB, free: 24.41 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.853e-05/0.3436, allocations: 13.97 kB / 371.1 MB, free: 24.41 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001379/0.3438, allocations: 385.7 kB / 371.5 MB, free: 24.09 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008164/0.3446, allocations: 301.2 kB / 371.8 MB, free: 24.09 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009618/0.3456, allocations: 0.5774 MB / 372.3 MB, free: 23.82 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009199/0.3465, allocations: 430 kB / 372.8 MB, free: 23.72 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.129e-06/0.3465, allocations: 1.344 kB / 372.8 MB, free: 23.72 MB / 302.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.003006/0.3495, allocations: 1.194 MB / 374 MB, free: 23.5 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.021e-05/0.3496, allocations: 86.17 kB / 374 MB, free: 23.4 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.3496, allocations: 1.312 kB / 374 MB, free: 23.4 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007047/0.3503, allocations: 256 kB / 374.3 MB, free: 23.36 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006649/0.351, allocations: 148 kB / 374.4 MB, free: 23.36 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006547/0.3575, allocations: 6.583 MB / 381 MB, free: 17.52 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001013/0.3586, allocations: 119 kB / 381.1 MB, free: 17.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.696e-05/0.3587, allocations: 22.05 kB / 381.2 MB, free: 17.48 MB / 302.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 (69): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 3,1 1,3 3,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0003629/0.359, allocations: 226.7 kB / 381.4 MB, free: 17.29 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000148/0.3592, allocations: 93.42 kB / 381.5 MB, free: 17.25 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001759/0.3594, allocations: 89.92 kB / 381.6 MB, free: 17.18 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.305e-05/0.3594, allocations: 8.125 kB / 381.6 MB, free: 17.18 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.06e-05/0.3594, allocations: 6.688 kB / 381.6 MB, free: 17.18 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002633/0.362, allocations: 1.335 MB / 382.9 MB, free: 16.37 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004277/0.3663, allocations: 1.979 MB / 384.9 MB, free: 15.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.08e-06/0.3664, allocations: 0 / 384.9 MB, free: 15.48 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007583/0.3671, allocations: 157 kB / 385 MB, free: 15.47 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000578/0.3677, allocations: 211 kB / 385.2 MB, free: 15.41 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.759e-05/0.3678, allocations: 17.7 kB / 385.3 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005974/0.3738, allocations: 5.132 MB / 390.4 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.3738, allocations: 0.7969 kB / 390.4 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003766/0.3776, allocations: 1.52 MB / 391.9 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004457/0.378, allocations: 233.9 kB / 392.1 MB, free: 10.17 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001095/0.3782, allocations: 22.92 kB / 392.2 MB, free: 10.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006724/0.3788, allocations: 70.2 kB / 392.2 MB, free: 10.14 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001839/0.379, allocations: 66.45 kB / 392.3 MB, free: 10.12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.856e-05/0.3791, allocations: 18.39 kB / 392.3 MB, free: 10.12 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004784/0.3796, allocations: 413.2 kB / 392.7 MB, free: 9.934 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3796, allocations: 4 kB / 392.7 MB, free: 9.93 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.00105/0.3806, allocations: 281 kB / 393 MB, free: 9.887 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (pipe1.T,pipe2.T,pipe3.T,heatCapacitor1.T,heatCapacitor2.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 (61): * Single equations (assignments): 58 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,1 3,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.003568/0.3842, allocations: 2.101 MB / 395.1 MB, free: 8.719 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002033/0.3863, allocations: 1.411 MB / 396.5 MB, free: 7.816 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 8.617e-06/0.3863, allocations: 3.969 kB / 396.5 MB, free: 7.816 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001312/0.3876, allocations: 0.8073 MB / 397.3 MB, free: 7.336 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009389/0.3886, allocations: 213.1 kB / 397.5 MB, free: 7.258 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003386/0.392, allocations: 2.698 MB / 400.2 MB, free: 5.23 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003449/0.3923, allocations: 0.9626 MB / 401.2 MB, free: 4.406 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004039/0.3927, allocations: 88.12 kB / 401.3 MB, free: 4.363 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003084/0.3931, allocations: 293 kB / 401.6 MB, free: 4.121 MB / 302.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3931, allocations: 0 / 401.6 MB, free: 4.121 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04112/0.4342, allocations: 22.02 MB / 423.6 MB, free: 15.29 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001807/0.4344, allocations: 204.9 kB / 423.8 MB, free: 15.05 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.548/2.983, allocations: 8.094 kB / 423.8 MB, free: 15.04 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat does not exist to compare? outputFormat=mat