Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.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.WaterPump,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",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.001057/0.001057, allocations: 93.61 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.001125/0.001125, allocations: 179.3 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.392/1.392, allocations: 223.2 MB / 241.1 MB, free: 304 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002967/0.0002969, allocations: 4 kB / 300.8 MB, free: 6.383 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.1089, allocations: 50.41 MB / 351.2 MB, free: 3.961 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.004581/0.1135, allocations: 3.866 MB / 355.1 MB, free: 76 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002615/0.1162, allocations: 1.321 MB / 356.4 MB, free: 14.75 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005696/0.1168, allocations: 11.94 kB / 356.4 MB, free: 14.73 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005109/0.1173, allocations: 95.28 kB / 356.5 MB, free: 14.64 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001063/0.1184, allocations: 355 kB / 356.9 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004849/0.1189, allocations: 167.7 kB / 357 MB, free: 14.13 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001292/0.1202, allocations: 0.702 MB / 357.7 MB, free: 13.43 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003705/0.1206, allocations: 241.7 kB / 358 MB, free: 13.17 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004698/0.1211, allocations: 338.9 kB / 358.3 MB, free: 12.84 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004076/0.1215, allocations: 382.4 kB / 358.7 MB, free: 12.46 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.592e-05/0.1216, allocations: 52 kB / 358.7 MB, free: 12.41 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001203/0.1217, allocations: 48 kB / 358.8 MB, free: 12.37 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002305/0.122, allocations: 143.4 kB / 358.9 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001794/0.1222, allocations: 193.3 kB / 359.1 MB, free: 12.03 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007816/0.1229, allocations: 0.7362 MB / 359.8 MB, free: 11.29 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.123, allocations: 0 / 359.8 MB, free: 11.29 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.495e-06/0.123, allocations: 0 / 359.8 MB, free: 11.29 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.335e-05/0.123, allocations: 0 / 359.8 MB, free: 11.29 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: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.002045/0.125, allocations: 1.072 MB / 360.9 MB, free: 10.16 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.561e-05/0.1251, allocations: 15.97 kB / 360.9 MB, free: 10.14 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001757/0.1253, allocations: 103.7 kB / 361 MB, free: 10.03 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001604/0.1254, allocations: 98.88 kB / 361.1 MB, free: 9.934 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007461/0.1262, allocations: 467.8 kB / 361.6 MB, free: 9.43 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001412/0.1264, allocations: 104.7 kB / 361.7 MB, free: 9.316 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001983/0.1266, allocations: 56 kB / 361.7 MB, free: 9.262 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001284/0.1279, allocations: 0.8088 MB / 362.5 MB, free: 8.348 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.676e-05/0.1279, allocations: 0 / 362.5 MB, free: 8.348 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.257e-05/0.128, allocations: 27.95 kB / 362.6 MB, free: 8.32 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.294e-05/0.128, allocations: 12 kB / 362.6 MB, free: 8.309 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001346/0.1293, allocations: 0.5399 MB / 363.1 MB, free: 7.77 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.003597/0.1329, allocations: 2.147 MB / 365.3 MB, free: 5.484 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001514/0.1345, allocations: 0.6005 MB / 365.9 MB, free: 4.867 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.165e-05/0.1345, allocations: 17.64 kB / 365.9 MB, free: 4.852 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007508/0.1353, allocations: 339 kB / 366.2 MB, free: 4.512 MB / 302.1 MB Notification: Performance of pre-optimization done (n=56): time 2.806e-06/0.1353, allocations: 3.938 kB / 366.2 MB, free: 4.508 MB / 302.1 MB Notification: Performance of matching and sorting (n=56): time 0.005277/0.1406, allocations: 1.576 MB / 367.8 MB, free: 2.883 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004786/0.1411, allocations: 0.8233 MB / 368.6 MB, free: 1.863 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006921/0.1418, allocations: 0.5315 MB / 369.2 MB, free: 1.324 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.684e-05/0.1419, allocations: 41.7 kB / 369.2 MB, free: 1.277 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002939/0.1422, allocations: 344.7 kB / 369.5 MB, free: 0.9375 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001851/0.1423, allocations: 185.2 kB / 369.7 MB, free: 0.7539 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.367e-05/0.1424, allocations: 12 kB / 369.7 MB, free: 0.7422 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002944/0.1427, allocations: 386.7 kB / 370.1 MB, free: 364 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005882/0.1433, allocations: 225 kB / 370.3 MB, free: 136 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2126/0.3559, allocations: 0.5213 MB / 370.8 MB, free: 24.14 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007989/0.3568, allocations: 324.3 kB / 371.2 MB, free: 24.08 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.983e-06/0.3568, allocations: 5.109 kB / 371.2 MB, free: 24.08 MB / 302.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002178/0.359, allocations: 0.8667 MB / 372 MB, free: 23.95 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001106/0.3591, allocations: 59.41 kB / 372.1 MB, free: 23.89 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.054e-05/0.3592, allocations: 6.547 kB / 372.1 MB, free: 23.89 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007758/0.3599, allocations: 231 kB / 372.3 MB, free: 23.87 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006292/0.3606, allocations: 118 kB / 372.4 MB, free: 23.87 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006321/0.3669, allocations: 4.373 MB / 376.8 MB, free: 21.11 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008583/0.3678, allocations: 90.81 kB / 376.9 MB, free: 21.08 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.804e-05/0.3678, allocations: 33.23 kB / 376.9 MB, free: 21.07 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count,oneWayValve.backward) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {9 3,1 11} Notification: Performance of prepare postOptimizeDAE: time 0.0002964/0.3682, allocations: 212.7 kB / 377.1 MB, free: 20.9 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.796e-05/0.3683, allocations: 76.41 kB / 377.2 MB, free: 20.86 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001297/0.3684, allocations: 79.06 kB / 377.3 MB, free: 20.81 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.903e-06/0.3684, allocations: 6.062 kB / 377.3 MB, free: 20.81 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.3684, allocations: 0 / 377.3 MB, free: 20.81 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002087/0.3705, allocations: 1.097 MB / 378.4 MB, free: 20.07 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002743/0.3733, allocations: 1.598 MB / 380 MB, free: 19.2 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.512e-05/0.3733, allocations: 0 / 380 MB, free: 19.2 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006608/0.374, allocations: 119.4 kB / 380.1 MB, free: 19.19 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005536/0.3746, allocations: 180 kB / 380.3 MB, free: 19.13 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.643e-05/0.3746, allocations: 9.375 kB / 380.3 MB, free: 19.12 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004416/0.379, allocations: 3.73 MB / 384 MB, free: 16 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.3791, allocations: 0 / 384 MB, free: 16 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002516/0.3816, allocations: 1.068 MB / 385.1 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003086/0.3819, allocations: 203.6 kB / 385.3 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.508e-05/0.382, allocations: 14.94 kB / 385.3 MB, free: 15.35 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006328/0.3827, allocations: 54.84 kB / 385.4 MB, free: 15.34 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001639/0.3828, allocations: 55.06 kB / 385.4 MB, free: 15.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.643e-05/0.3829, allocations: 16.66 kB / 385.4 MB, free: 15.32 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005009/0.3834, allocations: 371 kB / 385.8 MB, free: 15.15 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3834, allocations: 0 / 385.8 MB, free: 15.15 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009174/0.3843, allocations: 258.4 kB / 386 MB, free: 15.11 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (speed.phi) * Number of discrete variables: 4 ($whenCondition1,trapezoid.T_start,trapezoid.count,oneWayValve.backward) * Number of discrete states: 1 (trapezoid.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 3,1 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.00265/0.387, allocations: 1.636 MB / 387.7 MB, free: 14.08 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002789/0.3898, allocations: 1.054 MB / 388.7 MB, free: 13.48 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.172e-05/0.3898, allocations: 9.562 kB / 388.7 MB, free: 13.48 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00116/0.391, allocations: 0.5568 MB / 389.3 MB, free: 13.14 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001269/0.3923, allocations: 185.7 kB / 389.5 MB, free: 13.07 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003853/0.3961, allocations: 3.352 MB / 392.8 MB, free: 10.43 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004662/0.3966, allocations: 0.9354 MB / 393.8 MB, free: 9.723 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004242/0.397, allocations: 71.27 kB / 393.8 MB, free: 9.699 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000426/0.3975, allocations: 249.2 kB / 394.1 MB, free: 9.512 MB / 302.1 MB Notification: Performance of SimCode: time 7.41e-07/0.3975, allocations: 0 / 394.1 MB, free: 9.512 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03505/0.4325, allocations: 19.42 MB / 413.5 MB, free: 9.609 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001654/0.4327, allocations: 210 kB / 413.7 MB, free: 9.367 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.438/2.871, allocations: 0 / 413.7 MB, free: 9.367 MB / 318.1 MB (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat does not exist to compare? outputFormat=mat