Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|speed.phi",fileNamePrefix="Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|speed.phi",fileNamePrefix="Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001041/0.001041, allocations: 117.6 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001054/0.001055, allocations: 204.7 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.295/1.295, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001046/0.001046, allocations: 55.91 kB / 358.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2284/0.2295, allocations: 50.55 MB / 409.2 MB, free: 1.727 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.00532/0.2348, allocations: 4.839 MB / 414.1 MB, free: 12.87 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001873/0.2367, allocations: 1.386 MB / 415.5 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002004/0.237, allocations: 4 kB / 415.5 MB, free: 11.47 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003326/0.2373, allocations: 154.7 kB / 415.6 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005597/0.2379, allocations: 337.3 kB / 416 MB, free: 10.99 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003711/0.2383, allocations: 219.6 kB / 416.2 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009041/0.2392, allocations: 1.023 MB / 417.2 MB, free: 9.746 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003645/0.2396, allocations: 297.9 kB / 417.5 MB, free: 9.434 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004276/0.24, allocations: 410.5 kB / 417.9 MB, free: 9.031 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004444/0.2404, allocations: 454.1 kB / 418.3 MB, free: 8.586 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001193/0.2406, allocations: 88 kB / 418.4 MB, free: 8.5 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001465/0.2407, allocations: 92 kB / 418.5 MB, free: 8.41 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001491/0.2409, allocations: 195.3 kB / 418.7 MB, free: 8.219 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003791/0.2413, allocations: 469.8 kB / 419.1 MB, free: 7.758 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008938/0.2422, allocations: 1.086 MB / 420.2 MB, free: 6.668 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.2422, allocations: 4 kB / 420.2 MB, free: 6.664 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.2422, allocations: 3.938 kB / 420.2 MB, free: 6.66 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.046e-05/0.2422, allocations: 0 / 420.2 MB, free: 6.66 MB / 334.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.001969/0.2442, allocations: 1.243 MB / 421.5 MB, free: 5.352 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.298e-05/0.2442, allocations: 12.03 kB / 421.5 MB, free: 5.34 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001499/0.2444, allocations: 100.4 kB / 421.6 MB, free: 5.242 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006696/0.245, allocations: 0.5165 MB / 422.1 MB, free: 4.684 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000135/0.2452, allocations: 101.3 kB / 422.2 MB, free: 4.574 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.449e-05/0.2453, allocations: 48.38 kB / 422.3 MB, free: 4.527 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001283/0.2466, allocations: 0.8044 MB / 423.1 MB, free: 3.613 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.77e-05/0.2466, allocations: 0 / 423.1 MB, free: 3.613 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.011e-05/0.2467, allocations: 28 kB / 423.1 MB, free: 3.586 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.111e-05/0.2467, allocations: 12 kB / 423.1 MB, free: 3.574 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001209/0.2479, allocations: 0.4997 MB / 423.6 MB, free: 3.078 MB / 334.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.003019/0.2509, allocations: 2.154 MB / 425.8 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00126/0.2522, allocations: 0.533 MB / 426.3 MB, free: 244 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005936/0.2528, allocations: 262.4 kB / 426.5 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.154e-05/0.2529, allocations: 21.62 kB / 426.6 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007147/0.2536, allocations: 319 kB / 426.9 MB, free: 15.63 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 1.833e-06/0.2536, allocations: 0 / 426.9 MB, free: 15.63 MB / 350.1 MB Notification: Performance of matching and sorting (n=56): time 0.004677/0.2583, allocations: 1.489 MB / 428.4 MB, free: 14.09 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002795/0.2586, allocations: 0.8194 MB / 429.2 MB, free: 13.08 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006292/0.2592, allocations: 0.594 MB / 429.8 MB, free: 12.47 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.224e-05/0.2593, allocations: 41.7 kB / 429.8 MB, free: 12.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002308/0.2595, allocations: 337.2 kB / 430.2 MB, free: 12.09 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001362/0.2597, allocations: 194.3 kB / 430.3 MB, free: 11.9 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001986/0.2599, allocations: 138.2 kB / 430.5 MB, free: 11.76 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001479/0.26, allocations: 374.8 kB / 430.8 MB, free: 11.38 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005474/0.2606, allocations: 217 kB / 431.1 MB, free: 11.17 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007669/0.2613, allocations: 0.5169 MB / 431.6 MB, free: 10.54 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001122/0.2625, allocations: 0.5654 MB / 432.1 MB, free: 9.922 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.2625, allocations: 0 / 432.1 MB, free: 9.922 MB / 350.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.00216/0.2647, allocations: 0.9055 MB / 433 MB, free: 8.996 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.117e-05/0.2647, allocations: 67.34 kB / 433.1 MB, free: 8.918 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.2647, allocations: 4 kB / 433.1 MB, free: 8.914 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006886/0.2654, allocations: 221.6 kB / 433.3 MB, free: 8.691 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000589/0.266, allocations: 111.9 kB / 433.4 MB, free: 8.582 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006087/0.2721, allocations: 4.6 MB / 438 MB, free: 3.707 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006544/0.2728, allocations: 83.58 kB / 438.1 MB, free: 3.625 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.542e-05/0.2729, allocations: 27.98 kB / 438.1 MB, free: 3.598 MB / 350.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 (oneWayValve.backward,trapezoid.count,$PRE.trapezoid.count,trapezoid.T_start,$PRE.trapezoid.T_start,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(9,3), (1,11)} Notification: Performance of prepare postOptimizeDAE: time 0.000278/0.2731, allocations: 221.7 kB / 438.4 MB, free: 3.371 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001081/0.2733, allocations: 79.53 kB / 438.4 MB, free: 3.293 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001378/0.2734, allocations: 78.86 kB / 438.5 MB, free: 3.211 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/0.2734, allocations: 7.938 kB / 438.5 MB, free: 3.203 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.284e-06/0.2734, allocations: 0 / 438.5 MB, free: 3.203 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001986/0.2754, allocations: 1.054 MB / 439.6 MB, free: 2.035 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002443/0.2779, allocations: 1.532 MB / 441.1 MB, free: 440 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.2779, allocations: 3.938 kB / 441.1 MB, free: 436 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005888/0.2785, allocations: 111.8 kB / 441.2 MB, free: 324 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005117/0.279, allocations: 173.5 kB / 441.4 MB, free: 144 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.533e-05/0.2791, allocations: 15.98 kB / 441.4 MB, free: 128 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004541/0.2836, allocations: 3.933 MB / 445.3 MB, free: 11.91 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.2836, allocations: 0 / 445.3 MB, free: 11.91 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002172/0.2858, allocations: 1.028 MB / 446.4 MB, free: 10.86 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002519/0.2861, allocations: 224.5 kB / 446.6 MB, free: 10.62 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.649e-05/0.2862, allocations: 16 kB / 446.6 MB, free: 10.61 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005809/0.2867, allocations: 52.12 kB / 446.7 MB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001224/0.2869, allocations: 48.5 kB / 446.7 MB, free: 10.51 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.384e-05/0.2869, allocations: 19.98 kB / 446.7 MB, free: 10.49 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004661/0.2874, allocations: 415.1 kB / 447.1 MB, free: 10.09 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2874, allocations: 0 / 447.1 MB, free: 10.09 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006782/0.2881, allocations: 247.8 kB / 447.4 MB, free: 9.844 MB / 366.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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,3), (1,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001457/0.2882, allocations: 123.2 kB / 447.5 MB, free: 9.715 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001883/0.2901, allocations: 1.015 MB / 448.5 MB, free: 8.648 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.478e-06/0.2901, allocations: 4 kB / 448.5 MB, free: 8.645 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009206/0.2911, allocations: 0.5477 MB / 449.1 MB, free: 8.07 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008151/0.2919, allocations: 213.7 kB / 449.3 MB, free: 7.863 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002222/0.2941, allocations: 1.312 MB / 450.6 MB, free: 6.531 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000404/0.2945, allocations: 0.9238 MB / 451.5 MB, free: 5.582 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003031/0.2949, allocations: 85.2 kB / 451.6 MB, free: 5.496 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001271/0.295, allocations: 59.42 kB / 451.6 MB, free: 5.438 MB / 366.1 MB Notification: Performance of SimCode: time 2.5e-07/0.295, allocations: 0 / 451.6 MB, free: 5.438 MB / 366.1 MB Notification: Performance of Templates: time 0.02261/0.3176, allocations: 16.32 MB / 468 MB, free: 5.363 MB / 382.1 MB make -j1 -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.makefile (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.sim & ./Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/WaterPump/WaterPump.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches