Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.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.DynamicPipeClosingValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe.mediums.1..h|pipe.mediums.1..p",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve") translateModel(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe.mediums.1..h|pipe.mediums.1..p",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001004/0.001003, allocations: 98.66 kB / 16.99 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001087/0.001087, allocations: 201.2 kB / 17.9 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.424/1.424, allocations: 227.2 MB / 245.9 MB, free: 12.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2275/0.2275, allocations: 45.92 MB / 344 MB, free: 12.37 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002689/0.0002689, allocations: 8 kB / 417.9 MB, free: 20.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1212/0.1215, allocations: 63.46 MB / 481.4 MB, free: 5.469 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve): time 0.2555/0.3771, allocations: 40.31 MB / 0.5095 GB, free: 12.04 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02673/0.4038, allocations: 22.61 MB / 0.5316 GB, free: 10.1 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001647/0.4055, allocations: 40 kB / 0.5316 GB, free: 10.08 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00168/0.4072, allocations: 0.5022 MB / 0.5321 GB, free: 9.895 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0174/0.4246, allocations: 4.767 MB / 0.5367 GB, free: 8.527 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01522/0.4399, allocations: 4.087 MB / 0.5407 GB, free: 6.605 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003481/0.4434, allocations: 1.488 MB / 0.5422 GB, free: 5.656 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009971/0.4444, allocations: 0.4936 MB / 0.5427 GB, free: 5.336 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01466/0.4591, allocations: 9.163 MB / 0.5516 GB, free: 1.762 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02146/0.4806, allocations: 14.36 MB / 0.5656 GB, free: 3.395 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002825/0.4809, allocations: 44 kB / 0.5657 GB, free: 3.352 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01697/0.4979, allocations: 8.319 MB / 0.5738 GB, free: 11.02 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005352/0.4985, allocations: 275.1 kB / 0.5741 GB, free: 10.75 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004312/0.4989, allocations: 233.2 kB / 0.5743 GB, free: 10.52 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008251/0.5072, allocations: 4.128 MB / 0.5783 GB, free: 6.387 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.5072, allocations: 4 kB / 0.5783 GB, free: 6.383 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.364e-06/0.5072, allocations: 0 / 0.5783 GB, free: 6.383 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.517e-05/0.5072, allocations: 0 / 0.5783 GB, free: 6.383 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 196 * Number of variables: 196 Notification: Performance of Generate backend data structure: time 0.004985/0.5122, allocations: 1.939 MB / 0.5802 GB, free: 4.395 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.784e-05/0.5123, allocations: 12.55 kB / 0.5802 GB, free: 4.383 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002493/0.5147, allocations: 378.4 kB / 0.5806 GB, free: 4.012 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00125/0.516, allocations: 0.7031 MB / 0.5813 GB, free: 3.27 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.621e-05/0.5161, allocations: 65.98 kB / 0.5813 GB, free: 3.207 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001183/0.5162, allocations: 79.98 kB / 0.5814 GB, free: 3.129 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0031/0.5193, allocations: 1.452 MB / 0.5828 GB, free: 1.605 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.684e-05/0.5194, allocations: 7.938 kB / 0.5828 GB, free: 1.598 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.911e-05/0.5195, allocations: 31.95 kB / 0.5829 GB, free: 1.566 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.453e-05/0.5196, allocations: 65.97 kB / 0.5829 GB, free: 1.504 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003273/0.5228, allocations: 1.346 MB / 0.5842 GB, free: 156 kB / 414.1 MB 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.008384/0.5312, allocations: 6.538 MB / 0.5906 GB, free: 9.074 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002807/0.5341, allocations: 1.013 MB / 0.5916 GB, free: 8.031 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06831/0.6024, allocations: 35.75 MB / 0.6265 GB, free: 15.78 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001011/0.6026, allocations: 54.88 kB / 0.6266 GB, free: 15.72 MB / 478.1 MB Notification: Performance of pre-optimization done (n=56): time 3.367e-06/0.6026, allocations: 0 / 0.6266 GB, free: 15.72 MB / 478.1 MB Notification: Performance of matching and sorting (n=60): time 0.008991/0.6116, allocations: 3.317 MB / 0.6298 GB, free: 12.34 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.366e-05/0.6117, allocations: 158.8 kB / 0.63 GB, free: 12.15 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008767/0.6126, allocations: 0.7192 MB / 0.6307 GB, free: 11.43 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 7.288e-05/0.6126, allocations: 37.7 kB / 0.6307 GB, free: 11.38 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003322/0.613, allocations: 423.5 kB / 0.6311 GB, free: 10.96 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000168/0.6132, allocations: 213 kB / 0.6313 GB, free: 10.75 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.229e-05/0.6132, allocations: 12 kB / 0.6313 GB, free: 10.74 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001902/0.6134, allocations: 390.8 kB / 0.6317 GB, free: 10.35 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008363/0.6143, allocations: 417.7 kB / 0.6321 GB, free: 9.945 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009823/0.6153, allocations: 0.6171 MB / 0.6327 GB, free: 9.234 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009133/0.6162, allocations: 481.9 kB / 0.6332 GB, free: 8.766 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.6162, allocations: 7.938 kB / 0.6332 GB, free: 8.758 MB / 478.1 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.002568/0.6188, allocations: 1.354 MB / 0.6345 GB, free: 7.395 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009847/0.6198, allocations: 2.448 MB / 0.6369 GB, free: 4.754 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.396e-05/0.6198, allocations: 8 kB / 0.6369 GB, free: 4.746 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003184/0.623, allocations: 0.696 MB / 0.6376 GB, free: 4.047 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006095/0.6236, allocations: 167.7 kB / 0.6377 GB, free: 3.883 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001651/0.6253, allocations: 1.298 MB / 0.639 GB, free: 2.559 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008887/0.6262, allocations: 107.8 kB / 0.6391 GB, free: 2.453 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.887e-05/0.6263, allocations: 39.98 kB / 0.6391 GB, free: 2.414 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.1e-05/0.6263, allocations: 6.5 kB / 0.6391 GB, free: 2.41 MB / 478.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002618/0.6289, allocations: 1.232 MB / 0.6404 GB, free: 1.176 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.658e-06/0.6289, allocations: 8 kB / 0.6404 GB, free: 1.168 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001759/0.6307, allocations: 446.9 kB / 0.6408 GB, free: 0.7305 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006041/0.6313, allocations: 171.7 kB / 0.6409 GB, free: 0.5625 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001261/0.6326, allocations: 1.11 MB / 0.642 GB, free: 15.43 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008834/0.6335, allocations: 99.89 kB / 0.6421 GB, free: 15.33 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.099e-05/0.6336, allocations: 39.98 kB / 0.6422 GB, free: 15.29 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 9 (pipe.state_a.phase,valve.state_b.phase,valve.state_a.phase,source.medium.phase,pipe.statesFM[2].phase,sink.medium.phase,sink.state.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 (69): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 23} Notification: Performance of prepare postOptimizeDAE: time 0.0005672/0.6341, allocations: 364.8 kB / 0.6425 GB, free: 14.92 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001817/0.6343, allocations: 90.91 kB / 0.6426 GB, free: 14.83 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00457/0.6389, allocations: 3.335 MB / 0.6459 GB, free: 11.49 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.559e-05/0.639, allocations: 35.95 kB / 0.6459 GB, free: 11.45 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.1e-05/0.639, allocations: 0 / 0.6459 GB, free: 11.45 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003732/0.6427, allocations: 2.789 MB / 0.6486 GB, free: 8.586 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00661/0.6494, allocations: 4.564 MB / 0.6531 GB, free: 3.965 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.226e-06/0.6494, allocations: 0 / 0.6531 GB, free: 3.965 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006723/0.6501, allocations: 183.7 kB / 0.6532 GB, free: 3.785 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003931/0.6505, allocations: 96.75 kB / 0.6533 GB, free: 3.688 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.822e-05/0.6506, allocations: 20 kB / 0.6534 GB, free: 3.668 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004189/0.651, allocations: 0.646 MB / 0.654 GB, free: 2.996 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.342e-06/0.651, allocations: 11.92 kB / 0.654 GB, free: 2.984 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003866/0.6549, allocations: 2.926 MB / 0.6569 GB, free: 28 kB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007071/0.6556, allocations: 446.2 kB / 0.6573 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001558/0.6558, allocations: 23.98 kB / 0.6573 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007015/0.6565, allocations: 75.91 kB / 0.6574 GB, free: 15.47 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001328/0.6566, allocations: 68.56 kB / 0.6574 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.186e-05/0.6567, allocations: 23.98 kB / 0.6575 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001006/0.6577, allocations: 0.7941 MB / 0.6582 GB, free: 14.58 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.81e-07/0.6577, allocations: 0 / 0.6582 GB, free: 14.58 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004172/0.6619, allocations: 1.648 MB / 0.6599 GB, free: 12.93 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (pipe.mediums[1].p,pipe.mediums[1].h) * Number of discrete variables: 21 ($cse5.phase,$cse5.region,$cse7.region3boundary,$cse8.region3boundary,$cse9.phase,$cse9.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse18.phase,$cse18.region,$cse21.phase,$cse21.region,source.medium.phase,pipe.statesFM[2].phase,sink.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (75): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.005431/0.6673, allocations: 1.583 MB / 0.6614 GB, free: 11.35 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.003562/0.6709, allocations: 1.855 MB / 0.6632 GB, free: 9.488 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.351e-05/0.671, allocations: 4.875 kB / 0.6632 GB, free: 9.484 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001285/0.6723, allocations: 0.8914 MB / 0.6641 GB, free: 8.594 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002382/0.6746, allocations: 464.8 kB / 0.6645 GB, free: 8.145 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004854/0.6795, allocations: 3.722 MB / 0.6682 GB, free: 4.387 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008587/0.6804, allocations: 1.345 MB / 0.6695 GB, free: 3.012 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001649/0.6821, allocations: 0.9031 MB / 0.6704 GB, free: 2.109 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002255/0.6823, allocations: 95.3 kB / 0.6704 GB, free: 2.016 MB / 0.4981 GB Notification: Performance of SimCode: time 8.92e-07/0.6823, allocations: 0 / 0.6704 GB, free: 2.016 MB / 0.4981 GB Notification: Performance of Templates: time 0.2925/0.9748, allocations: 57.99 MB / 0.7271 GB, free: 182.9 MB / 0.5294 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestPipesAndValves/DynamicPipeClosingValve/DynamicPipeClosingValve.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches