Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe.mediums.1..h|pipe.mediums.1..p|pipe.mediums.2..h|pipe.mediums.2..p|pipe.mediums.3..h|pipe.mediums.3..p|pipe.mediums.4..h|pipe.mediums.4..p|pipe.mediums.5..h|pipe.mediums.5..p|m_flow_initial",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization") translateModel(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe.mediums.1..h|pipe.mediums.1..p|pipe.mediums.2..h|pipe.mediums.2..p|pipe.mediums.3..h|pipe.mediums.3..p|pipe.mediums.4..h|pipe.mediums.4..p|pipe.mediums.5..h|pipe.mediums.5..p|m_flow_initial",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001139/0.001139, allocations: 111.7 kB / 18.46 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00131/0.00131, allocations: 207.9 kB / 19.41 MB, free: 3.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.373/1.373, allocations: 227.4 MB / 247.6 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2109/0.2109, allocations: 46.1 MB / 345 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00139/0.00139, allocations: 75.88 kB / 482 MB, free: 4.09 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3229/0.3243, allocations: 62.44 MB / 0.5317 GB, free: 13.82 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization): time 0.04719/0.3716, allocations: 47.85 MB / 0.5784 GB, free: 1.879 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0323/0.4039, allocations: 25.91 MB / 0.6037 GB, free: 7.883 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001194/0.4052, allocations: 39.75 kB / 0.6037 GB, free: 7.844 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001302/0.4065, allocations: 0.5009 MB / 0.6042 GB, free: 7.34 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01456/0.4211, allocations: 5.869 MB / 0.61 GB, free: 1.469 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009271/0.4303, allocations: 3.961 MB / 0.6138 GB, free: 13.51 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.004471/0.4348, allocations: 4.297 MB / 0.618 GB, free: 9.199 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001215/0.4361, allocations: 1.003 MB / 0.619 GB, free: 8.172 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.05416/0.4902, allocations: 29.46 MB / 0.6478 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.02323/0.5135, allocations: 12.31 MB / 0.6598 GB, free: 13.95 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0004701/0.514, allocations: 180 kB / 0.66 GB, free: 13.77 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01572/0.5297, allocations: 8.577 MB / 0.6683 GB, free: 5.188 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0009679/0.5307, allocations: 0.8025 MB / 0.6691 GB, free: 4.383 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.001458/0.5322, allocations: 1.194 MB / 0.6703 GB, free: 3.184 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0123/0.5445, allocations: 7.611 MB / 0.6777 GB, free: 11.55 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.5445, allocations: 4 kB / 0.6777 GB, free: 11.55 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.735e-06/0.5445, allocations: 0 / 0.6777 GB, free: 11.55 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 2.371e-05/0.5446, allocations: 3.938 kB / 0.6777 GB, free: 11.55 MB / 0.5294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 509 * Number of variables: 509 Notification: Performance of Generate backend data structure: time 0.008335/0.5529, allocations: 3.444 MB / 0.6811 GB, free: 8.043 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.048e-05/0.553, allocations: 12.03 kB / 0.6811 GB, free: 8.031 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004615/0.5576, allocations: 0.6651 MB / 0.6817 GB, free: 7.363 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001919/0.5595, allocations: 1.25 MB / 0.683 GB, free: 6.07 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001474/0.5597, allocations: 167.2 kB / 0.6831 GB, free: 5.906 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002975/0.56, allocations: 167.9 kB / 0.6833 GB, free: 5.742 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006341/0.5663, allocations: 3.514 MB / 0.6867 GB, free: 2.102 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.243e-05/0.5664, allocations: 11.94 kB / 0.6867 GB, free: 2.09 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001955/0.5666, allocations: 71.92 kB / 0.6868 GB, free: 2.02 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002254/0.5668, allocations: 231.4 kB / 0.687 GB, free: 1.793 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006974/0.5738, allocations: 3.437 MB / 0.6904 GB, free: 14.35 MB / 0.545 GB 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.01748/0.5913, allocations: 14.08 MB / 0.7041 GB, free: 15.22 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005227/0.5966, allocations: 2.195 MB / 0.7063 GB, free: 12.99 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001893/0.5985, allocations: 1.17 MB / 0.7074 GB, free: 11.8 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3731/0.9716, allocations: 71 MB / 0.7767 GB, free: 117.9 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004286/0.9759, allocations: 1.672 MB / 0.7784 GB, free: 116.2 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=154): time 5.14e-06/0.976, allocations: 0 / 0.7784 GB, free: 116.2 MB / 0.5606 GB Notification: Performance of matching and sorting (n=174): time 0.02011/0.9961, allocations: 9.26 MB / 0.7874 GB, free: 107.1 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.354e-05/0.9962, allocations: 290.5 kB / 0.7877 GB, free: 106.7 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00161/0.9978, allocations: 1.325 MB / 0.789 GB, free: 105.4 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0001831/0.998, allocations: 57.7 kB / 0.789 GB, free: 105.3 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005563/0.9986, allocations: 0.8311 MB / 0.7899 GB, free: 104.5 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004579/0.999, allocations: 0.6116 MB / 0.7905 GB, free: 103.9 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006857/0.9997, allocations: 451.7 kB / 0.7909 GB, free: 103.4 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.283e-05/0.9998, allocations: 305.1 kB / 0.7912 GB, free: 103.1 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002039/1.002, allocations: 1.286 MB / 0.7924 GB, free: 101.8 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002325/1.004, allocations: 1.873 MB / 0.7943 GB, free: 99.7 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004252/1.008, allocations: 3.168 MB / 0.7974 GB, free: 96.3 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.835e-05/1.008, allocations: 4.875 kB / 0.7974 GB, free: 96.29 MB / 0.5606 GB Notification: Performance of matching and sorting (n=275) (initialization): time 0.006824/1.015, allocations: 4.345 MB / 0.8016 GB, free: 91.93 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.14e-05/1.015, allocations: 18.12 kB / 0.8016 GB, free: 91.92 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.809e-05/1.015, allocations: 16 kB / 0.8016 GB, free: 91.9 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01441/1.03, allocations: 3.573 MB / 0.8051 GB, free: 88.33 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001254/1.031, allocations: 338.5 kB / 0.8054 GB, free: 88 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006003/1.037, allocations: 3.956 MB / 0.8093 GB, free: 84.02 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001927/1.039, allocations: 143.8 kB / 0.8094 GB, free: 83.88 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003116/1.039, allocations: 108 kB / 0.8095 GB, free: 83.77 MB / 0.5606 GB Warning: Assuming fixed start value for the following 1 variables: m_flow_initial:DISCRETE(unit = "kg/s" fixed = true ) type: Real Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002848/1.042, allocations: 1.699 MB / 0.8112 GB, free: 82.06 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002228/1.045, allocations: 1.775 MB / 0.8129 GB, free: 80.03 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003978/1.049, allocations: 2.99 MB / 0.8159 GB, free: 76.81 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.57e-05/1.049, allocations: 4 kB / 0.8159 GB, free: 76.8 MB / 0.5606 GB Notification: Performance of matching and sorting (n=275) (initialization_lambda0): time 0.006902/1.055, allocations: 4.052 MB / 0.8198 GB, free: 72.74 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.917e-05/1.055, allocations: 12 kB / 0.8198 GB, free: 72.73 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.143e-05/1.056, allocations: 16 kB / 0.8198 GB, free: 72.71 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007789/1.063, allocations: 2.32 MB / 0.8221 GB, free: 70.39 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001243/1.065, allocations: 367.4 kB / 0.8225 GB, free: 70.03 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004035/1.069, allocations: 3.282 MB / 0.8257 GB, free: 66.73 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001689/1.07, allocations: 139.9 kB / 0.8258 GB, free: 66.59 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000225/1.071, allocations: 104 kB / 0.8259 GB, free: 66.49 MB / 0.5606 GB Warning: Assuming fixed start value for the following 1 variables: m_flow_initial:DISCRETE(unit = "kg/s" fixed = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 77 * Number of states: 0 () * Number of discrete variables: 17 (source.medium.phase,$PRE.m_flow_initial,m_flow_initial,$whenCondition2,$whenCondition1,pipe.state_a.phase,valve.state_b.phase,valve.state_a.phase,pipe.statesFM[6].phase,pipe.statesFM[5].phase,pipe.statesFM[4].phase,pipe.statesFM[3].phase,pipe.statesFM[2].phase,sink.state.phase,sink.medium.phase,pipe.state_b.phase,source.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (171): * Single equations (assignments): 170 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(14,91)} Notification: Performance of prepare postOptimizeDAE: time 0.0005951/1.071, allocations: 317.1 kB / 0.8262 GB, free: 66.17 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004066/1.072, allocations: 166 kB / 0.8264 GB, free: 66.01 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008011/1.08, allocations: 6.678 MB / 0.8329 GB, free: 59.3 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005539/1.085, allocations: 5.401 MB / 0.8382 GB, free: 53.79 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.908e-06/1.085, allocations: 4 kB / 0.8382 GB, free: 53.79 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009331/1.086, allocations: 0.6065 MB / 0.8388 GB, free: 53.16 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004377/1.087, allocations: 107.1 kB / 0.8389 GB, free: 53.05 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001504/1.088, allocations: 139.8 kB / 0.839 GB, free: 52.92 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003144/1.088, allocations: 185.7 kB / 0.8392 GB, free: 52.73 MB / 0.5606 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.006709/1.095, allocations: 5.014 MB / 0.8441 GB, free: 47.72 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.007465/1.103, allocations: 7.039 MB / 0.8509 GB, free: 40.65 MB / 0.5606 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002352/1.105, allocations: 2.215 MB / 0.8531 GB, free: 38.43 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002027/1.107, allocations: 1.244 MB / 0.8543 GB, free: 37.2 MB / 0.5606 GB Notification: Performance of Backend: time 1.042e-06/1.107, allocations: 0 / 0.8543 GB, free: 37.2 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01513/1.122, allocations: 5.586 MB / 0.8598 GB, free: 31.96 MB / 0.5606 GB Notification: Performance of SimCode: time 0.007341/1.13, allocations: 5.613 MB / 0.8653 GB, free: 26.32 MB / 0.5606 GB Notification: Performance of Templates: time 0.3663/1.496, allocations: 99.69 MB / 0.9626 GB, free: 228.8 MB / 0.6231 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestPipesAndValves/DynamicPipeInitialization/DynamicPipeInitialization.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches