Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.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.BranchingPipes14,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.h|junctionIdeal.medium.p|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe2.mediums.1..h|pipe2.mediums.1..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.h|junctionIdeal.medium.p|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe2.mediums.1..h|pipe2.mediums.1..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001561/0.001561, allocations: 112.8 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.001918/0.001918, allocations: 206.8 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.399/1.399, allocations: 227.4 MB / 247.6 MB, free: 10.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2096/0.2096, allocations: 46.1 MB / 345 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001405/0.001405, allocations: 75.88 kB / 482 MB, free: 4.094 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.308/0.3095, allocations: 62.43 MB / 0.5317 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14): time 0.09027/0.3998, allocations: 102.1 MB / 0.6314 GB, free: 11.25 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.04659/0.4464, allocations: 36.94 MB / 0.6675 GB, free: 6.203 MB / 0.5138 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003117/0.4495, allocations: 99.44 kB / 0.6676 GB, free: 6.105 MB / 0.5138 GB Notification: Performance of NFTyping.typeComponents: time 0.003752/0.4534, allocations: 1.247 MB / 0.6688 GB, free: 4.852 MB / 0.5138 GB Notification: Performance of NFTyping.typeBindings: time 0.02222/0.4756, allocations: 8.026 MB / 0.6766 GB, free: 12.81 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.02026/0.4959, allocations: 7.677 MB / 0.6841 GB, free: 5.145 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.01055/0.5065, allocations: 6.987 MB / 0.691 GB, free: 14.13 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0032/0.5097, allocations: 1.568 MB / 0.6925 GB, free: 12.54 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005785/0.5155, allocations: 2.765 MB / 0.6952 GB, free: 9.77 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.02371/0.5392, allocations: 12.14 MB / 0.707 GB, free: 13.46 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.001146/0.5404, allocations: 236 kB / 0.7073 GB, free: 13.23 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02028/0.5607, allocations: 10.06 MB / 0.7171 GB, free: 3.164 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.001601/0.5624, allocations: 0.9621 MB / 0.718 GB, free: 2.199 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.002849/0.5652, allocations: 1.47 MB / 0.7195 GB, free: 0.7227 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.2917/0.8569, allocations: 9.358 MB / 0.7286 GB, free: 32.45 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/0.857, allocations: 3.188 kB / 0.7286 GB, free: 32.45 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.092e-06/0.857, allocations: 0 / 0.7286 GB, free: 32.45 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 7.305e-05/0.857, allocations: 0 / 0.7286 GB, free: 32.45 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: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 0.01167/0.8687, allocations: 4.189 MB / 0.7327 GB, free: 30.77 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.113e-05/0.8688, allocations: 9.688 kB / 0.7327 GB, free: 30.77 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005356/0.8741, allocations: 0.7983 MB / 0.7335 GB, free: 30.64 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009705/0.8839, allocations: 6.702 MB / 0.74 GB, free: 30.02 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001501/0.884, allocations: 186 kB / 0.7402 GB, free: 30.02 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003628/0.8844, allocations: 203.4 kB / 0.7404 GB, free: 30.02 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006677/0.8911, allocations: 3.551 MB / 0.7439 GB, free: 29.57 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.685e-05/0.8911, allocations: 5.156 kB / 0.7439 GB, free: 29.57 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000222/0.8914, allocations: 95.94 kB / 0.744 GB, free: 29.57 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000209/0.8916, allocations: 205.2 kB / 0.7442 GB, free: 29.56 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006599/0.8982, allocations: 3.265 MB / 0.7474 GB, free: 29.54 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.01529/0.9135, allocations: 15.49 MB / 0.7625 GB, free: 20.05 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005199/0.9187, allocations: 2.732 MB / 0.7651 GB, free: 19.45 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001733/0.9205, allocations: 1.231 MB / 0.7663 GB, free: 19.43 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04501/0.9655, allocations: 27.29 MB / 0.793 GB, free: 16.59 MB / 0.5763 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004236/0.9698, allocations: 1.685 MB / 0.7946 GB, free: 16.04 MB / 0.5763 GB Notification: Performance of pre-optimization done (n=173): time 4.419e-06/0.9698, allocations: 4 kB / 0.7946 GB, free: 16.04 MB / 0.5763 GB Notification: Performance of matching and sorting (n=189): time 0.02115/0.9909, allocations: 8.882 MB / 0.8033 GB, free: 12.09 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001005/0.9911, allocations: 184 kB / 0.8035 GB, free: 11.88 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001729/0.9928, allocations: 1.576 MB / 0.805 GB, free: 10.68 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.0001789/0.993, allocations: 56.52 kB / 0.8051 GB, free: 10.64 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006056/0.9936, allocations: 0.994 MB / 0.8061 GB, free: 10.02 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003702/0.994, allocations: 0.6329 MB / 0.8067 GB, free: 9.477 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005901/0.9946, allocations: 440.2 kB / 0.8071 GB, free: 9.195 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 0.0001121/0.9947, allocations: 302.1 kB / 0.8074 GB, free: 8.898 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001856/0.9966, allocations: 1.151 MB / 0.8085 GB, free: 8.121 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002041/0.9986, allocations: 1.652 MB / 0.8101 GB, free: 6.715 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00429/1.003, allocations: 2.953 MB / 0.813 GB, free: 4.539 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.925e-06/1.003, allocations: 4 kB / 0.813 GB, free: 4.535 MB / 0.5763 GB Notification: Performance of matching and sorting (n=273) (initialization): time 0.006/1.009, allocations: 3.378 MB / 0.8163 GB, free: 2.16 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 6.304e-05/1.009, allocations: 76.08 kB / 0.8164 GB, free: 2.078 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.029e-05/1.009, allocations: 12 kB / 0.8164 GB, free: 2.066 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008647/1.01, allocations: 242.9 kB / 0.8166 GB, free: 1.867 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002166/1.012, allocations: 0.5286 MB / 0.8171 GB, free: 1.395 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001515/1.014, allocations: 2.436 MB / 0.8195 GB, free: 15.02 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001946/1.016, allocations: 130.8 kB / 0.8196 GB, free: 14.92 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002056/1.016, allocations: 115.3 kB / 0.8198 GB, free: 14.83 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002766/1.019, allocations: 1.569 MB / 0.8213 GB, free: 13.78 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002323/1.021, allocations: 1.581 MB / 0.8228 GB, free: 12.4 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0042/1.025, allocations: 2.826 MB / 0.8256 GB, free: 10.29 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.406e-06/1.025, allocations: 4 kB / 0.8256 GB, free: 10.29 MB / 0.5919 GB Notification: Performance of matching and sorting (n=273) (initialization_lambda0): time 0.005688/1.031, allocations: 3.234 MB / 0.8287 GB, free: 7.996 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 5.784e-05/1.031, allocations: 77.2 kB / 0.8288 GB, free: 7.914 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.694e-05/1.031, allocations: 15.98 kB / 0.8288 GB, free: 7.898 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000791/1.032, allocations: 235.3 kB / 0.8291 GB, free: 7.703 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002035/1.034, allocations: 0.5212 MB / 0.8296 GB, free: 7.238 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00142/1.035, allocations: 2.433 MB / 0.8319 GB, free: 4.863 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00187/1.037, allocations: 135.9 kB / 0.8321 GB, free: 4.762 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001829/1.037, allocations: 102.5 kB / 0.8322 GB, free: 4.684 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * Number of states: 0 () * Number of discrete variables: 30 (valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.state_a.phase,junctionIdeal.medium.phase,valveOpening2.nextEventScaled,valveOpening2.nextEvent,$PRE.valveOpening2.nextEvent,valveOpening2.last,valveOpening2.b,valveOpening2.a,valveOpening1.nextEventScaled,valveOpening1.nextEvent,$PRE.valveOpening1.nextEvent,valveOpening1.last,valveOpening1.b,valveOpening1.a,pipe3.statesFM[2].phase,pipe2.statesFM[2].phase,sink.medium.phase,pipe1.statesFM[2].phase,source.medium.phase,$whenCondition2,$whenCondition1,pipe3.state_a.phase,pipe2.state_a.phase,pipe1.state_b.phase,pipe1.state_a.phase,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (259): * Single equations (assignments): 253 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * 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.0006136/1.038, allocations: 405.9 kB / 0.8326 GB, free: 4.367 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003941/1.038, allocations: 217.5 kB / 0.8328 GB, free: 4.152 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009958/1.048, allocations: 7.469 MB / 0.8401 GB, free: 13.88 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008184/1.056, allocations: 6.536 MB / 0.8464 GB, free: 7.168 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.156e-06/1.056, allocations: 0 / 0.8464 GB, free: 7.168 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001269/1.058, allocations: 0.6369 MB / 0.8471 GB, free: 6.508 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003982/1.058, allocations: 95.36 kB / 0.8472 GB, free: 6.414 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001268/1.059, allocations: 136.9 kB / 0.8473 GB, free: 6.281 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003317/1.06, allocations: 157.8 kB / 0.8474 GB, free: 6.129 MB / 0.6075 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00754/1.067, allocations: 4.913 MB / 0.8522 GB, free: 1.129 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.009751/1.077, allocations: 7.072 MB / 0.8591 GB, free: 9.926 MB / 0.6231 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002869/1.08, allocations: 2.251 MB / 0.8613 GB, free: 7.672 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.001811/1.082, allocations: 1.251 MB / 0.8626 GB, free: 6.402 MB / 0.6231 GB Notification: Performance of Backend: time 5.01e-07/1.082, allocations: 0 / 0.8626 GB, free: 6.402 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.01852/1.1, allocations: 6.211 MB / 0.8686 GB, free: 0.5117 MB / 0.6231 GB Notification: Performance of SimCode: time 0.009146/1.11, allocations: 6.475 MB / 0.875 GB, free: 10.02 MB / 0.6388 GB Notification: Performance of Templates: time 0.1527/1.262, allocations: 104.7 MB / 0.9772 GB, free: 1.918 MB / 0.7325 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestPipesAndValves/BranchingPipes14/BranchingPipes14.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches