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: translateModel(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|speed.phi",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|speed.phi",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002677/0.002683, allocations: 182.1 kB / 16.4 MB, free: 5.754 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.494/3.494, 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.001819/0.001819, allocations: 91.34 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006328/0.0006331, allocations: 8 kB / 327 MB, free: 204 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4611/0.4618, allocations: 47.56 MB / 374.5 MB, free: 45.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.008562/0.4704, allocations: 3.869 MB / 378.4 MB, free: 42.41 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004627/0.4751, allocations: 1.357 MB / 379.7 MB, free: 41.29 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009024/0.4761, allocations: 10.34 kB / 379.8 MB, free: 41.29 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005294/0.4766, allocations: 99.48 kB / 379.9 MB, free: 41.2 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001948/0.4786, allocations: 361.2 kB / 380.2 MB, free: 40.9 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009491/0.4796, allocations: 161.9 kB / 380.4 MB, free: 40.77 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002451/0.4821, allocations: 0.7011 MB / 381.1 MB, free: 40.34 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008093/0.4829, allocations: 248.4 kB / 381.3 MB, free: 40.19 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001319/0.4843, allocations: 345.5 kB / 381.6 MB, free: 40.01 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00134/0.4857, allocations: 371.8 kB / 382 MB, free: 39.78 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003111/0.486, allocations: 50.22 kB / 382.1 MB, free: 39.78 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004749/0.4865, allocations: 50.88 kB / 382.1 MB, free: 39.78 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002541/0.4868, allocations: 151.7 kB / 382.3 MB, free: 39.65 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003889/0.4872, allocations: 189.9 kB / 382.4 MB, free: 39.55 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001372/0.4886, allocations: 0.7392 MB / 383.2 MB, free: 38.99 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.4886, allocations: 0.8125 kB / 383.2 MB, free: 38.99 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.776e-06/0.4887, allocations: 4 kB / 383.2 MB, free: 38.98 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.168e-05/0.4887, allocations: 0 / 383.2 MB, free: 38.98 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.004271/0.493, allocations: 1.079 MB / 384.3 MB, free: 38.12 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.762e-05/0.4931, allocations: 9.094 kB / 384.3 MB, free: 38.12 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005353/0.4936, allocations: 95.16 kB / 384.4 MB, free: 38.08 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001388/0.495, allocations: 453.7 kB / 384.8 MB, free: 37.68 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00028/0.4954, allocations: 110.5 kB / 384.9 MB, free: 37.59 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001828/0.4956, allocations: 50.16 kB / 385 MB, free: 37.57 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002708/0.4983, allocations: 0.7956 MB / 385.8 MB, free: 36.94 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.56e-05/0.4984, allocations: 1.156 kB / 385.8 MB, free: 36.94 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001048/0.4985, allocations: 27.59 kB / 385.8 MB, free: 36.92 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.244e-05/0.4985, allocations: 16.47 kB / 385.8 MB, free: 36.92 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002108/0.5006, allocations: 0.5262 MB / 386.3 MB, free: 36.68 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.005106/0.5058, allocations: 2.115 MB / 388.4 MB, free: 34.52 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002407/0.5082, allocations: 0.6035 MB / 389.1 MB, free: 33.91 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.487e-05/0.5083, allocations: 17.62 kB / 389.1 MB, free: 33.89 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001216/0.5096, allocations: 339 kB / 389.4 MB, free: 33.55 MB / 298.7 MB Notification: Performance of pre-optimization done (n=56): time 4.278e-06/0.5096, allocations: 0 / 389.4 MB, free: 33.55 MB / 298.7 MB Notification: Performance of matching and sorting (n=56): time 0.008851/0.5184, allocations: 1.584 MB / 391 MB, free: 31.91 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002356/0.5187, allocations: 0.8233 MB / 391.8 MB, free: 30.89 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008317/0.5196, allocations: 0.5314 MB / 392.3 MB, free: 30.35 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001691/0.5198, allocations: 41.7 kB / 392.4 MB, free: 30.3 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002605/0.52, allocations: 351.3 kB / 392.7 MB, free: 29.96 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002018/0.5203, allocations: 189.2 kB / 392.9 MB, free: 29.77 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.708e-05/0.5203, allocations: 23.88 kB / 392.9 MB, free: 29.75 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.941e-05/0.5204, allocations: 330.8 kB / 393.3 MB, free: 29.42 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009927/0.5214, allocations: 225 kB / 393.5 MB, free: 29.2 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001259/0.5227, allocations: 0.5325 MB / 394 MB, free: 28.54 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001042/0.5238, allocations: 317.4 kB / 394.3 MB, free: 28.23 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.591e-06/0.5238, allocations: 4 kB / 394.3 MB, free: 28.22 MB / 298.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002966/0.5268, allocations: 0.82 MB / 395.1 MB, free: 27.38 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.128e-05/0.5269, allocations: 63.39 kB / 395.2 MB, free: 27.3 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.172e-05/0.5269, allocations: 0 / 395.2 MB, free: 27.3 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001139/0.528, allocations: 226.3 kB / 395.4 MB, free: 27.07 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001217/0.5293, allocations: 123.8 kB / 395.5 MB, free: 26.95 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04205/0.5714, allocations: 4.391 MB / 399.9 MB, free: 22.3 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002319/0.5738, allocations: 91.47 kB / 400 MB, free: 22.21 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002299/0.574, allocations: 20 kB / 400 MB, free: 22.19 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.0008267/0.5749, allocations: 209.8 kB / 400.2 MB, free: 21.97 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003813/0.5753, allocations: 79.06 kB / 400.3 MB, free: 21.89 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003118/0.5756, allocations: 82.84 kB / 400.4 MB, free: 21.81 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.37e-05/0.5757, allocations: 4 kB / 400.4 MB, free: 21.81 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.217e-05/0.5757, allocations: 3.953 kB / 400.4 MB, free: 21.8 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005399/0.5811, allocations: 1.101 MB / 401.5 MB, free: 20.59 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007247/0.5884, allocations: 1.579 MB / 403.1 MB, free: 18.93 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.135e-05/0.5885, allocations: 4 kB / 403.1 MB, free: 18.92 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001745/0.5903, allocations: 115.8 kB / 403.2 MB, free: 18.81 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001441/0.5918, allocations: 182.1 kB / 403.4 MB, free: 18.62 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001517/0.592, allocations: 19.98 kB / 403.4 MB, free: 18.61 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01111/0.6031, allocations: 3.717 MB / 407.1 MB, free: 14.62 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.469e-06/0.6032, allocations: 0 / 407.1 MB, free: 14.62 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006267/0.6095, allocations: 1.074 MB / 408.2 MB, free: 13.52 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009664/0.6105, allocations: 204.1 kB / 408.4 MB, free: 13.3 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003768/0.6109, allocations: 23.98 kB / 408.4 MB, free: 13.28 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001892/0.6129, allocations: 52.02 kB / 408.5 MB, free: 13.23 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003842/0.6133, allocations: 52.48 kB / 408.5 MB, free: 13.18 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.277e-05/0.6134, allocations: 16.06 kB / 408.5 MB, free: 13.16 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0009969/0.6145, allocations: 383 kB / 408.9 MB, free: 12.79 MB / 298.7 MB Notification: Performance of sort global known variables: time 9.71e-07/0.6145, allocations: 0 / 408.9 MB, free: 12.79 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.002378/0.6169, allocations: 247.7 kB / 409.2 MB, free: 12.55 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.0004185/0.6174, allocations: 123.2 kB / 409.3 MB, free: 12.42 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00559/0.623, allocations: 1.047 MB / 410.3 MB, free: 11.32 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.778e-05/0.6231, allocations: 4 kB / 410.3 MB, free: 11.32 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002741/0.6259, allocations: 0.5632 MB / 410.9 MB, free: 10.73 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002097/0.628, allocations: 183.9 kB / 411.1 MB, free: 10.55 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007009/0.6351, allocations: 1.58 MB / 412.6 MB, free: 8.945 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007674/0.636, allocations: 0.9312 MB / 413.6 MB, free: 7.988 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004678/0.6365, allocations: 47.42 kB / 413.6 MB, free: 7.941 MB / 298.7 MB Notification: Performance of SimCode: time 1.533e-06/0.6365, allocations: 0 / 413.6 MB, free: 7.941 MB / 298.7 MB Notification: Performance of Templates: time 0.04865/0.6852, allocations: 14.79 MB / 428.4 MB, free: 9.152 MB / 314.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.makefile (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 & ./Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/FluidHeatFlow/Examples/WaterPump/WaterPump.csv","../files/Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches