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.001547/0.001547, allocations: 103.1 kB / 21.96 MB, free: 5.219 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.001582/0.001582, allocations: 214 kB / 25.26 MB, free: 3.129 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.3/1.3, allocations: 207.7 MB / 236.1 MB, free: 9.801 MB / 190.1 MB " [Timeout remaining time 179] 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.001658/0.001658, allocations: 45.88 kB / 348 MB, free: 9.898 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2305/0.2322, allocations: 49.17 MB / 397.1 MB, free: 8.867 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.00511/0.2373, allocations: 4.345 MB / 401.5 MB, free: 5.969 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002269/0.2395, allocations: 1.339 MB / 402.8 MB, free: 5.016 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002702/0.2398, allocations: 16.09 kB / 402.8 MB, free: 5.008 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003501/0.2402, allocations: 155.9 kB / 403 MB, free: 4.918 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005876/0.2408, allocations: 341.6 kB / 403.3 MB, free: 4.688 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003967/0.2412, allocations: 215.7 kB / 403.5 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007822/0.2419, allocations: 1.03 MB / 404.6 MB, free: 4.043 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002853/0.2422, allocations: 203.7 kB / 404.8 MB, free: 3.918 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004434/0.2427, allocations: 414 kB / 405.2 MB, free: 3.734 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004616/0.2431, allocations: 459 kB / 405.6 MB, free: 3.5 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000129/0.2433, allocations: 87.97 kB / 405.7 MB, free: 3.5 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001631/0.2434, allocations: 89.88 kB / 405.8 MB, free: 3.5 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001579/0.2436, allocations: 196.5 kB / 406 MB, free: 3.367 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003493/0.2439, allocations: 396.4 kB / 406.4 MB, free: 3.168 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001095/0.245, allocations: 1.095 MB / 407.5 MB, free: 2.723 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.245, allocations: 0.6094 kB / 407.5 MB, free: 2.723 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.245, allocations: 0 / 407.5 MB, free: 2.723 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.295e-05/0.245, allocations: 0 / 407.5 MB, free: 2.723 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.00195/0.247, allocations: 1.178 MB / 408.6 MB, free: 1.922 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.127e-05/0.247, allocations: 14.17 kB / 408.7 MB, free: 1.918 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.541e-05/0.2471, allocations: 16.52 kB / 408.7 MB, free: 1.918 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001327/0.2472, allocations: 110.1 kB / 408.8 MB, free: 1.836 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001452/0.2474, allocations: 107 kB / 408.9 MB, free: 1.785 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006598/0.248, allocations: 467.5 kB / 409.3 MB, free: 1.457 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001317/0.2481, allocations: 161.1 kB / 409.5 MB, free: 1.309 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.14e-05/0.2482, allocations: 67.22 kB / 409.6 MB, free: 1.281 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001413/0.2496, allocations: 1.571 MB / 411.1 MB, free: 15.82 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.815e-05/0.2497, allocations: 1.859 kB / 411.1 MB, free: 15.82 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.5e-05/0.2497, allocations: 29.38 kB / 411.2 MB, free: 15.8 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.508e-05/0.2497, allocations: 16.89 kB / 411.2 MB, free: 15.8 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001233/0.251, allocations: 0.5219 MB / 411.7 MB, free: 15.64 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.00326/0.2542, allocations: 1.816 MB / 413.5 MB, free: 14.26 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001126/0.2554, allocations: 499.4 kB / 414 MB, free: 14.01 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005885/0.256, allocations: 266.8 kB / 414.3 MB, free: 13.88 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.644e-05/0.256, allocations: 13.72 kB / 414.3 MB, free: 13.88 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007338/0.2567, allocations: 339.8 kB / 414.6 MB, free: 13.66 MB / 334.1 MB Notification: Performance of pre-optimization done (n=66): time 2.605e-06/0.2567, allocations: 1.312 kB / 414.6 MB, free: 13.66 MB / 334.1 MB Notification: Performance of matching and sorting (n=84): time 0.008639/0.2654, allocations: 2.721 MB / 417.3 MB, free: 12.19 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004733/0.2659, allocations: 0.8261 MB / 418.2 MB, free: 11.18 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007368/0.2666, allocations: 0.5872 MB / 418.7 MB, free: 10.84 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.29e-05/0.2667, allocations: 49.67 kB / 418.8 MB, free: 10.79 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002854/0.267, allocations: 335.2 kB / 419.1 MB, free: 10.5 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002764/0.2672, allocations: 307.1 kB / 419.4 MB, free: 10.23 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002922/0.2675, allocations: 159.3 kB / 419.6 MB, free: 10.13 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002035/0.2677, allocations: 392.6 kB / 420 MB, free: 9.758 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009357/0.2687, allocations: 376.7 kB / 420.3 MB, free: 9.543 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001631/0.2703, allocations: 1.468 MB / 421.8 MB, free: 7.988 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001862/0.2722, allocations: 0.8103 MB / 422.6 MB, free: 7.496 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.778e-06/0.2722, allocations: 1.188 kB / 422.6 MB, free: 7.496 MB / 334.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.004072/0.2762, allocations: 1.398 MB / 424 MB, free: 6.695 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.533e-05/0.2763, allocations: 62.66 kB / 424.1 MB, free: 6.629 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.043e-05/0.2763, allocations: 2.062 kB / 424.1 MB, free: 6.629 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001786/0.2781, allocations: 449.1 kB / 424.5 MB, free: 6.402 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001096/0.2792, allocations: 181 kB / 424.7 MB, free: 6.352 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01117/0.2904, allocations: 6.689 MB / 431.4 MB, free: 15.33 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001058/0.2914, allocations: 75.86 kB / 431.4 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.747e-05/0.2915, allocations: 31.98 kB / 431.5 MB, free: 15.22 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 (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.0004428/0.2919, allocations: 229.8 kB / 431.7 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001469/0.2921, allocations: 87.48 kB / 431.8 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001866/0.2923, allocations: 87.97 kB / 431.9 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.626e-06/0.2923, allocations: 12 kB / 431.9 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.288e-05/0.2923, allocations: 0 / 431.9 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00318/0.2955, allocations: 1.397 MB / 433.3 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005645/0.3011, allocations: 2.144 MB / 435.4 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.3011, allocations: 0 / 435.4 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001065/0.3022, allocations: 171.8 kB / 435.6 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001644/0.3038, allocations: 386.1 kB / 436 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.91e-05/0.3039, allocations: 19.94 kB / 436 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008564/0.3124, allocations: 5.659 MB / 441.7 MB, free: 4.5 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.3124, allocations: 0 / 441.7 MB, free: 4.5 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005037/0.3175, allocations: 1.699 MB / 443.4 MB, free: 2.777 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005999/0.3181, allocations: 159.3 kB / 443.5 MB, free: 2.621 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001351/0.3182, allocations: 27.92 kB / 443.5 MB, free: 2.594 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007653/0.319, allocations: 68.11 kB / 443.6 MB, free: 2.527 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002769/0.3193, allocations: 84.84 kB / 443.7 MB, free: 2.445 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.793e-05/0.3193, allocations: 27.98 kB / 443.7 MB, free: 2.418 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005831/0.3199, allocations: 419.1 kB / 444.1 MB, free: 2.012 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3199, allocations: 4.062 kB / 444.1 MB, free: 2.008 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001065/0.321, allocations: 288.3 kB / 444.4 MB, free: 1.727 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.005233/0.3262, allocations: 2.267 MB / 446.7 MB, free: 15.42 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003607/0.3298, allocations: 1.522 MB / 448.2 MB, free: 13.82 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/0.3298, allocations: 0 / 448.2 MB, free: 13.82 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001667/0.3315, allocations: 0.8182 MB / 449 MB, free: 12.96 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001077/0.3326, allocations: 210.9 kB / 449.2 MB, free: 12.76 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0153/0.3479, allocations: 7.759 MB / 457 MB, free: 4.73 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003799/0.3482, allocations: 355.3 kB / 457.3 MB, free: 4.359 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004511/0.3487, allocations: 98.17 kB / 457.4 MB, free: 4.262 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004331/0.3491, allocations: 291.3 kB / 457.7 MB, free: 3.98 MB / 366.1 MB Notification: Performance of SimCode: time 9.32e-07/0.3491, allocations: 4 kB / 457.7 MB, free: 3.977 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07717/0.4263, allocations: 28.79 MB / 486.5 MB, free: 7.055 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.09/14.52, allocations: 8.062 kB / 486.5 MB, free: 7.047 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.896696805022657]