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.001061/0.001061, allocations: 110.4 kB / 17.06 MB, free: 6.023 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.001109/0.001109, allocations: 191 kB / 18 MB, free: 5.105 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.352/1.352, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00155/0.001551, allocations: 47.91 kB / 351.3 MB, free: 3.285 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2761/0.2777, allocations: 49.43 MB / 400.7 MB, free: 8.766 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve): time 0.005248/0.283, allocations: 4.376 MB / 405.1 MB, free: 4.523 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002153/0.2851, allocations: 1.207 MB / 406.3 MB, free: 3.309 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000349/0.2855, allocations: 11.94 kB / 406.3 MB, free: 3.297 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003891/0.2859, allocations: 130.8 kB / 406.4 MB, free: 3.168 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000562/0.2865, allocations: 281.7 kB / 406.7 MB, free: 2.891 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005083/0.287, allocations: 191.7 kB / 406.9 MB, free: 2.703 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000948/0.288, allocations: 0.933 MB / 407.8 MB, free: 1.77 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003593/0.2883, allocations: 244.4 kB / 408.1 MB, free: 1.527 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004199/0.2888, allocations: 366.7 kB / 408.4 MB, free: 1.168 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004176/0.2892, allocations: 410.3 kB / 408.8 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001078/0.2893, allocations: 76 kB / 408.9 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001133/0.2894, allocations: 80 kB / 409 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001374/0.2896, allocations: 167.4 kB / 409.1 MB, free: 460 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003793/0.29, allocations: 418.1 kB / 409.5 MB, free: 40 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00088/0.2908, allocations: 0.9122 MB / 410.5 MB, free: 15.12 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.2909, allocations: 0 / 410.5 MB, free: 15.12 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.2909, allocations: 0 / 410.5 MB, free: 15.12 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.021e-05/0.2909, allocations: 4 kB / 410.5 MB, free: 15.12 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.001893/0.2928, allocations: 1.112 MB / 411.6 MB, free: 13.95 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.799e-05/0.2928, allocations: 19.95 kB / 411.6 MB, free: 13.93 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001453/0.293, allocations: 88 kB / 411.7 MB, free: 13.84 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006958/0.2937, allocations: 484.6 kB / 412.2 MB, free: 13.33 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001472/0.2938, allocations: 92.97 kB / 412.2 MB, free: 13.23 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.513e-05/0.2939, allocations: 44.38 kB / 412.3 MB, free: 13.18 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001189/0.2951, allocations: 0.6593 MB / 412.9 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.784e-05/0.2952, allocations: 0 / 412.9 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.533e-05/0.2952, allocations: 20 kB / 413 MB, free: 12.43 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.287e-05/0.2952, allocations: 12 kB / 413 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001089/0.2963, allocations: 447.7 kB / 413.4 MB, free: 11.98 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.002984/0.2993, allocations: 1.947 MB / 415.4 MB, free: 9.906 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001941/0.3013, allocations: 0.6989 MB / 416.1 MB, free: 9.176 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005759/0.3019, allocations: 262 kB / 416.3 MB, free: 8.918 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.447e-05/0.3019, allocations: 16.42 kB / 416.3 MB, free: 8.902 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.002e-05/0.302, allocations: 43 kB / 416.4 MB, free: 8.852 MB / 334.1 MB Notification: Performance of pre-optimization done (n=54): time 1.844e-06/0.302, allocations: 0 / 416.4 MB, free: 8.852 MB / 334.1 MB Notification: Performance of matching and sorting (n=54): time 0.005108/0.3071, allocations: 1.48 MB / 417.9 MB, free: 7.297 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00025/0.3074, allocations: 0.5644 MB / 418.4 MB, free: 6.598 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000628/0.308, allocations: 0.5342 MB / 419 MB, free: 6.051 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.125e-05/0.3081, allocations: 41.7 kB / 419 MB, free: 6.004 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000201/0.3083, allocations: 284.9 kB / 419.3 MB, free: 5.715 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001471/0.3084, allocations: 189.1 kB / 419.5 MB, free: 5.527 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001848/0.3086, allocations: 114.2 kB / 419.6 MB, free: 5.406 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001442/0.3088, allocations: 374.8 kB / 419.9 MB, free: 5.031 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005273/0.3093, allocations: 193 kB / 420.1 MB, free: 4.844 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006917/0.31, allocations: 417.9 kB / 420.5 MB, free: 4.359 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001118/0.3111, allocations: 496.5 kB / 421 MB, free: 3.859 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.3111, allocations: 0 / 421 MB, free: 3.859 MB / 334.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.002354/0.3135, allocations: 0.8068 MB / 421.8 MB, free: 3.027 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.66e-05/0.3136, allocations: 33.7 kB / 421.9 MB, free: 2.988 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.164e-06/0.3136, allocations: 0 / 421.9 MB, free: 2.988 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001127/0.3147, allocations: 222.4 kB / 422.1 MB, free: 2.762 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007379/0.3155, allocations: 127.8 kB / 422.2 MB, free: 2.637 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008019/0.3235, allocations: 5.611 MB / 427.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008261/0.3243, allocations: 75.67 kB / 427.9 MB, free: 12.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.337e-05/0.3244, allocations: 20 kB / 427.9 MB, free: 12.52 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.0003412/0.3247, allocations: 193.7 kB / 428.1 MB, free: 12.32 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001254/0.3249, allocations: 67.25 kB / 428.2 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002423/0.3273, allocations: 0.7773 MB / 428.9 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.3273, allocations: 4 kB / 428.9 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.994e-06/0.3273, allocations: 0 / 428.9 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002292/0.3296, allocations: 1.042 MB / 430 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003371/0.333, allocations: 1.498 MB / 431.5 MB, free: 8.734 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/0.333, allocations: 11.88 kB / 431.5 MB, free: 8.723 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000779/0.3338, allocations: 123.8 kB / 431.6 MB, free: 8.602 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000863/0.3347, allocations: 177.5 kB / 431.8 MB, free: 8.422 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.245e-05/0.3347, allocations: 12 kB / 431.8 MB, free: 8.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005472/0.3402, allocations: 3.807 MB / 435.6 MB, free: 4.32 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.3402, allocations: 0 / 435.6 MB, free: 4.32 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003131/0.3434, allocations: 1.071 MB / 436.7 MB, free: 3.227 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003083/0.3437, allocations: 208.1 kB / 436.9 MB, free: 3.004 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001111/0.3438, allocations: 12 kB / 436.9 MB, free: 2.992 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000541/0.3444, allocations: 39.97 kB / 436.9 MB, free: 2.953 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001196/0.3445, allocations: 44.48 kB / 437 MB, free: 2.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.253e-05/0.3445, allocations: 19.94 kB / 437 MB, free: 2.891 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004645/0.345, allocations: 382.8 kB / 437.4 MB, free: 2.52 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.345, allocations: 0 / 437.4 MB, free: 2.52 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007132/0.3457, allocations: 219.8 kB / 437.6 MB, free: 2.305 MB / 350.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.0001422/0.3459, allocations: 119.9 kB / 437.7 MB, free: 2.18 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002438/0.3483, allocations: 1.026 MB / 438.7 MB, free: 1.102 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.1e-06/0.3483, allocations: 4 kB / 438.7 MB, free: 1.098 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001037/0.3494, allocations: 0.5434 MB / 439.3 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008806/0.3503, allocations: 190.4 kB / 439.5 MB, free: 348 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002287/0.3526, allocations: 1.258 MB / 440.7 MB, free: 15.05 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005137/0.3531, allocations: 0.8878 MB / 441.6 MB, free: 14.14 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003471/0.3535, allocations: 81.12 kB / 441.7 MB, free: 14.06 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001364/0.3536, allocations: 47.44 kB / 441.7 MB, free: 14.01 MB / 366.1 MB Notification: Performance of SimCode: time 3.7e-07/0.3536, allocations: 4 kB / 441.7 MB, free: 14.01 MB / 366.1 MB Notification: Performance of Templates: time 0.02505/0.3787, allocations: 14.2 MB / 455.9 MB, free: 8 kB / 366.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