Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.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.SeriesPipes1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe2.mediums.1..h|pipe2.mediums.1..p|pipe2.mediums.2..h|pipe2.mediums.2..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valve.filter.x.1.|valve.filter.x.2.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1") translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe2.mediums.1..h|pipe2.mediums.1..p|pipe2.mediums.2..h|pipe2.mediums.2..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valve.filter.x.1.|valve.filter.x.2.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001386/0.001386, allocations: 106.8 kB / 18.45 MB, free: 4.699 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.001348/0.001349, allocations: 183.1 kB / 19.38 MB, free: 3.777 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.357/1.357, allocations: 222.9 MB / 243.1 MB, free: 15.15 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.2012/0.2012, allocations: 44.19 MB / 337.4 MB, free: 2.699 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001242, allocations: 67.89 kB / 471.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2966/0.2978, allocations: 60.82 MB / 0.5196 GB, free: 3.629 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1): time 0.08599/0.3838, allocations: 91.74 MB / 0.6091 GB, free: 100 kB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.04661/0.4305, allocations: 37.29 MB / 0.6456 GB, free: 10.7 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002239/0.4328, allocations: 91.5 kB / 0.6456 GB, free: 10.61 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.002717/0.4355, allocations: 1.161 MB / 0.6468 GB, free: 9.438 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.01977/0.4553, allocations: 8.021 MB / 0.6546 GB, free: 1.402 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.01965/0.475, allocations: 9.081 MB / 0.6635 GB, free: 8.328 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.008088/0.4831, allocations: 6.621 MB / 0.6699 GB, free: 1.684 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002656/0.4857, allocations: 1.5 MB / 0.6714 GB, free: 164 kB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004955/0.4907, allocations: 2.609 MB / 0.674 GB, free: 13.54 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.02483/0.5156, allocations: 13.52 MB / 0.6872 GB, free: 15.83 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0008295/0.5164, allocations: 220 kB / 0.6874 GB, free: 15.61 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01934/0.5358, allocations: 10.46 MB / 0.6976 GB, free: 5.141 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.001652/0.5375, allocations: 0.9427 MB / 0.6985 GB, free: 4.195 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.00275/0.5402, allocations: 1.396 MB / 0.6999 GB, free: 2.793 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.01918/0.5594, allocations: 9.536 MB / 0.7092 GB, free: 9.227 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.5595, allocations: 0 / 0.7092 GB, free: 9.227 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.082e-06/0.5595, allocations: 0 / 0.7092 GB, free: 9.227 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 9.864e-05/0.5596, allocations: 0 / 0.7092 GB, free: 9.227 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 512 * Number of variables: 512 Notification: Performance of Generate backend data structure: time 0.01067/0.5702, allocations: 4.189 MB / 0.7133 GB, free: 4.957 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.711e-05/0.5703, allocations: 12.03 kB / 0.7133 GB, free: 4.945 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00604/0.5763, allocations: 0.8257 MB / 0.7141 GB, free: 4.117 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2412/0.8175, allocations: 6.695 MB / 0.7206 GB, free: 150 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002427/0.8178, allocations: 179.6 kB / 0.7208 GB, free: 150 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006993/0.8185, allocations: 195.8 kB / 0.721 GB, free: 150 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007757/0.8263, allocations: 3.48 MB / 0.7244 GB, free: 149.6 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.189e-05/0.8264, allocations: 10.69 kB / 0.7244 GB, free: 149.6 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002168/0.8266, allocations: 88.95 kB / 0.7245 GB, free: 149.6 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002254/0.8268, allocations: 188.9 kB / 0.7247 GB, free: 149.6 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007469/0.8343, allocations: 3.227 MB / 0.7278 GB, free: 149.6 MB / 0.5606 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.01596/0.8503, allocations: 15.13 MB / 0.7426 GB, free: 140.6 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005053/0.8554, allocations: 2.255 MB / 0.7448 GB, free: 139.9 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001629/0.857, allocations: 1.136 MB / 0.7459 GB, free: 139.5 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04352/0.9005, allocations: 24.68 MB / 0.77 GB, free: 120.1 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004154/0.9047, allocations: 1.609 MB / 0.7716 GB, free: 118.5 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=155): time 3.897e-06/0.9047, allocations: 0 / 0.7716 GB, free: 118.5 MB / 0.5606 GB Notification: Performance of matching and sorting (n=171): time 0.02107/0.9258, allocations: 8.693 MB / 0.7801 GB, free: 109.8 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.988e-05/0.9259, allocations: 226.9 kB / 0.7803 GB, free: 109.6 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001694/0.9276, allocations: 1.634 MB / 0.7819 GB, free: 107.9 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0001651/0.9278, allocations: 57.7 kB / 0.7819 GB, free: 107.9 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.000543/0.9283, allocations: 1.007 MB / 0.7829 GB, free: 106.9 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003443/0.9287, allocations: 0.6106 MB / 0.7835 GB, free: 106.4 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005555/0.9292, allocations: 439.4 kB / 0.7839 GB, free: 106 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 3.146e-05/0.9293, allocations: 301.1 kB / 0.7842 GB, free: 105.7 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001837/0.9311, allocations: 1.161 MB / 0.7854 GB, free: 104.5 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002048/0.9332, allocations: 1.656 MB / 0.787 GB, free: 102.7 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00385/0.937, allocations: 2.882 MB / 0.7898 GB, free: 99.63 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.426e-06/0.9371, allocations: 4 kB / 0.7898 GB, free: 99.63 MB / 0.5606 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.005357/0.9424, allocations: 3.364 MB / 0.7931 GB, free: 96.32 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.679e-05/0.9425, allocations: 45.69 kB / 0.7931 GB, free: 96.27 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.179e-05/0.9425, allocations: 16 kB / 0.7931 GB, free: 96.25 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007606/0.9433, allocations: 259.2 kB / 0.7934 GB, free: 95.99 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001952/0.9452, allocations: 0.5091 MB / 0.7939 GB, free: 95.51 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009868/0.9462, allocations: 2.504 MB / 0.7963 GB, free: 92.91 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001542/0.9478, allocations: 115.4 kB / 0.7964 GB, free: 92.8 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001621/0.948, allocations: 99.97 kB / 0.7965 GB, free: 92.71 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002391/0.9504, allocations: 1.597 MB / 0.7981 GB, free: 91.1 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001946/0.9523, allocations: 1.589 MB / 0.7996 GB, free: 89.31 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003688/0.956, allocations: 2.766 MB / 0.8023 GB, free: 86.4 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.153e-06/0.956, allocations: 4 kB / 0.8023 GB, free: 86.39 MB / 0.5606 GB Notification: Performance of matching and sorting (n=264) (initialization_lambda0): time 0.005356/0.9614, allocations: 3.253 MB / 0.8055 GB, free: 83.2 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.157e-05/0.9614, allocations: 44.22 kB / 0.8056 GB, free: 83.15 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.087e-05/0.9615, allocations: 18.7 kB / 0.8056 GB, free: 83.13 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007453/0.9622, allocations: 259.2 kB / 0.8058 GB, free: 82.87 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00191/0.9641, allocations: 0.5084 MB / 0.8063 GB, free: 82.39 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00096/0.9651, allocations: 2.493 MB / 0.8088 GB, free: 79.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001627/0.9668, allocations: 106.2 kB / 0.8089 GB, free: 79.7 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001638/0.9669, allocations: 103.6 kB / 0.809 GB, free: 79.6 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * Number of states: 0 () * Number of discrete variables: 23 (pipe3.state_a.phase,pipe1.state_a.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase,valve.state_b.phase,valve.state_a.phase,pipe3.statesFM[2].phase,valveOpening1.nextEventScaled,valveOpening1.nextEvent,$PRE.valveOpening1.nextEvent,valveOpening1.last,valveOpening1.b,valveOpening1.a,pipe2.statesFM[2].phase,pipe2.statesFM[1].phase,sink.medium.phase,pipe1.statesFM[2].phase,source.medium.phase,$whenCondition1,pipe3.state_b.phase,pipe2.state_b.phase,pipe2.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (253): * Single equations (assignments): 246 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(1,1), (1,1), (1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0005099/0.9675, allocations: 348.4 kB / 0.8093 GB, free: 79.29 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003924/0.9679, allocations: 211.6 kB / 0.8095 GB, free: 79.08 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008247/0.9761, allocations: 7.689 MB / 0.817 GB, free: 71.36 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006488/0.9826, allocations: 6.611 MB / 0.8235 GB, free: 64.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.098e-06/0.9827, allocations: 0 / 0.8235 GB, free: 64.6 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001015/0.9837, allocations: 0.6466 MB / 0.8241 GB, free: 63.99 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003766/0.9841, allocations: 88.27 kB / 0.8242 GB, free: 63.91 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001201/0.9853, allocations: 127.8 kB / 0.8243 GB, free: 63.79 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002615/0.9855, allocations: 153.7 kB / 0.8244 GB, free: 63.64 MB / 0.5606 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.006379/0.9919, allocations: 4.828 MB / 0.8292 GB, free: 58.75 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.00744/0.9994, allocations: 6.924 MB / 0.8359 GB, free: 51.7 MB / 0.5606 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002157/1.002, allocations: 2.232 MB / 0.8381 GB, free: 49.47 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001473/1.003, allocations: 1.297 MB / 0.8394 GB, free: 48.15 MB / 0.5606 GB Notification: Performance of Backend: time 6.31e-07/1.003, allocations: 1.422 kB / 0.8394 GB, free: 48.15 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01387/1.017, allocations: 6.219 MB / 0.8454 GB, free: 42.32 MB / 0.5606 GB Notification: Performance of SimCode: time 0.007656/1.025, allocations: 6.485 MB / 0.8518 GB, free: 35.81 MB / 0.5606 GB Notification: Performance of Templates: time 0.3336/1.358, allocations: 101.5 MB / 0.9509 GB, free: 231.9 MB / 0.6231 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestPipesAndValves/SeriesPipes1/SeriesPipes1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches