Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.005443/0.005443, allocations: 114 kB / 21.97 MB, free: 5.227 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001583/0.001583, allocations: 208.5 kB / 25.27 MB, free: 3.246 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.355/1.355, allocations: 207.6 MB / 236 MB, free: 10 MB / 190.1 MB " [Timeout remaining time 178] 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 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001625/0.001625, allocations: 51.94 kB / 348 MB, free: 10.05 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2485/0.2501, allocations: 49.17 MB / 397.1 MB, free: 8.977 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.00481/0.2549, allocations: 4.864 MB / 402 MB, free: 5.543 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002063/0.257, allocations: 1.426 MB / 403.4 MB, free: 4.504 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002428/0.2572, allocations: 10.25 kB / 403.4 MB, free: 4.5 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003485/0.2576, allocations: 157.5 kB / 403.6 MB, free: 4.41 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005484/0.2581, allocations: 339.7 kB / 403.9 MB, free: 4.18 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004255/0.2585, allocations: 219.1 kB / 404.1 MB, free: 4.059 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009516/0.2595, allocations: 1.027 MB / 405.2 MB, free: 3.535 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000283/0.2598, allocations: 203.8 kB / 405.4 MB, free: 3.41 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004585/0.2602, allocations: 417.6 kB / 405.8 MB, free: 3.223 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004533/0.2607, allocations: 448.1 kB / 406.2 MB, free: 3 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001258/0.2608, allocations: 87.97 kB / 406.3 MB, free: 3 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001478/0.261, allocations: 90.5 kB / 406.4 MB, free: 3 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001418/0.2611, allocations: 198.7 kB / 406.6 MB, free: 2.863 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003576/0.2615, allocations: 481.5 kB / 407 MB, free: 2.582 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001197/0.2626, allocations: 1.071 MB / 408.1 MB, free: 2.152 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.2627, allocations: 5.844 kB / 408.1 MB, free: 2.148 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2627, allocations: 0 / 408.1 MB, free: 2.148 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.199e-05/0.2627, allocations: 0 / 408.1 MB, free: 2.148 MB / 318.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.002102/0.2648, allocations: 1.174 MB / 409.3 MB, free: 1.352 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.207e-05/0.2648, allocations: 14.38 kB / 409.3 MB, free: 1.348 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.52e-05/0.2649, allocations: 16.7 kB / 409.3 MB, free: 1.348 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001408/0.265, allocations: 115 kB / 409.4 MB, free: 1.262 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001548/0.2652, allocations: 110 kB / 409.5 MB, free: 1.207 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006972/0.2659, allocations: 471.9 kB / 410 MB, free: 0.875 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001345/0.266, allocations: 156.4 kB / 410.2 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.719e-05/0.2661, allocations: 66.12 kB / 410.2 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001214/0.2673, allocations: 0.8151 MB / 411 MB, free: 184 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.35e-05/0.2673, allocations: 1.688 kB / 411 MB, free: 184 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.37e-05/0.2674, allocations: 29.53 kB / 411.1 MB, free: 164 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.099e-05/0.2674, allocations: 17.88 kB / 411.1 MB, free: 160 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001232/0.2686, allocations: 0.5237 MB / 411.6 MB, free: 15.99 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.003498/0.2721, allocations: 2.14 MB / 413.8 MB, free: 14.27 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001176/0.2733, allocations: 0.4952 MB / 414.2 MB, free: 14.01 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006488/0.274, allocations: 264.3 kB / 414.5 MB, free: 13.88 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.86e-05/0.274, allocations: 12.89 kB / 414.5 MB, free: 13.88 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007482/0.2748, allocations: 343.2 kB / 414.9 MB, free: 13.66 MB / 334.1 MB Notification: Performance of pre-optimization done (n=66): time 2.224e-06/0.2748, allocations: 0 / 414.9 MB, free: 13.66 MB / 334.1 MB Notification: Performance of matching and sorting (n=84): time 0.009444/0.2842, allocations: 2.718 MB / 417.6 MB, free: 12.2 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004948/0.2847, allocations: 0.8251 MB / 418.4 MB, free: 11.19 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008608/0.2856, allocations: 0.5881 MB / 419 MB, free: 10.84 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001335/0.2857, allocations: 46.02 kB / 419 MB, free: 10.8 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003053/0.286, allocations: 345.7 kB / 419.4 MB, free: 10.49 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002897/0.2863, allocations: 295.1 kB / 419.7 MB, free: 10.23 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003045/0.2866, allocations: 160.8 kB / 419.8 MB, free: 10.14 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002068/0.2868, allocations: 383 kB / 420.2 MB, free: 9.773 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009292/0.2877, allocations: 336.9 kB / 420.5 MB, free: 9.609 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00123/0.289, allocations: 0.6479 MB / 421.2 MB, free: 9.062 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001871/0.2908, allocations: 0.8167 MB / 422 MB, free: 8.562 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.2908, allocations: 0 / 422 MB, free: 8.562 MB / 334.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.003943/0.2948, allocations: 1.339 MB / 423.3 MB, free: 7.832 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.22e-05/0.2948, allocations: 61.92 kB / 423.4 MB, free: 7.766 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.014e-05/0.2948, allocations: 6.344 kB / 423.4 MB, free: 7.762 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001822/0.2967, allocations: 452.7 kB / 423.8 MB, free: 7.531 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001139/0.2978, allocations: 181.7 kB / 424 MB, free: 7.48 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01143/0.3092, allocations: 6.773 MB / 430.8 MB, free: 492 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001132/0.3104, allocations: 75.86 kB / 430.9 MB, free: 416 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.731e-05/0.3104, allocations: 35.98 kB / 430.9 MB, free: 380 kB / 334.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 (65): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(9,3), (1,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0004373/0.3109, allocations: 221.8 kB / 431.1 MB, free: 148 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000143/0.311, allocations: 91.42 kB / 431.2 MB, free: 56 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001968/0.3112, allocations: 92.05 kB / 431.3 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.555e-06/0.3112, allocations: 8 kB / 431.3 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.321e-05/0.3112, allocations: 4 kB / 431.3 MB, free: 15.94 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00328/0.3145, allocations: 1.397 MB / 432.7 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005718/0.3202, allocations: 2.28 MB / 435 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.048e-06/0.3202, allocations: 0 / 435 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001077/0.3213, allocations: 187.7 kB / 435.2 MB, free: 11.9 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001539/0.3229, allocations: 382.1 kB / 435.5 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.851e-05/0.3229, allocations: 15.94 kB / 435.5 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008419/0.3313, allocations: 5.709 MB / 441.3 MB, free: 5.449 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.3313, allocations: 0 / 441.3 MB, free: 5.449 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004954/0.3363, allocations: 1.707 MB / 443 MB, free: 3.719 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005164/0.3368, allocations: 163.3 kB / 443.1 MB, free: 3.559 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001266/0.3369, allocations: 20 kB / 443.1 MB, free: 3.539 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008381/0.3378, allocations: 67.92 kB / 443.2 MB, free: 3.473 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002423/0.338, allocations: 88.83 kB / 443.3 MB, free: 3.387 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.252e-05/0.338, allocations: 28.05 kB / 443.3 MB, free: 3.359 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005445/0.3386, allocations: 419.1 kB / 443.7 MB, free: 2.953 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3386, allocations: 0 / 443.7 MB, free: 2.953 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001031/0.3396, allocations: 284.3 kB / 444 MB, free: 2.676 MB / 350.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 (62): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,7,100.0%)} * 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.005315/0.3449, allocations: 2.271 MB / 446.3 MB, free: 376 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003669/0.3486, allocations: 1.456 MB / 447.7 MB, free: 14.84 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 9.338e-06/0.3486, allocations: 8.062 kB / 447.7 MB, free: 14.84 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001731/0.3503, allocations: 0.8177 MB / 448.6 MB, free: 13.98 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001146/0.3515, allocations: 215.2 kB / 448.8 MB, free: 13.77 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01575/0.3672, allocations: 7.55 MB / 456.3 MB, free: 6 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006261/0.3679, allocations: 0.9493 MB / 457.3 MB, free: 5.027 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004699/0.3683, allocations: 102.2 kB / 457.4 MB, free: 4.926 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004231/0.3688, allocations: 299.3 kB / 457.7 MB, free: 4.637 MB / 366.1 MB Notification: Performance of SimCode: time 8.52e-07/0.3688, allocations: 0 / 457.7 MB, free: 4.637 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06769/0.4365, allocations: 27.55 MB / 485.2 MB, free: 8.988 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.98/14.41, allocations: 11.94 kB / 485.2 MB, free: 8.977 MB / 398.1 MB " [Timeout remaining time 645] (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump_fmu --startTime=0 --stopTime=2 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump.fmu > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.873920721001923]