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.001826/0.001826, allocations: 112.2 kB / 19.04 MB, free: 3.254 MB / 14.72 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.002072/0.002072, allocations: 196.4 kB / 22.22 MB, free: 72 kB / 14.72 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 1.511/1.511, allocations: 225.6 MB / 250.8 MB, free: 13.36 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001534/0.001534, allocations: 47.92 kB / 368.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2451/0.2467, allocations: 52.14 MB / 420.9 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve): time 0.006049/0.2527, allocations: 4.421 MB / 425.3 MB, free: 10.72 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002617/0.2553, allocations: 1.219 MB / 426.5 MB, free: 9.492 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003893/0.2557, allocations: 8 kB / 426.5 MB, free: 9.484 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004604/0.2562, allocations: 134.8 kB / 426.6 MB, free: 9.352 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006038/0.2568, allocations: 273.8 kB / 426.9 MB, free: 9.082 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004863/0.2573, allocations: 195.7 kB / 427.1 MB, free: 8.891 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001023/0.2583, allocations: 0.9328 MB / 428 MB, free: 7.957 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003093/0.2586, allocations: 162.2 kB / 428.2 MB, free: 7.793 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004489/0.2591, allocations: 362.7 kB / 428.5 MB, free: 7.438 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004762/0.2595, allocations: 406.3 kB / 428.9 MB, free: 7.039 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001154/0.2596, allocations: 76 kB / 429 MB, free: 6.965 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000124/0.2598, allocations: 76 kB / 429.1 MB, free: 6.891 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001593/0.2599, allocations: 171.4 kB / 429.3 MB, free: 6.723 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004162/0.2603, allocations: 426.1 kB / 429.7 MB, free: 6.305 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009984/0.2613, allocations: 0.9179 MB / 430.6 MB, free: 5.387 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.2613, allocations: 0 / 430.6 MB, free: 5.387 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.2613, allocations: 4 kB / 430.6 MB, free: 5.383 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.16e-05/0.2614, allocations: 0 / 430.6 MB, free: 5.383 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: 111 * Number of variables: 111 Notification: Performance of Generate backend data structure: time 0.00214/0.2635, allocations: 1.132 MB / 431.7 MB, free: 4.188 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.816e-05/0.2635, allocations: 8.031 kB / 431.7 MB, free: 4.18 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001574/0.2637, allocations: 96.42 kB / 431.8 MB, free: 4.086 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00079/0.2645, allocations: 489 kB / 432.3 MB, free: 3.57 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001584/0.2646, allocations: 96.97 kB / 432.4 MB, free: 3.465 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.301e-05/0.2647, allocations: 56.31 kB / 432.5 MB, free: 3.41 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001226/0.266, allocations: 0.6476 MB / 433.1 MB, free: 2.684 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.973e-05/0.266, allocations: 0 / 433.1 MB, free: 2.684 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.548e-05/0.266, allocations: 20 kB / 433.1 MB, free: 2.664 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.11e-05/0.266, allocations: 12 kB / 433.1 MB, free: 2.652 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001083/0.2671, allocations: 455.7 kB / 433.6 MB, free: 2.211 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.003311/0.2704, allocations: 1.952 MB / 435.5 MB, free: 136 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002001/0.2724, allocations: 0.6516 MB / 436.2 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005737/0.273, allocations: 240.9 kB / 436.4 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.278e-05/0.2731, allocations: 8.422 kB / 436.4 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.11e-05/0.2731, allocations: 54.94 kB / 436.5 MB, free: 15.14 MB / 350.1 MB Notification: Performance of pre-optimization done (n=54): time 2.394e-06/0.2731, allocations: 0 / 436.5 MB, free: 15.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=54): time 0.00534/0.2785, allocations: 1.476 MB / 438 MB, free: 13.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003428/0.2788, allocations: 0.5683 MB / 438.5 MB, free: 12.89 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007335/0.2795, allocations: 0.5382 MB / 439.1 MB, free: 12.34 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.806e-05/0.2796, allocations: 37.7 kB / 439.1 MB, free: 12.3 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002538/0.2799, allocations: 285.1 kB / 439.4 MB, free: 12.01 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002033/0.2801, allocations: 198.3 kB / 439.6 MB, free: 11.81 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002216/0.2803, allocations: 114.2 kB / 439.7 MB, free: 11.69 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002037/0.2805, allocations: 370.8 kB / 440 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005435/0.281, allocations: 197 kB / 440.2 MB, free: 11.13 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008911/0.2819, allocations: 420.2 kB / 440.6 MB, free: 10.64 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001138/0.2831, allocations: 492.5 kB / 441.1 MB, free: 10.14 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.084e-06/0.2831, allocations: 4 kB / 441.1 MB, free: 10.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.00251/0.2856, allocations: 0.7954 MB / 441.9 MB, free: 9.32 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.864e-05/0.2856, allocations: 41.72 kB / 442 MB, free: 9.273 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.047e-05/0.2856, allocations: 4 kB / 442 MB, free: 9.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001082/0.2867, allocations: 226.3 kB / 442.2 MB, free: 9.039 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007221/0.2874, allocations: 127.8 kB / 442.3 MB, free: 8.914 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008234/0.2957, allocations: 5.6 MB / 447.9 MB, free: 2.902 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007494/0.2964, allocations: 67.75 kB / 448 MB, free: 2.836 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.897e-05/0.2965, allocations: 20 kB / 448 MB, free: 2.816 MB / 350.1 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.0003168/0.2968, allocations: 209.6 kB / 448.2 MB, free: 2.602 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001249/0.2969, allocations: 75.66 kB / 448.3 MB, free: 2.527 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002339/0.2993, allocations: 0.7656 MB / 449 MB, free: 1.75 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.827e-06/0.2993, allocations: 8 kB / 449.1 MB, free: 1.742 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.958e-06/0.2993, allocations: 4 kB / 449.1 MB, free: 1.738 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002321/0.3016, allocations: 1.039 MB / 450.1 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003467/0.3051, allocations: 1.49 MB / 451.6 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.993e-06/0.3051, allocations: 3.938 kB / 451.6 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007537/0.3058, allocations: 131.8 kB / 451.7 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008465/0.3067, allocations: 169.6 kB / 451.9 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.348e-05/0.3067, allocations: 23.86 kB / 451.9 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0056/0.3123, allocations: 3.795 MB / 455.7 MB, free: 10.62 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.3123, allocations: 0 / 455.7 MB, free: 10.62 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002901/0.3152, allocations: 1.071 MB / 456.8 MB, free: 9.523 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003208/0.3155, allocations: 208.5 kB / 457 MB, free: 9.301 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001007/0.3156, allocations: 12 kB / 457 MB, free: 9.289 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005044/0.3161, allocations: 39.95 kB / 457 MB, free: 9.25 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001284/0.3163, allocations: 48.5 kB / 457.1 MB, free: 9.203 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.576e-05/0.3163, allocations: 19.94 kB / 457.1 MB, free: 9.184 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000517/0.3168, allocations: 386.8 kB / 457.5 MB, free: 8.809 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3168, allocations: 0 / 457.5 MB, free: 8.809 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007294/0.3175, allocations: 215.8 kB / 457.7 MB, free: 8.598 MB / 366.1 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.0001634/0.3177, allocations: 120.2 kB / 457.8 MB, free: 8.473 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002421/0.3201, allocations: 1.014 MB / 458.8 MB, free: 7.406 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.3201, allocations: 0 / 458.8 MB, free: 7.406 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001073/0.3212, allocations: 0.52 MB / 459.3 MB, free: 6.859 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008286/0.322, allocations: 178.3 kB / 459.5 MB, free: 6.684 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002321/0.3244, allocations: 1.293 MB / 460.8 MB, free: 5.363 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005241/0.3249, allocations: 0.884 MB / 461.7 MB, free: 4.453 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003198/0.3252, allocations: 85.11 kB / 461.8 MB, free: 4.367 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001404/0.3253, allocations: 51.44 kB / 461.8 MB, free: 4.316 MB / 366.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3253, allocations: 0 / 461.8 MB, free: 4.316 MB / 366.1 MB Notification: Performance of Templates: time 0.02461/0.35, allocations: 14.54 MB / 476.4 MB, free: 5.973 MB / 382.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.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: 5.0876648761332035]