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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=4000,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=4000,variableFilter="time|heatCapacitor.T|pipe.T|speed.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009902/0.0009905, allocations: 87.23 kB / 16.31 MB, free: 6.461 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001254/0.001255, allocations: 179.1 kB / 17.21 MB, free: 6.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.334/1.334, allocations: 223.2 MB / 241.2 MB, free: 5.402 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002636/0.0002637, allocations: 6.094 kB / 300.8 MB, free: 6.074 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08696/0.08725, allocations: 50.43 MB / 351.2 MB, free: 11.66 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve): time 0.003899/0.09119, allocations: 3.796 MB / 355 MB, free: 7.844 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001763/0.09297, allocations: 1.091 MB / 356.1 MB, free: 6.746 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002348/0.09323, allocations: 12 kB / 356.1 MB, free: 6.734 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002662/0.0935, allocations: 99.22 kB / 356.2 MB, free: 6.637 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004557/0.09397, allocations: 226.1 kB / 356.5 MB, free: 6.414 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003274/0.09431, allocations: 147.8 kB / 356.6 MB, free: 6.27 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000744/0.09506, allocations: 0.8165 MB / 357.4 MB, free: 5.449 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003045/0.09537, allocations: 204.7 kB / 357.6 MB, free: 5.234 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003503/0.09573, allocations: 318.8 kB / 357.9 MB, free: 4.922 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003707/0.09611, allocations: 358.5 kB / 358.3 MB, free: 4.57 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.554e-05/0.0962, allocations: 48 kB / 358.3 MB, free: 4.523 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001021/0.09631, allocations: 56 kB / 358.4 MB, free: 4.469 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001223/0.09644, allocations: 139.5 kB / 358.5 MB, free: 4.332 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001368/0.09659, allocations: 165.3 kB / 358.7 MB, free: 4.164 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005812/0.09717, allocations: 0.666 MB / 359.3 MB, free: 3.496 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.09718, allocations: 0 / 359.3 MB, free: 3.496 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.09719, allocations: 0 / 359.3 MB, free: 3.496 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.828e-06/0.09721, allocations: 0 / 359.3 MB, free: 3.496 MB / 286.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.001654/0.09886, allocations: 1.01 MB / 360.4 MB, free: 2.426 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.589e-05/0.09891, allocations: 8.031 kB / 360.4 MB, free: 2.418 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001392/0.09905, allocations: 87.06 kB / 360.4 MB, free: 2.332 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006108/0.09967, allocations: 455.8 kB / 360.9 MB, free: 1.844 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001462/0.09983, allocations: 104.4 kB / 361 MB, free: 1.73 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.389e-05/0.09991, allocations: 44 kB / 361 MB, free: 1.688 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001097/0.101, allocations: 0.66 MB / 361.7 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.149e-05/0.1011, allocations: 3.984 kB / 361.7 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.192e-05/0.1011, allocations: 20 kB / 361.7 MB, free: 0.9297 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.09e-05/0.1011, allocations: 8 kB / 361.7 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001052/0.1022, allocations: 487.6 kB / 362.2 MB, free: 456 kB / 286.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.002851/0.105, allocations: 1.975 MB / 364.2 MB, free: 14.34 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001862/0.1069, allocations: 0.7018 MB / 364.9 MB, free: 13.61 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005508/0.1075, allocations: 278.8 kB / 365.1 MB, free: 13.34 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.074e-05/0.1075, allocations: 16.41 kB / 365.2 MB, free: 13.32 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.268e-05/0.1076, allocations: 46.94 kB / 365.2 MB, free: 13.27 MB / 302.1 MB Notification: Performance of pre-optimization done (n=54): time 3.376e-06/0.1076, allocations: 7.984 kB / 365.2 MB, free: 13.26 MB / 302.1 MB Notification: Performance of matching and sorting (n=54): time 0.004717/0.1123, allocations: 1.577 MB / 366.8 MB, free: 11.61 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002414/0.1126, allocations: 0.5722 MB / 367.4 MB, free: 10.9 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000673/0.1133, allocations: 0.542 MB / 367.9 MB, free: 10.35 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.373e-05/0.1133, allocations: 37.7 kB / 367.9 MB, free: 10.31 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002237/0.1136, allocations: 284.7 kB / 368.2 MB, free: 10.02 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001733/0.1137, allocations: 185.2 kB / 368.4 MB, free: 9.84 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.875e-05/0.1138, allocations: 8 kB / 368.4 MB, free: 9.832 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001629/0.1139, allocations: 378.8 kB / 368.8 MB, free: 9.453 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005068/0.1145, allocations: 209 kB / 369 MB, free: 9.25 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006885/0.1152, allocations: 424.6 kB / 369.4 MB, free: 8.758 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005556/0.1157, allocations: 279.8 kB / 369.7 MB, free: 8.484 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.786e-06/0.1157, allocations: 0 / 369.7 MB, free: 8.484 MB / 302.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.002202/0.1179, allocations: 0.8576 MB / 370.5 MB, free: 7.602 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.84e-05/0.118, allocations: 32.36 kB / 370.6 MB, free: 7.566 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.118, allocations: 0 / 370.6 MB, free: 7.566 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009726/0.119, allocations: 234.4 kB / 370.8 MB, free: 7.328 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006774/0.1197, allocations: 131.8 kB / 370.9 MB, free: 7.199 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006877/0.1266, allocations: 5.235 MB / 376.2 MB, free: 1.566 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006584/0.1272, allocations: 83.8 kB / 376.2 MB, free: 1.484 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.287e-05/0.1273, allocations: 19.98 kB / 376.3 MB, free: 1.465 MB / 302.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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {5 2,1 1,1 9} Notification: Performance of prepare postOptimizeDAE: time 0.0002794/0.1276, allocations: 197.9 kB / 376.5 MB, free: 1.262 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001066/0.1277, allocations: 71.16 kB / 376.5 MB, free: 1.191 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002238/0.1299, allocations: 0.8281 MB / 377.3 MB, free: 352 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.47e-06/0.13, allocations: 4 kB / 377.4 MB, free: 348 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.13, allocations: 4 kB / 377.4 MB, free: 344 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002118/0.1321, allocations: 1.078 MB / 378.4 MB, free: 15.14 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003028/0.1351, allocations: 1.545 MB / 380 MB, free: 13.54 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.1351, allocations: 4 kB / 380 MB, free: 13.54 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007185/0.1359, allocations: 139.8 kB / 380.1 MB, free: 13.4 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007851/0.1367, allocations: 177.6 kB / 380.3 MB, free: 13.22 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.688e-05/0.1367, allocations: 19.98 kB / 380.3 MB, free: 13.2 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00474/0.1415, allocations: 3.529 MB / 383.8 MB, free: 9.398 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.1415, allocations: 3.938 kB / 383.8 MB, free: 9.395 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002742/0.1442, allocations: 1.125 MB / 385 MB, free: 8.25 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002728/0.1445, allocations: 208.1 kB / 385.2 MB, free: 8.027 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.78e-05/0.1446, allocations: 19.94 kB / 385.2 MB, free: 8.008 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000473/0.1451, allocations: 43.97 kB / 385.2 MB, free: 7.965 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.832e-05/0.1452, allocations: 44.5 kB / 385.3 MB, free: 7.922 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.898e-05/0.1453, allocations: 11.98 kB / 385.3 MB, free: 7.91 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004535/0.1457, allocations: 386.8 kB / 385.7 MB, free: 7.535 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1457, allocations: 0 / 385.7 MB, free: 7.535 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00076/0.1465, allocations: 223.7 kB / 385.9 MB, free: 7.316 MB / 318.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001545/0.1466, allocations: 126.2 kB / 386 MB, free: 7.188 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002169/0.1488, allocations: 1.062 MB / 387.1 MB, free: 6.07 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.1488, allocations: 0 / 387.1 MB, free: 6.07 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009656/0.1498, allocations: 0.5435 MB / 387.6 MB, free: 5.504 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008038/0.1506, allocations: 182.4 kB / 387.8 MB, free: 5.324 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002195/0.1528, allocations: 1.54 MB / 389.3 MB, free: 3.754 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004558/0.1533, allocations: 0.8917 MB / 390.2 MB, free: 2.828 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003503/0.1537, allocations: 77.12 kB / 390.3 MB, free: 2.754 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001376/0.1538, allocations: 51.42 kB / 390.4 MB, free: 2.707 MB / 318.1 MB Notification: Performance of SimCode: time 4.51e-07/0.1538, allocations: 4 kB / 390.4 MB, free: 2.703 MB / 318.1 MB Notification: Performance of Templates: time 0.02158/0.1754, allocations: 12.44 MB / 402.8 MB, free: 6.461 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.makefile (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) 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) Reference file matches