Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009874/0.0009874, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001592/0.00258, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000862/0.000862, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00127/0.002132, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8559/0.8559, allocations: 173.4 MB / 186 MB, free: 7.52 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1546/1.011, allocations: 52.48 MB / 238.5 MB, free: 7.645 MB / 234.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.463e-06/1.463e-06, allocations: 0 / 239.7 MB, free: 6.387 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.988e-05/2.134e-05, allocations: 2.312 kB / 239.7 MB, free: 6.383 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve): time 0.008332/0.008353, allocations: 4.38 MB / 244.1 MB, free: 2 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.006368/0.01472, allocations: 1.255 MB / 245.4 MB, free: 0.7461 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003826/0.0151, allocations: 7.938 kB / 245.4 MB, free: 0.7383 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002978/0.0154, allocations: 140.8 kB / 245.5 MB, free: 0.6016 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000489/0.01589, allocations: 288.1 kB / 245.8 MB, free: 328 kB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003882/0.01628, allocations: 201.8 kB / 246 MB, free: 128 kB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008259/0.0171, allocations: 0.9641 MB / 247 MB, free: 15.16 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002409/0.01735, allocations: 174.9 kB / 247.1 MB, free: 14.97 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007801/0.01813, allocations: 0.6353 MB / 247.8 MB, free: 14.34 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003716/0.0185, allocations: 303.1 kB / 248.1 MB, free: 14.05 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 8.736e-05/0.01858, allocations: 77 kB / 248.1 MB, free: 13.97 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.537e-05/0.01868, allocations: 76 kB / 248.2 MB, free: 13.9 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.006e-05/0.01876, allocations: 123.6 kB / 248.3 MB, free: 13.78 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001899/0.01895, allocations: 244.6 kB / 248.6 MB, free: 13.54 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000528/0.01948, allocations: 0.5448 MB / 249.1 MB, free: 12.99 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.13e-05/0.01949, allocations: 0.75 kB / 249.1 MB, free: 12.99 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.01949, allocations: 0 / 249.1 MB, free: 12.99 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.599e-05/0.01951, allocations: 0.6875 kB / 249.1 MB, free: 12.99 MB / 250.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.001286/0.02079, allocations: 1.161 MB / 250.3 MB, free: 11.79 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.509e-05/0.02083, allocations: 8.031 kB / 250.3 MB, free: 11.79 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001284/0.02096, allocations: 104.8 kB / 250.4 MB, free: 11.68 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004086/0.02136, allocations: 333.5 kB / 250.7 MB, free: 11.33 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001942/0.02156, allocations: 144.4 kB / 250.9 MB, free: 11.17 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.381e-05/0.02162, allocations: 56.36 kB / 250.9 MB, free: 11.11 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006352/0.02226, allocations: 1.013 MB / 251.9 MB, free: 9.906 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.608e-05/0.02227, allocations: 7.984 kB / 251.9 MB, free: 9.898 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.034e-05/0.0223, allocations: 20 kB / 251.9 MB, free: 9.879 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.248e-06/0.02231, allocations: 12 kB / 252 MB, free: 9.867 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002118/0.02253, allocations: 154.8 kB / 252.1 MB, free: 9.715 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001489/0.02401, allocations: 1.059 MB / 253.2 MB, free: 8.617 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006412/0.02466, allocations: 337.5 kB / 253.5 MB, free: 8.273 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000125/0.02478, allocations: 102.3 kB / 253.6 MB, free: 8.172 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.426e-05/0.02481, allocations: 16.48 kB / 253.6 MB, free: 8.156 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.885e-05/0.02484, allocations: 47 kB / 253.7 MB, free: 8.102 MB / 250.7 MB Notification: Performance of pre-optimization done (n=54): time 1.513e-06/0.02485, allocations: 0 / 253.7 MB, free: 8.102 MB / 250.7 MB Notification: Performance of matching and sorting (n=54): time 0.001571/0.02642, allocations: 0.7653 MB / 254.4 MB, free: 7.324 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.516e-05/0.02644, allocations: 63.91 kB / 254.5 MB, free: 7.25 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002418/0.02668, allocations: 423.2 kB / 254.9 MB, free: 6.824 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.142e-05/0.02671, allocations: 37.7 kB / 254.9 MB, free: 6.781 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.837e-05/0.02681, allocations: 230.9 kB / 255.2 MB, free: 6.547 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.254e-05/0.0269, allocations: 198.2 kB / 255.4 MB, free: 6.352 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001135/0.02702, allocations: 114.2 kB / 255.5 MB, free: 6.234 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.21e-05/0.02711, allocations: 366.7 kB / 255.8 MB, free: 5.867 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.928e-05/0.02721, allocations: 90.97 kB / 255.9 MB, free: 5.77 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007031/0.02791, allocations: 0.8073 MB / 256.7 MB, free: 4.75 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002329/0.02815, allocations: 259.7 kB / 257 MB, free: 4.473 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.02815, allocations: 0 / 257 MB, free: 4.473 MB / 250.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0006286/0.02878, allocations: 492 kB / 257.5 MB, free: 3.965 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.505e-05/0.02881, allocations: 29.7 kB / 257.5 MB, free: 3.93 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.972e-06/0.02882, allocations: 0 / 257.5 MB, free: 3.93 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005262/0.02934, allocations: 202.3 kB / 257.7 MB, free: 3.723 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003862/0.02973, allocations: 155.8 kB / 257.8 MB, free: 3.57 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002937/0.03267, allocations: 4.294 MB / 262.1 MB, free: 15.02 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002829/0.03295, allocations: 63.64 kB / 262.2 MB, free: 14.96 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.188e-05/0.03297, allocations: 12 kB / 262.2 MB, free: 14.95 MB / 266.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.0001358/0.03311, allocations: 145.8 kB / 262.3 MB, free: 14.79 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.564e-05/0.03317, allocations: 67.88 kB / 262.4 MB, free: 14.73 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006264/0.0338, allocations: 435.1 kB / 262.8 MB, free: 14.29 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.378e-06/0.0338, allocations: 7.984 kB / 262.8 MB, free: 14.28 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.03381, allocations: 3.938 kB / 262.9 MB, free: 14.27 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008346/0.03464, allocations: 0.7141 MB / 263.6 MB, free: 13.45 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001051/0.03569, allocations: 0.8028 MB / 264.4 MB, free: 12.6 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.0357, allocations: 4 kB / 264.4 MB, free: 12.6 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004153/0.03611, allocations: 167.7 kB / 264.5 MB, free: 12.43 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001424/0.03625, allocations: 71.44 kB / 264.6 MB, free: 12.36 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004342/0.03669, allocations: 165.5 kB / 264.8 MB, free: 12.2 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.022e-05/0.03671, allocations: 12 kB / 264.8 MB, free: 12.18 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001941/0.03865, allocations: 2.874 MB / 267.7 MB, free: 9.137 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.03865, allocations: 4.062 kB / 267.7 MB, free: 9.133 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007821/0.03943, allocations: 0.582 MB / 268.2 MB, free: 8.527 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.031e-05/0.03949, allocations: 12 kB / 268.3 MB, free: 8.516 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002004/0.03969, allocations: 27.98 kB / 268.3 MB, free: 8.488 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.575e-05/0.03978, allocations: 48.41 kB / 268.3 MB, free: 8.441 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.94e-05/0.0398, allocations: 15.92 kB / 268.3 MB, free: 8.426 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001476/0.03995, allocations: 196.4 kB / 268.5 MB, free: 8.234 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.03995, allocations: 0 / 268.5 MB, free: 8.234 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004645/0.04041, allocations: 223.8 kB / 268.8 MB, free: 8.016 MB / 266.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.000114/0.04052, allocations: 96.36 kB / 268.8 MB, free: 7.914 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0008691/0.04139, allocations: 0.8023 MB / 269.6 MB, free: 7.051 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.018e-05/0.04141, allocations: 11.98 kB / 269.7 MB, free: 7.039 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006439/0.04206, allocations: 454.6 kB / 270.1 MB, free: 6.57 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009589/0.04302, allocations: 1.815 MB / 271.9 MB, free: 4.402 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007446/0.05046, allocations: 1.109 MB / 273 MB, free: 3.262 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001027/0.05056, allocations: 139.8 kB / 273.2 MB, free: 3.102 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002822/0.05085, allocations: 85.06 kB / 273.2 MB, free: 3.02 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004206/0.05127, allocations: 309.1 kB / 273.5 MB, free: 2.719 MB / 266.7 MB Notification: Performance of SimCode: time 1.944e-06/0.05127, allocations: 0 / 273.5 MB, free: 2.719 MB / 266.7 MB Notification: Performance of Templates: time 0.01849/0.06976, allocations: 17.45 MB / 291 MB, free: 1.598 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.sim & ./Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/PumpAndValve/PumpAndValve.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.9118168894201517]