Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(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_4.0.0_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_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001258/0.001258, allocations: 109.4 kB / 18.45 MB, free: 4.598 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.001205/0.001205, allocations: 184.3 kB / 19.39 MB, free: 3.672 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.355/1.355, allocations: 222.9 MB / 243.1 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.206/0.206, allocations: 44.18 MB / 337.4 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001252, allocations: 63.89 kB / 471.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.353/0.3543, allocations: 60.83 MB / 0.5196 GB, free: 3.605 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization): time 0.05143/0.4058, allocations: 47.66 MB / 0.5661 GB, free: 12.26 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.03216/0.438, allocations: 25.89 MB / 0.5914 GB, free: 2.293 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001646/0.4397, allocations: 39.69 kB / 0.5914 GB, free: 2.254 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001504/0.4412, allocations: 0.5009 MB / 0.5919 GB, free: 1.75 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0167/0.4579, allocations: 5.882 MB / 0.5977 GB, free: 11.86 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01081/0.4688, allocations: 3.97 MB / 0.6016 GB, free: 7.895 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.005702/0.4745, allocations: 4.317 MB / 0.6058 GB, free: 3.559 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001637/0.4761, allocations: 1.015 MB / 0.6068 GB, free: 2.523 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.06552/0.5417, allocations: 29.44 MB / 0.6355 GB, free: 4.781 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02861/0.5703, allocations: 12.32 MB / 0.6475 GB, free: 8.312 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.000869/0.5712, allocations: 184 kB / 0.6477 GB, free: 8.133 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01981/0.5911, allocations: 8.557 MB / 0.6561 GB, free: 15.57 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.001523/0.5926, allocations: 0.7909 MB / 0.6568 GB, free: 14.77 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.003363/0.596, allocations: 1.194 MB / 0.658 GB, free: 13.57 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.02137/0.6174, allocations: 7.635 MB / 0.6655 GB, free: 5.918 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 7.925e-06/0.6175, allocations: 7.984 kB / 0.6655 GB, free: 5.91 MB / 0.5137 GB Notification: Performance of FrontEnd: time 3.006e-06/0.6175, allocations: 0 / 0.6655 GB, free: 5.91 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 0.0001346/0.6176, allocations: 0 / 0.6655 GB, free: 5.91 MB / 0.5137 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.01259/0.6302, allocations: 3.542 MB / 0.6689 GB, free: 2.301 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 5.585e-05/0.6303, allocations: 8.031 kB / 0.6689 GB, free: 2.293 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005099/0.6354, allocations: 0.6703 MB / 0.6696 GB, free: 1.621 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002886/0.6383, allocations: 1.258 MB / 0.6708 GB, free: 328 kB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002299/0.6385, allocations: 167.2 kB / 0.671 GB, free: 160 kB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006506/0.6392, allocations: 172 kB / 0.6711 GB, free: 15.98 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008536/0.6477, allocations: 3.526 MB / 0.6746 GB, free: 12.34 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.045e-05/0.6478, allocations: 11.92 kB / 0.6746 GB, free: 12.32 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003885/0.6482, allocations: 71.98 kB / 0.6747 GB, free: 12.25 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002731/0.6485, allocations: 223.4 kB / 0.6749 GB, free: 12.04 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007934/0.6565, allocations: 3.452 MB / 0.6783 GB, free: 8.578 MB / 0.5294 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.02041/0.6769, allocations: 14.12 MB / 0.692 GB, free: 9.41 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005425/0.6823, allocations: 2.21 MB / 0.6942 GB, free: 7.156 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002052/0.6844, allocations: 1.179 MB / 0.6954 GB, free: 5.965 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3277/1.012, allocations: 64.01 MB / 0.7579 GB, free: 146 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003971/1.016, allocations: 1.674 MB / 0.7595 GB, free: 144.3 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=154): time 6.052e-06/1.016, allocations: 0 / 0.7595 GB, free: 144.3 MB / 0.5606 GB Notification: Performance of matching and sorting (n=174): time 0.01704/1.033, allocations: 9.413 MB / 0.7687 GB, free: 135.1 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.815e-05/1.033, allocations: 286.5 kB / 0.769 GB, free: 134.8 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001298/1.035, allocations: 1.327 MB / 0.7703 GB, free: 133.5 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0001166/1.035, allocations: 57.7 kB / 0.7703 GB, free: 133.4 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004188/1.035, allocations: 0.8666 MB / 0.7712 GB, free: 132.6 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003126/1.036, allocations: 0.6292 MB / 0.7718 GB, free: 132.1 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005366/1.036, allocations: 455.8 kB / 0.7722 GB, free: 131.6 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 3.658e-05/1.036, allocations: 301.1 kB / 0.7725 GB, free: 131.3 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001798/1.038, allocations: 1.29 MB / 0.7738 GB, free: 130 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002031/1.04, allocations: 1.881 MB / 0.7756 GB, free: 127.9 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003764/1.044, allocations: 3.181 MB / 0.7787 GB, free: 124.5 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.123e-06/1.044, allocations: 8 kB / 0.7787 GB, free: 124.5 MB / 0.5606 GB Notification: Performance of matching and sorting (n=275) (initialization): time 0.006055/1.05, allocations: 4.376 MB / 0.783 GB, free: 120.1 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.167e-05/1.05, allocations: 12 kB / 0.783 GB, free: 120.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.82e-05/1.05, allocations: 19.94 kB / 0.783 GB, free: 120.1 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01374/1.064, allocations: 3.69 MB / 0.7866 GB, free: 116.4 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00115/1.065, allocations: 331.4 kB / 0.7869 GB, free: 116 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005221/1.07, allocations: 3.998 MB / 0.7908 GB, free: 112 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001622/1.072, allocations: 143.9 kB / 0.791 GB, free: 111.9 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000166/1.072, allocations: 108 kB / 0.7911 GB, free: 111.8 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.002408/1.074, allocations: 1.702 MB / 0.7927 GB, free: 110.1 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001943/1.076, allocations: 1.775 MB / 0.7945 GB, free: 108 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003585/1.08, allocations: 3.005 MB / 0.7974 GB, free: 104.8 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.414e-06/1.08, allocations: 4 kB / 0.7974 GB, free: 104.8 MB / 0.5606 GB Notification: Performance of matching and sorting (n=275) (initialization_lambda0): time 0.006257/1.086, allocations: 4.095 MB / 0.8014 GB, free: 100.7 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.809e-05/1.086, allocations: 16.88 kB / 0.8014 GB, free: 100.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.799e-05/1.086, allocations: 20 kB / 0.8014 GB, free: 100.6 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007928/1.094, allocations: 2.472 MB / 0.8039 GB, free: 98.17 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001189/1.095, allocations: 379 kB / 0.8042 GB, free: 97.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004025/1.099, allocations: 3.293 MB / 0.8074 GB, free: 94.48 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002072/1.101, allocations: 139.8 kB / 0.8076 GB, free: 94.35 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001754/1.102, allocations: 104 kB / 0.8077 GB, free: 94.25 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.000745/1.102, allocations: 322.7 kB / 0.808 GB, free: 93.94 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004097/1.103, allocations: 174.9 kB / 0.8081 GB, free: 93.77 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008861/1.112, allocations: 6.705 MB / 0.8147 GB, free: 87.1 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005329/1.117, allocations: 5.402 MB / 0.82 GB, free: 81.59 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.777e-06/1.117, allocations: 4 kB / 0.82 GB, free: 81.58 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00102/1.118, allocations: 0.6158 MB / 0.8206 GB, free: 80.99 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003071/1.118, allocations: 113.6 kB / 0.8207 GB, free: 80.89 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001143/1.12, allocations: 139.8 kB / 0.8208 GB, free: 80.76 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002942/1.12, allocations: 181.7 kB / 0.821 GB, free: 80.58 MB / 0.5606 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.006259/1.126, allocations: 5.035 MB / 0.8259 GB, free: 75.55 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0072/1.133, allocations: 7.082 MB / 0.8328 GB, free: 68.44 MB / 0.5606 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002128/1.135, allocations: 2.219 MB / 0.835 GB, free: 66.22 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001408/1.137, allocations: 1.247 MB / 0.8362 GB, free: 64.98 MB / 0.5606 GB Notification: Performance of Backend: time 2.2e-07/1.137, allocations: 3.938 kB / 0.8362 GB, free: 64.98 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01331/1.15, allocations: 5.635 MB / 0.8417 GB, free: 59.58 MB / 0.5606 GB Notification: Performance of SimCode: time 0.006256/1.156, allocations: 5.699 MB / 0.8473 GB, free: 53.84 MB / 0.5606 GB Notification: Performance of Templates: time 0.1195/1.276, allocations: 98.08 MB / 0.9431 GB, free: 4.039 MB / 0.6075 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches