Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.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.001102/0.001102, allocations: 80.31 kB / 22.21 MB, free: 2.281 MB / 18.57 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.001197/0.001197, allocations: 167.3 kB / 25.61 MB, free: 8.574 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9182/0.9182, allocations: 177.1 MB / 206 MB, free: 4.508 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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: translateModel(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|heatCapacitor.T|pipe.T|speed.phi",fileNamePrefix="Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|heatCapacitor.T|pipe.T|speed.phi",fileNamePrefix="Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.655e-06/2.655e-06, allocations: 4 kB / 274.2 MB, free: 4.422 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.092e-05/2.358e-05, allocations: 7.906 kB / 274.2 MB, free: 4.414 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve): time 0.005709/0.005732, allocations: 4.318 MB / 278.5 MB, free: 92 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00279/0.008522, allocations: 1.233 MB / 279.7 MB, free: 14.86 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003794/0.008902, allocations: 11.94 kB / 279.7 MB, free: 14.84 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003924/0.009294, allocations: 122.9 kB / 279.9 MB, free: 14.72 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006419/0.009936, allocations: 293.4 kB / 280.1 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004858/0.01042, allocations: 195.5 kB / 280.3 MB, free: 14.24 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001099/0.01152, allocations: 0.9718 MB / 281.3 MB, free: 13.27 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003167/0.01184, allocations: 169 kB / 281.5 MB, free: 13.1 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008351/0.01267, allocations: 0.5495 MB / 282 MB, free: 12.55 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004484/0.01312, allocations: 291.2 kB / 282.3 MB, free: 12.26 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001185/0.01324, allocations: 72 kB / 282.4 MB, free: 12.19 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001552/0.01339, allocations: 87.98 kB / 282.5 MB, free: 12.11 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001369/0.01353, allocations: 175.3 kB / 282.6 MB, free: 11.93 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003104/0.01384, allocations: 295.4 kB / 282.9 MB, free: 11.64 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008284/0.01467, allocations: 0.6111 MB / 283.5 MB, free: 11.03 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.01468, allocations: 0 / 283.5 MB, free: 11.03 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.01468, allocations: 0 / 283.5 MB, free: 11.03 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.833e-05/0.0147, allocations: 4 kB / 283.5 MB, free: 11.03 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 111 * Number of variables: 111 Notification: Performance of Generate backend data structure: time 0.001706/0.0164, allocations: 1.141 MB / 284.7 MB, free: 9.836 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.845e-05/0.01644, allocations: 16.03 kB / 284.7 MB, free: 9.82 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003018/0.01674, allocations: 128.5 kB / 284.8 MB, free: 9.695 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005997/0.01734, allocations: 408.3 kB / 285.2 MB, free: 9.266 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001627/0.01751, allocations: 152.3 kB / 285.4 MB, free: 9.09 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.874e-05/0.0176, allocations: 56.38 kB / 285.4 MB, free: 9.035 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009983/0.0186, allocations: 1.056 MB / 286.5 MB, free: 7.758 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.978e-05/0.01862, allocations: 4 kB / 286.5 MB, free: 7.754 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.418e-05/0.01868, allocations: 24 kB / 286.5 MB, free: 7.73 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.334e-05/0.01869, allocations: 8 kB / 286.5 MB, free: 7.723 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006585/0.01935, allocations: 186.8 kB / 286.7 MB, free: 7.539 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002525/0.02187, allocations: 1.412 MB / 288.1 MB, free: 6.07 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001065/0.02294, allocations: 375 kB / 288.5 MB, free: 5.691 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002004/0.02314, allocations: 123.1 kB / 288.6 MB, free: 5.57 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.64e-05/0.02319, allocations: 20.48 kB / 288.6 MB, free: 5.547 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.588e-05/0.02322, allocations: 42.45 kB / 288.7 MB, free: 5.496 MB / 266.7 MB Notification: Performance of pre-optimization done (n=54): time 3.386e-06/0.02322, allocations: 0 / 288.7 MB, free: 5.496 MB / 266.7 MB Notification: Performance of matching and sorting (n=54): time 0.002921/0.02615, allocations: 0.8582 MB / 289.5 MB, free: 4.621 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002237/0.02637, allocations: 0.5683 MB / 290.1 MB, free: 3.914 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005039/0.02687, allocations: 0.5062 MB / 290.6 MB, free: 3.391 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.334e-05/0.02693, allocations: 41.7 kB / 290.6 MB, free: 3.344 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002515/0.02718, allocations: 356.3 kB / 291 MB, free: 2.984 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001529/0.02733, allocations: 198.2 kB / 291.2 MB, free: 2.789 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001955/0.02753, allocations: 116 kB / 291.3 MB, free: 2.668 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002168/0.02774, allocations: 0.5507 MB / 291.8 MB, free: 2.105 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001896/0.02793, allocations: 94.95 kB / 291.9 MB, free: 2.008 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005681/0.0285, allocations: 0.887 MB / 292.8 MB, free: 0.8789 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004069/0.02891, allocations: 273.9 kB / 293.1 MB, free: 0.5859 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.02891, allocations: 3.938 kB / 293.1 MB, free: 0.582 MB / 266.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001605/0.03052, allocations: 0.5773 MB / 293.7 MB, free: 15.97 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.203e-05/0.03056, allocations: 29.7 kB / 293.7 MB, free: 15.94 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.817e-06/0.03057, allocations: 4 kB / 293.7 MB, free: 15.93 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009215/0.03149, allocations: 214.8 kB / 293.9 MB, free: 15.71 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004828/0.03197, allocations: 111.9 kB / 294 MB, free: 15.6 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005562/0.03753, allocations: 6.096 MB / 300.1 MB, free: 9.164 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003353/0.03787, allocations: 55.72 kB / 300.2 MB, free: 9.109 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.705e-05/0.0379, allocations: 19.92 kB / 300.2 MB, free: 9.09 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * 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: 1 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(5,2), (1,1), (1,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0001786/0.03807, allocations: 196.4 kB / 300.4 MB, free: 8.887 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.568e-05/0.03817, allocations: 95.56 kB / 300.5 MB, free: 8.793 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001076/0.03925, allocations: 0.5065 MB / 301 MB, free: 8.266 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.438e-06/0.03926, allocations: 4 kB / 301 MB, free: 8.262 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.114e-06/0.03926, allocations: 4 kB / 301 MB, free: 8.258 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007496/0.04001, allocations: 0.781 MB / 301.8 MB, free: 7.363 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001311/0.04132, allocations: 1.01 MB / 302.8 MB, free: 6.305 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.04132, allocations: 0 / 302.8 MB, free: 6.305 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003398/0.04166, allocations: 119.8 kB / 302.9 MB, free: 6.188 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005124/0.04217, allocations: 171.1 kB / 303.1 MB, free: 6.012 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.418e-05/0.0422, allocations: 15.92 kB / 303.1 MB, free: 5.996 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0024/0.0446, allocations: 4.134 MB / 307.2 MB, free: 1.641 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.0446, allocations: 3.938 kB / 307.2 MB, free: 1.637 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00117/0.04577, allocations: 0.704 MB / 307.9 MB, free: 0.9023 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001685/0.04594, allocations: 127.4 kB / 308 MB, free: 0.7773 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.151e-05/0.04599, allocations: 19.98 kB / 308.1 MB, free: 0.7578 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002199/0.04621, allocations: 27.98 kB / 308.1 MB, free: 0.7305 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.639e-05/0.0463, allocations: 48.53 kB / 308.1 MB, free: 0.6836 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.816e-05/0.04631, allocations: 12 kB / 308.1 MB, free: 0.6719 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001833/0.0465, allocations: 326.7 kB / 308.5 MB, free: 364 kB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.0465, allocations: 0 / 308.5 MB, free: 364 kB / 282.7 MB Notification: Performance of remove unused functions: time 0.000487/0.04698, allocations: 227.7 kB / 308.7 MB, free: 136 kB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (pipe.T,heatCapacitor.T,speed.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * 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 {(1,2), (1,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001139/0.0471, allocations: 119.2 kB / 308.8 MB, free: 4 kB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0009422/0.04804, allocations: 0.9818 MB / 309.8 MB, free: 14.95 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.04804, allocations: 4.25 kB / 309.8 MB, free: 14.95 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003985/0.04844, allocations: 0.5379 MB / 310.3 MB, free: 14.37 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004971/0.04894, allocations: 186.4 kB / 310.5 MB, free: 14.19 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001599/0.05054, allocations: 1.146 MB / 311.7 MB, free: 13 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.956e-05/0.05064, allocations: 139.6 kB / 311.8 MB, free: 12.84 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002048/0.05084, allocations: 80.92 kB / 311.9 MB, free: 12.76 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004496/0.05129, allocations: 334 kB / 312.2 MB, free: 12.43 MB / 298.7 MB Notification: Performance of SimCode: time 1.082e-06/0.05129, allocations: 4 kB / 312.2 MB, free: 12.43 MB / 298.7 MB Notification: Performance of Templates: time 0.01922/0.07051, allocations: 15.94 MB / 328.1 MB, free: 12.79 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; mkfifo Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe >> ../files/Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.sim & ./Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Thermal/FluidHeatFlow/Examples/PumpAndValve/PumpAndValve.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.1789753627963364]