Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.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.TestComponents.Valves.TestValveDiscrete,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|SourceP1.ports.1..m_flow|SourceP1.ports.1..p|SourceP1.ports.1..h_outflow|V1.port_b.m_flow|V1.port_b.p|V1.port_b.h_outflow|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|Opening.y|downstreamPressure.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|SourceP1.ports.1..m_flow|SourceP1.ports.1..p|SourceP1.ports.1..h_outflow|V1.port_b.m_flow|V1.port_b.p|V1.port_b.h_outflow|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|Opening.y|downstreamPressure.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001491/0.001491, allocations: 111 kB / 17.33 MB, free: 6.016 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.001818/0.001818, allocations: 193.3 kB / 18.25 MB, free: 5.105 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.406/1.406, allocations: 222.9 MB / 241.9 MB, free: 15.45 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.2138/0.2138, allocations: 44.18 MB / 336.2 MB, free: 2.973 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001288/0.001288, allocations: 68.48 kB / 407.9 MB, free: 27.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.1129, allocations: 60.82 MB / 468.7 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.02698/0.14, allocations: 28.23 MB / 496.9 MB, free: 2.422 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01482/0.1548, allocations: 13.39 MB / 0.4984 GB, free: 4.988 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003791/0.1552, allocations: 15.88 kB / 0.4984 GB, free: 4.973 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007407/0.156, allocations: 226.8 kB / 0.4986 GB, free: 4.75 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008617/0.1647, allocations: 3.239 MB / 0.5018 GB, free: 1.516 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2066/0.3713, allocations: 2.114 MB / 0.5038 GB, free: 13.91 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001354/0.3727, allocations: 0.8902 MB / 0.5047 GB, free: 13.91 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004409/0.3731, allocations: 242.6 kB / 0.5049 GB, free: 13.9 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008686/0.374, allocations: 442.9 kB / 0.5054 GB, free: 13.9 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003848/0.3744, allocations: 278.6 kB / 0.5056 GB, free: 13.9 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.274e-05/0.3745, allocations: 33.59 kB / 0.5057 GB, free: 13.9 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01493/0.3894, allocations: 7.117 MB / 0.5126 GB, free: 13.89 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002691/0.3897, allocations: 101.1 kB / 0.5127 GB, free: 13.89 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005387/0.3903, allocations: 220.2 kB / 0.5129 GB, free: 13.89 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0172/0.4075, allocations: 4.428 MB / 0.5172 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.622e-06/0.4075, allocations: 0 / 0.5172 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.4076, allocations: 0.9375 kB / 0.5172 GB, free: 13.8 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.766e-06/0.4076, allocations: 0 / 0.5172 GB, free: 13.8 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.004588/0.4122, allocations: 1.227 MB / 0.5184 GB, free: 13.08 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.587e-05/0.4122, allocations: 12.94 kB / 0.5184 GB, free: 13.08 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001747/0.414, allocations: 212.9 kB / 0.5186 GB, free: 13.06 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004598/0.4145, allocations: 366.1 kB / 0.519 GB, free: 12.82 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.522e-05/0.4145, allocations: 25.78 kB / 0.519 GB, free: 12.82 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.584e-05/0.4145, allocations: 31.88 kB / 0.5191 GB, free: 12.82 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001533/0.4161, allocations: 0.5799 MB / 0.5196 GB, free: 12.69 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.359e-05/0.4161, allocations: 3.969 kB / 0.5196 GB, free: 12.69 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.447e-05/0.4162, allocations: 13.84 kB / 0.5196 GB, free: 12.69 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.908e-06/0.4162, allocations: 7.312 kB / 0.5196 GB, free: 12.69 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00153/0.4177, allocations: 0.5275 MB / 0.5202 GB, free: 12.69 MB / 382.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.002478/0.4202, allocations: 2.626 MB / 0.5227 GB, free: 10.77 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001462/0.4217, allocations: 456.2 kB / 0.5232 GB, free: 10.67 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004127/0.4221, allocations: 191.3 kB / 0.5233 GB, free: 10.62 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04291/0.465, allocations: 24.21 MB / 0.547 GB, free: 6.449 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.509e-05/0.4651, allocations: 36.56 kB / 0.547 GB, free: 6.406 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 1.894e-06/0.4651, allocations: 0 / 0.547 GB, free: 6.406 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.002867/0.468, allocations: 0.7887 MB / 0.5478 GB, free: 5.77 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.462e-05/0.4681, allocations: 110.8 kB / 0.5479 GB, free: 5.637 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003466/0.4684, allocations: 310.6 kB / 0.5482 GB, free: 5.387 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.256e-05/0.4685, allocations: 33.27 kB / 0.5482 GB, free: 5.352 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001284/0.4686, allocations: 205 kB / 0.5484 GB, free: 5.199 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.472e-05/0.4687, allocations: 81.12 kB / 0.5485 GB, free: 5.129 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000111/0.4688, allocations: 76.06 kB / 0.5486 GB, free: 5.074 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001207/0.4689, allocations: 344.7 kB / 0.5489 GB, free: 4.742 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003784/0.4693, allocations: 142.1 kB / 0.549 GB, free: 4.645 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004338/0.4698, allocations: 232.5 kB / 0.5493 GB, free: 4.426 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000763/0.4705, allocations: 363.4 kB / 0.5496 GB, free: 4.133 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.4705, allocations: 0 / 0.5496 GB, free: 4.133 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009642/0.4715, allocations: 422 kB / 0.55 GB, free: 3.82 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/0.4715, allocations: 7.938 kB / 0.55 GB, free: 3.812 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.4716, allocations: 4 kB / 0.55 GB, free: 3.809 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.52e-05/0.4716, allocations: 4.312 kB / 0.55 GB, free: 3.805 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003227/0.4719, allocations: 86.5 kB / 0.5501 GB, free: 3.727 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.167e-06/0.4719, allocations: 6.625 kB / 0.5501 GB, free: 3.723 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003323/0.4723, allocations: 57.59 kB / 0.5502 GB, free: 3.676 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.36e-05/0.4723, allocations: 19.92 kB / 0.5502 GB, free: 3.66 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 5 (Opening.y,SinkP1.medium.phase,SourceP1.medium.phase,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001788/0.4725, allocations: 155.9 kB / 0.5503 GB, free: 3.523 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.336e-05/0.4726, allocations: 39.09 kB / 0.5504 GB, free: 3.488 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002184/0.4748, allocations: 1.904 MB / 0.5522 GB, free: 2.164 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.148e-05/0.4748, allocations: 31.89 kB / 0.5523 GB, free: 2.133 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.812e-06/0.4748, allocations: 0 / 0.5523 GB, free: 2.133 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.804e-06/0.4748, allocations: 3.984 kB / 0.5523 GB, free: 2.129 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00101/0.4758, allocations: 1.006 MB / 0.5532 GB, free: 1.082 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.4759, allocations: 0 / 0.5532 GB, free: 1.082 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003051/0.4762, allocations: 83.28 kB / 0.5533 GB, free: 1.004 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.77e-06/0.4762, allocations: 4 kB / 0.5533 GB, free: 1 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.227e-05/0.4762, allocations: 4 kB / 0.5533 GB, free: 0.9961 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.652e-06/0.4762, allocations: 7.938 kB / 0.5533 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.255e-06/0.4762, allocations: 0 / 0.5533 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001478/0.4777, allocations: 1.081 MB / 0.5544 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001515/0.4779, allocations: 163.7 kB / 0.5545 GB, free: 15.72 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.247e-05/0.478, allocations: 23.75 kB / 0.5546 GB, free: 15.7 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002959/0.4783, allocations: 39.91 kB / 0.5546 GB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001013/0.4784, allocations: 35.89 kB / 0.5546 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.726e-05/0.4784, allocations: 13.67 kB / 0.5547 GB, free: 15.61 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003511/0.4788, allocations: 327.1 kB / 0.555 GB, free: 15.29 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4788, allocations: 0 / 0.555 GB, free: 15.29 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004241/0.483, allocations: 0.9877 MB / 0.5559 GB, free: 14.3 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 19 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse11.phase,$cse11.region,SourceP1.medium.phase,SinkP1.medium.phase,Opening.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005289/0.4883, allocations: 1.178 MB / 0.5571 GB, free: 13.23 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001563/0.4899, allocations: 0.6152 MB / 0.5577 GB, free: 12.62 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.666e-06/0.4899, allocations: 0 / 0.5577 GB, free: 12.62 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006762/0.4906, allocations: 0.5163 MB / 0.5582 GB, free: 12.11 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001197/0.4918, allocations: 213.2 kB / 0.5584 GB, free: 11.92 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002284/0.4941, allocations: 1.843 MB / 0.5602 GB, free: 10.05 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005105/0.4946, allocations: 0.9716 MB / 0.5611 GB, free: 9.055 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000489/0.4951, allocations: 271.5 kB / 0.5614 GB, free: 8.797 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001288/0.4953, allocations: 43.42 kB / 0.5614 GB, free: 8.754 MB / 414.1 MB Notification: Performance of SimCode: time 5.41e-07/0.4953, allocations: 0 / 0.5614 GB, free: 8.754 MB / 414.1 MB Notification: Performance of Templates: time 0.05363/0.5489, allocations: 39.25 MB / 0.5998 GB, free: 1.715 MB / 446.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches