Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001545/0.00155, allocations: 182.4 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.134/2.134, allocations: 205.4 MB / 222.5 MB, free: 9.105 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001114/0.001114, allocations: 90.88 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004215/0.0004218, allocations: 8 kB / 327 MB, free: 124 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3407/0.3412, allocations: 47.57 MB / 374.6 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.005702/0.3469, allocations: 3.863 MB / 378.5 MB, free: 42.43 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003317/0.3503, allocations: 1.359 MB / 379.8 MB, free: 41.31 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007143/0.3511, allocations: 9.688 kB / 379.9 MB, free: 41.31 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006358/0.3517, allocations: 103.8 kB / 380 MB, free: 41.22 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001708/0.3535, allocations: 357.1 kB / 380.3 MB, free: 40.93 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007761/0.3543, allocations: 161.6 kB / 380.5 MB, free: 40.79 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00174/0.3561, allocations: 0.7095 MB / 381.2 MB, free: 40.36 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005696/0.3567, allocations: 246.8 kB / 381.4 MB, free: 40.2 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008266/0.3575, allocations: 333.1 kB / 381.7 MB, free: 40.04 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005721/0.3581, allocations: 380.8 kB / 382.1 MB, free: 39.8 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001592/0.3583, allocations: 50.47 kB / 382.2 MB, free: 39.8 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002241/0.3585, allocations: 50.94 kB / 382.2 MB, free: 39.8 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001629/0.3587, allocations: 151 kB / 382.4 MB, free: 39.67 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002465/0.359, allocations: 190.5 kB / 382.5 MB, free: 39.57 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009173/0.3599, allocations: 0.7357 MB / 383.3 MB, free: 39.01 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.3599, allocations: 0 / 383.3 MB, free: 39.01 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.264e-06/0.3599, allocations: 0 / 383.3 MB, free: 39.01 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.568e-05/0.36, allocations: 4 kB / 383.3 MB, free: 39.01 MB / 298.7 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.003035/0.363, allocations: 1.08 MB / 384.4 MB, free: 38.15 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.015e-05/0.3631, allocations: 12.88 kB / 384.4 MB, free: 38.14 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002754/0.3634, allocations: 109.2 kB / 384.5 MB, free: 38.05 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002493/0.3636, allocations: 100.3 kB / 384.6 MB, free: 38 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009539/0.3646, allocations: 450.7 kB / 385 MB, free: 37.6 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002046/0.3648, allocations: 107.3 kB / 385.1 MB, free: 37.52 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000131/0.365, allocations: 51.16 kB / 385.2 MB, free: 37.5 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002083/0.3671, allocations: 0.8134 MB / 386 MB, free: 36.86 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.529e-05/0.3671, allocations: 1.25 kB / 386 MB, free: 36.86 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001044/0.3672, allocations: 31.88 kB / 386 MB, free: 36.84 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.932e-05/0.3673, allocations: 12.81 kB / 386 MB, free: 36.84 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002161/0.3695, allocations: 0.5323 MB / 386.6 MB, free: 36.6 MB / 298.7 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.004832/0.3743, allocations: 2.138 MB / 388.7 MB, free: 34.34 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002471/0.3768, allocations: 0.6152 MB / 389.3 MB, free: 33.71 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.57e-05/0.377, allocations: 13.66 kB / 389.3 MB, free: 33.7 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001259/0.3783, allocations: 342.9 kB / 389.7 MB, free: 33.35 MB / 298.7 MB Notification: Performance of pre-optimization done (n=56): time 5.16e-06/0.3783, allocations: 0 / 389.7 MB, free: 33.35 MB / 298.7 MB Notification: Performance of matching and sorting (n=56): time 0.00879/0.3871, allocations: 1.584 MB / 391.2 MB, free: 31.71 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002061/0.3873, allocations: 0.8194 MB / 392.1 MB, free: 30.7 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000813/0.3882, allocations: 0.5238 MB / 392.6 MB, free: 30.17 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001336/0.3883, allocations: 45.7 kB / 392.6 MB, free: 30.12 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002862/0.3886, allocations: 367.1 kB / 393 MB, free: 29.76 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001917/0.3888, allocations: 193.2 kB / 393.2 MB, free: 29.57 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.558e-05/0.3889, allocations: 12 kB / 393.2 MB, free: 29.55 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.671e-05/0.389, allocations: 334.8 kB / 393.5 MB, free: 29.22 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009449/0.3899, allocations: 221 kB / 393.7 MB, free: 29 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001243/0.3912, allocations: 0.5325 MB / 394.3 MB, free: 28.35 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001026/0.3922, allocations: 321.4 kB / 394.6 MB, free: 28.03 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.751e-06/0.3923, allocations: 0 / 394.6 MB, free: 28.03 MB / 298.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002962/0.3952, allocations: 0.8123 MB / 395.4 MB, free: 27.19 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.734e-05/0.3953, allocations: 63.41 kB / 395.5 MB, free: 27.11 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.282e-05/0.3954, allocations: 7.984 kB / 395.5 MB, free: 27.11 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00114/0.3965, allocations: 229.5 kB / 395.7 MB, free: 26.88 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001176/0.3977, allocations: 119.9 kB / 395.8 MB, free: 26.76 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01001/0.4077, allocations: 4.39 MB / 400.2 MB, free: 22.11 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001598/0.4094, allocations: 95.39 kB / 400.3 MB, free: 22.02 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001227/0.4096, allocations: 23.98 kB / 400.3 MB, free: 21.99 MB / 298.7 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.0004633/0.41, allocations: 217.8 kB / 400.5 MB, free: 21.77 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002211/0.4103, allocations: 79.11 kB / 400.6 MB, free: 21.69 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001783/0.4105, allocations: 74.86 kB / 400.7 MB, free: 21.61 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.198e-06/0.4105, allocations: 8 kB / 400.7 MB, free: 21.61 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.042e-06/0.4105, allocations: 0 / 400.7 MB, free: 21.61 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003331/0.4138, allocations: 1.093 MB / 401.8 MB, free: 20.4 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004286/0.4182, allocations: 1.591 MB / 403.4 MB, free: 18.72 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.694e-06/0.4182, allocations: 0 / 403.4 MB, free: 18.72 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001144/0.4194, allocations: 115.8 kB / 403.5 MB, free: 18.61 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000875/0.4203, allocations: 177.5 kB / 403.7 MB, free: 18.43 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.801e-05/0.4204, allocations: 19.94 kB / 403.7 MB, free: 18.41 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006892/0.4273, allocations: 3.726 MB / 407.4 MB, free: 14.42 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.4274, allocations: 4.031 kB / 407.4 MB, free: 14.41 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003811/0.4312, allocations: 1.066 MB / 408.5 MB, free: 13.32 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004927/0.4317, allocations: 200.1 kB / 408.7 MB, free: 13.11 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001603/0.4319, allocations: 31.94 kB / 408.7 MB, free: 13.08 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001183/0.4331, allocations: 60.03 kB / 408.8 MB, free: 13.02 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002437/0.4334, allocations: 52.42 kB / 408.8 MB, free: 12.97 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.383e-05/0.4334, allocations: 16 kB / 408.8 MB, free: 12.95 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0005754/0.434, allocations: 375.1 kB / 409.2 MB, free: 12.59 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.22e-07/0.434, allocations: 0 / 409.2 MB, free: 12.59 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001317/0.4353, allocations: 251.7 kB / 409.4 MB, free: 12.35 MB / 298.7 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.004261/0.4396, allocations: 1.631 MB / 411.1 MB, free: 10.68 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.003385/0.4431, allocations: 1.051 MB / 412.1 MB, free: 9.582 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 8.266e-06/0.4431, allocations: 4 kB / 412.1 MB, free: 9.578 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001587/0.4447, allocations: 0.5632 MB / 412.7 MB, free: 8.988 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001415/0.4462, allocations: 182.5 kB / 412.9 MB, free: 8.812 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004936/0.4512, allocations: 3.384 MB / 416.2 MB, free: 5.34 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005207/0.4517, allocations: 0.9312 MB / 417.2 MB, free: 4.383 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005122/0.4523, allocations: 255.3 kB / 417.4 MB, free: 4.133 MB / 298.7 MB Notification: Performance of SimCode: time 1.292e-06/0.4523, allocations: 0 / 417.4 MB, free: 4.133 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.008/3.46, allocations: 17.78 MB / 435.2 MB, free: 2.352 MB / 314.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump.fmu > Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat does not exist to compare? outputFormat=mat