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.0009659/0.0009661, allocations: 88.16 kB / 16.31 MB, free: 5.543 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.00114/0.00114, allocations: 181.5 kB / 17.21 MB, free: 5.461 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.413/1.413, allocations: 223.2 MB / 241.2 MB, free: 368 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002999/0.0003, allocations: 4 kB / 300.9 MB, free: 6.367 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09557/0.09589, allocations: 50.42 MB / 351.3 MB, free: 3.934 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.004228/0.1002, allocations: 4.22 MB / 355.6 MB, free: 15.69 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002027/0.1022, allocations: 1.278 MB / 356.8 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002342/0.1025, allocations: 7.938 kB / 356.8 MB, free: 14.4 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002909/0.1028, allocations: 103.2 kB / 356.9 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005964/0.1034, allocations: 293.9 kB / 357.2 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000364/0.1037, allocations: 171.7 kB / 357.4 MB, free: 13.84 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008434/0.1046, allocations: 0.8975 MB / 358.3 MB, free: 12.94 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003518/0.105, allocations: 261.6 kB / 358.5 MB, free: 12.67 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00044/0.1054, allocations: 358.7 kB / 358.9 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004029/0.1058, allocations: 402.3 kB / 359.3 MB, free: 11.92 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000101/0.1059, allocations: 56 kB / 359.3 MB, free: 11.87 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001177/0.106, allocations: 60 kB / 359.4 MB, free: 11.81 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000134/0.1062, allocations: 159.4 kB / 359.6 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001659/0.1064, allocations: 185.3 kB / 359.7 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000612/0.107, allocations: 0.7829 MB / 360.5 MB, free: 10.68 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.107, allocations: 0 / 360.5 MB, free: 10.68 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.107, allocations: 0 / 360.5 MB, free: 10.68 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.007e-05/0.107, allocations: 4 kB / 360.5 MB, free: 10.68 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.001842/0.1089, allocations: 1.08 MB / 361.6 MB, free: 9.531 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.91e-05/0.1089, allocations: 16.03 kB / 361.6 MB, free: 9.516 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001627/0.1091, allocations: 107.7 kB / 361.7 MB, free: 9.402 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001428/0.1092, allocations: 98.88 kB / 361.8 MB, free: 9.305 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006954/0.1099, allocations: 0.492 MB / 362.3 MB, free: 8.766 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000147/0.1101, allocations: 100.7 kB / 362.4 MB, free: 8.656 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.908e-05/0.1102, allocations: 56 kB / 362.5 MB, free: 8.602 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001261/0.1114, allocations: 0.8166 MB / 363.3 MB, free: 7.68 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.902e-05/0.1115, allocations: 0 / 363.3 MB, free: 7.68 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.047e-05/0.1115, allocations: 31.95 kB / 363.3 MB, free: 7.648 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.204e-05/0.1116, allocations: 12 kB / 363.3 MB, free: 7.637 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001155/0.1127, allocations: 0.5399 MB / 363.9 MB, free: 7.098 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.00363/0.1164, allocations: 2.19 MB / 366.1 MB, free: 4.77 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001274/0.1177, allocations: 0.5732 MB / 366.6 MB, free: 4.18 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005929/0.1183, allocations: 274.4 kB / 366.9 MB, free: 3.91 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.824e-05/0.1183, allocations: 9.641 kB / 366.9 MB, free: 3.902 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008016/0.1191, allocations: 347 kB / 367.3 MB, free: 3.551 MB / 302.1 MB Notification: Performance of pre-optimization done (n=56): time 5.48e-06/0.1191, allocations: 0 / 367.3 MB, free: 3.551 MB / 302.1 MB Notification: Performance of matching and sorting (n=56): time 0.004824/0.124, allocations: 1.579 MB / 368.8 MB, free: 1.922 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004452/0.1244, allocations: 0.8271 MB / 369.7 MB, free: 0.8984 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008109/0.1253, allocations: 0.5823 MB / 370.2 MB, free: 316 kB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.172e-05/0.1254, allocations: 45.7 kB / 370.3 MB, free: 264 kB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.1805/0.3058, allocations: 338.5 kB / 370.6 MB, free: 25 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002804/0.3062, allocations: 189.9 kB / 370.8 MB, free: 24.94 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.472e-05/0.3062, allocations: 11.84 kB / 370.8 MB, free: 24.94 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002264/0.3064, allocations: 382.1 kB / 371.2 MB, free: 24.63 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007065/0.3072, allocations: 223.8 kB / 371.4 MB, free: 24.63 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008231/0.308, allocations: 0.5323 MB / 371.9 MB, free: 24.31 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006151/0.3086, allocations: 319 kB / 372.2 MB, free: 24.25 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.3086, allocations: 4.672 kB / 372.3 MB, free: 24.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001995/0.3106, allocations: 0.8664 MB / 373.1 MB, free: 24.08 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.4e-05/0.3107, allocations: 66.14 kB / 373.2 MB, free: 24.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.297e-05/0.3107, allocations: 3.391 kB / 373.2 MB, free: 24.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007575/0.3115, allocations: 230.9 kB / 373.4 MB, free: 24 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005914/0.3121, allocations: 119.1 kB / 373.5 MB, free: 23.99 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005754/0.3178, allocations: 4.287 MB / 377.8 MB, free: 20.99 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007836/0.3187, allocations: 92.59 kB / 377.9 MB, free: 20.96 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.751e-05/0.3187, allocations: 26.23 kB / 377.9 MB, free: 20.95 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.000307/0.319, allocations: 216.1 kB / 378.1 MB, free: 20.78 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.96e-05/0.3191, allocations: 77.58 kB / 378.2 MB, free: 20.75 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001381/0.3193, allocations: 76.75 kB / 378.3 MB, free: 20.69 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.494e-06/0.3193, allocations: 6.094 kB / 378.3 MB, free: 20.69 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.074e-05/0.3193, allocations: 4.062 kB / 378.3 MB, free: 20.69 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002031/0.3214, allocations: 1.102 MB / 379.4 MB, free: 19.95 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002787/0.3242, allocations: 1.575 MB / 381 MB, free: 19.12 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.018e-06/0.3242, allocations: 5.25 kB / 381 MB, free: 19.12 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006898/0.3249, allocations: 112.4 kB / 381.1 MB, free: 19.11 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005163/0.3254, allocations: 173.6 kB / 381.3 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.447e-05/0.3254, allocations: 13.81 kB / 381.3 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004116/0.3296, allocations: 3.675 MB / 385 MB, free: 15.94 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.3296, allocations: 1.062 kB / 385 MB, free: 15.94 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002378/0.332, allocations: 1.068 MB / 386 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003351/0.3323, allocations: 218.6 kB / 386.2 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.63e-05/0.3324, allocations: 15.61 kB / 386.2 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005451/0.333, allocations: 50.27 kB / 386.3 MB, free: 15.26 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001598/0.3332, allocations: 63.08 kB / 386.4 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.032e-05/0.3332, allocations: 20.88 kB / 386.4 MB, free: 15.23 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006051/0.3338, allocations: 412.3 kB / 386.8 MB, free: 15.04 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3338, allocations: 1.031 kB / 386.8 MB, free: 15.04 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001164/0.335, allocations: 250 kB / 387 MB, free: 15 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.002502/0.3375, allocations: 1.633 MB / 388.7 MB, free: 13.98 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002336/0.3399, allocations: 1.057 MB / 389.7 MB, free: 13.38 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 8.777e-06/0.3399, allocations: 2.875 kB / 389.7 MB, free: 13.38 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001016/0.3409, allocations: 0.5627 MB / 390.3 MB, free: 13.03 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001089/0.342, allocations: 203.4 kB / 390.5 MB, free: 12.95 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007015/0.349, allocations: 4.327 MB / 394.8 MB, free: 10.8 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003832/0.3495, allocations: 0.9195 MB / 395.7 MB, free: 10.05 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004877/0.35, allocations: 88.8 kB / 395.8 MB, free: 10 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002867/0.3502, allocations: 265.7 kB / 396.1 MB, free: 9.785 MB / 302.1 MB Notification: Performance of SimCode: time 9.02e-07/0.3503, allocations: 0 / 396.1 MB, free: 9.785 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03627/0.3865, allocations: 20.45 MB / 416.5 MB, free: 7.094 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001945/0.3868, allocations: 231.7 kB / 416.8 MB, free: 6.84 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.526/2.912, allocations: 3.938 kB / 416.8 MB, free: 6.836 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