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.001219/0.001218, allocations: 113.9 kB / 18.45 MB, free: 4.617 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.001085/0.001085, allocations: 186.1 kB / 19.39 MB, free: 3.691 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.342/1.342, allocations: 222.9 MB / 243.1 MB, free: 15.05 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.2075/0.2075, allocations: 44.19 MB / 337.4 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002449/0.002449, allocations: 71.89 kB / 471.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.409/0.4115, allocations: 60.82 MB / 0.5196 GB, free: 3.605 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization): time 0.0451/0.4566, allocations: 47.67 MB / 0.5661 GB, free: 12.25 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0317/0.4884, allocations: 25.89 MB / 0.5914 GB, free: 2.285 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00131/0.4897, allocations: 39.69 kB / 0.5914 GB, free: 2.246 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001488/0.4912, allocations: 0.5009 MB / 0.5919 GB, free: 1.742 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01832/0.5096, allocations: 5.882 MB / 0.5977 GB, free: 11.85 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01212/0.5217, allocations: 3.963 MB / 0.6015 GB, free: 7.891 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.005037/0.5268, allocations: 4.324 MB / 0.6058 GB, free: 3.551 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001773/0.5285, allocations: 1.015 MB / 0.6068 GB, free: 2.516 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.06081/0.5894, allocations: 29.44 MB / 0.6355 GB, free: 4.773 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02454/0.6139, allocations: 12.32 MB / 0.6475 GB, free: 8.301 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0007084/0.6147, allocations: 180 kB / 0.6477 GB, free: 8.125 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01889/0.6336, allocations: 8.557 MB / 0.6561 GB, free: 15.56 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.00137/0.635, allocations: 0.7909 MB / 0.6568 GB, free: 14.77 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.002497/0.6375, allocations: 1.194 MB / 0.658 GB, free: 13.57 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.01545/0.653, allocations: 7.635 MB / 0.6655 GB, free: 5.91 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.653, allocations: 4 kB / 0.6655 GB, free: 5.906 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.613e-06/0.653, allocations: 0 / 0.6655 GB, free: 5.906 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 0.0001024/0.6531, allocations: 4 kB / 0.6655 GB, free: 5.902 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.01173/0.6649, allocations: 3.538 MB / 0.6689 GB, free: 2.297 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.916e-05/0.6649, allocations: 8.031 kB / 0.6689 GB, free: 2.289 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005294/0.6702, allocations: 0.6781 MB / 0.6696 GB, free: 1.609 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002609/0.6729, allocations: 1.262 MB / 0.6708 GB, free: 312 kB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001999/0.6731, allocations: 163.2 kB / 0.671 GB, free: 148 kB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005529/0.6736, allocations: 168 kB / 0.6711 GB, free: 15.98 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008574/0.6822, allocations: 3.522 MB / 0.6746 GB, free: 12.33 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.822e-05/0.6823, allocations: 7.938 kB / 0.6746 GB, free: 12.32 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000325/0.6826, allocations: 75.98 kB / 0.6747 GB, free: 12.25 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002379/0.6829, allocations: 223.4 kB / 0.6749 GB, free: 12.03 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00736/0.6902, allocations: 3.456 MB / 0.6783 GB, free: 8.57 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.01684/0.7071, allocations: 14.12 MB / 0.692 GB, free: 9.398 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005206/0.7123, allocations: 2.211 MB / 0.6942 GB, free: 7.141 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001972/0.7143, allocations: 1.179 MB / 0.6954 GB, free: 5.949 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4818/1.196, allocations: 64.01 MB / 0.7579 GB, free: 146 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006964/1.203, allocations: 1.676 MB / 0.7595 GB, free: 144.3 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=154): time 6.542e-06/1.203, allocations: 0 / 0.7595 GB, free: 144.3 MB / 0.5606 GB Notification: Performance of matching and sorting (n=174): time 0.03218/1.235, allocations: 9.42 MB / 0.7687 GB, free: 135.1 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.234e-05/1.235, allocations: 274.3 kB / 0.769 GB, free: 134.8 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002402/1.238, allocations: 1.333 MB / 0.7703 GB, free: 133.5 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0002672/1.238, allocations: 57.7 kB / 0.7703 GB, free: 133.4 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005826/1.239, allocations: 0.8622 MB / 0.7712 GB, free: 132.6 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005375/1.239, allocations: 0.6292 MB / 0.7718 GB, free: 132.1 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007948/1.24, allocations: 455.8 kB / 0.7722 GB, free: 131.6 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.044e-05/1.24, allocations: 301.1 kB / 0.7725 GB, free: 131.3 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002551/1.243, allocations: 1.298 MB / 0.7738 GB, free: 130 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002752/1.246, allocations: 1.869 MB / 0.7756 GB, free: 127.9 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004437/1.25, allocations: 3.184 MB / 0.7787 GB, free: 124.5 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-05/1.25, allocations: 4 kB / 0.7787 GB, free: 124.5 MB / 0.5606 GB Notification: Performance of matching and sorting (n=275) (initialization): time 0.006747/1.257, allocations: 4.374 MB / 0.783 GB, free: 120.1 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.865e-05/1.257, allocations: 16.22 kB / 0.783 GB, free: 120.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.647e-05/1.257, allocations: 23.94 kB / 0.783 GB, free: 120 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0144/1.271, allocations: 3.685 MB / 0.7866 GB, free: 116.4 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001223/1.272, allocations: 331.4 kB / 0.7869 GB, free: 116 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00583/1.278, allocations: 4.006 MB / 0.7908 GB, free: 112 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002035/1.28, allocations: 138 kB / 0.791 GB, free: 111.9 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001896/1.281, 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.002709/1.283, allocations: 1.706 MB / 0.7927 GB, free: 110.1 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002101/1.285, allocations: 1.783 MB / 0.7945 GB, free: 108 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003853/1.289, allocations: 2.999 MB / 0.7974 GB, free: 104.8 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.756e-06/1.289, 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.006819/1.296, allocations: 4.096 MB / 0.8014 GB, free: 100.7 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.285e-05/1.296, allocations: 15.94 kB / 0.8014 GB, free: 100.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.914e-05/1.296, allocations: 16 kB / 0.8014 GB, free: 100.6 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008445/1.305, allocations: 2.468 MB / 0.8039 GB, free: 98.16 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00135/1.306, allocations: 373.2 kB / 0.8042 GB, free: 97.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004122/1.31, allocations: 3.297 MB / 0.8074 GB, free: 94.48 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001957/1.312, allocations: 150.5 kB / 0.8076 GB, free: 94.34 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001561/1.312, allocations: 104 kB / 0.8077 GB, free: 94.23 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.0006276/1.313, allocations: 314.5 kB / 0.808 GB, free: 93.93 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003189/1.313, allocations: 174.9 kB / 0.8081 GB, free: 93.76 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007762/1.321, allocations: 6.705 MB / 0.8147 GB, free: 87.09 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005565/1.327, allocations: 5.423 MB / 0.82 GB, free: 81.57 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.918e-06/1.327, allocations: 0 / 0.82 GB, free: 81.57 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001046/1.328, allocations: 0.6115 MB / 0.8206 GB, free: 80.98 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003497/1.328, allocations: 108.4 kB / 0.8207 GB, free: 80.89 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00129/1.329, allocations: 147.8 kB / 0.8208 GB, free: 80.74 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003337/1.33, allocations: 177.7 kB / 0.821 GB, free: 80.57 MB / 0.5606 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.006586/1.336, allocations: 5.031 MB / 0.8259 GB, free: 75.54 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.007562/1.344, allocations: 7.083 MB / 0.8328 GB, free: 68.43 MB / 0.5606 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002324/1.346, allocations: 2.215 MB / 0.835 GB, free: 66.21 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001634/1.348, allocations: 1.251 MB / 0.8362 GB, free: 64.97 MB / 0.5606 GB Notification: Performance of Backend: time 7.41e-07/1.348, allocations: 0 / 0.8362 GB, free: 64.97 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0159/1.364, allocations: 5.634 MB / 0.8417 GB, free: 59.57 MB / 0.5606 GB Notification: Performance of SimCode: time 0.007283/1.371, allocations: 5.696 MB / 0.8473 GB, free: 53.84 MB / 0.5606 GB Notification: Performance of Templates: time 0.1258/1.497, allocations: 98.08 MB / 0.9431 GB, free: 4.043 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