Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001067/0.001067, allocations: 104.1 kB / 17.09 MB, free: 6.02 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.001127/0.001128, allocations: 199.3 kB / 18.02 MB, free: 5.094 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.308/1.308, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2067/0.2067, allocations: 43.53 MB / 314.8 MB, free: 464 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001435/0.001435, allocations: 67.91 kB / 442.5 MB, free: 5.672 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09238/0.09383, allocations: 57.79 MB / 0.4885 GB, free: 11.81 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.02978/0.1237, allocations: 28.13 MB / 0.516 GB, free: 15.57 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01494/0.1386, allocations: 13.29 MB / 0.529 GB, free: 2.238 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004154/0.1391, allocations: 11.88 kB / 0.529 GB, free: 2.227 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007712/0.1399, allocations: 246.4 kB / 0.5292 GB, free: 1.984 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.226/0.3659, allocations: 3.648 MB / 0.5328 GB, free: 4.859 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005924/0.3719, allocations: 2.362 MB / 0.5351 GB, free: 4.84 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001212/0.3731, allocations: 0.8875 MB / 0.536 GB, free: 4.84 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003912/0.3735, allocations: 248.3 kB / 0.5362 GB, free: 4.832 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007489/0.3742, allocations: 441.6 kB / 0.5366 GB, free: 4.828 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003566/0.3746, allocations: 266.3 kB / 0.5369 GB, free: 4.828 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.311e-05/0.3747, allocations: 33.84 kB / 0.5369 GB, free: 4.828 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01479/0.3895, allocations: 7.227 MB / 0.544 GB, free: 4.809 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001999/0.3897, allocations: 106.9 kB / 0.5441 GB, free: 4.809 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004371/0.3901, allocations: 212.8 kB / 0.5443 GB, free: 4.809 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009929/0.4001, allocations: 4.404 MB / 0.5486 GB, free: 4.664 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.4001, allocations: 0 / 0.5486 GB, free: 4.664 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.4001, allocations: 0 / 0.5486 GB, free: 4.664 MB / 414.1 MB Notification: Performance of Transformations before backend: time 2.107e-05/0.4001, allocations: 1.094 kB / 0.5486 GB, free: 4.664 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.004383/0.4045, allocations: 1.231 MB / 0.5498 GB, free: 3.941 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.548e-05/0.4046, allocations: 12.89 kB / 0.5498 GB, free: 3.938 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001926/0.4065, allocations: 210 kB / 0.55 GB, free: 3.918 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006543/0.4072, allocations: 388 kB / 0.5504 GB, free: 3.672 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.85e-05/0.4072, allocations: 26.91 kB / 0.5504 GB, free: 3.672 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.207e-05/0.4073, allocations: 29.72 kB / 0.5504 GB, free: 3.672 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001571/0.4089, allocations: 0.5793 MB / 0.551 GB, free: 3.543 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.52e-05/0.4089, allocations: 8.844 kB / 0.551 GB, free: 3.539 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.422e-05/0.409, allocations: 14.34 kB / 0.551 GB, free: 3.539 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.018e-05/0.409, allocations: 7.594 kB / 0.551 GB, free: 3.539 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001604/0.4106, allocations: 0.5231 MB / 0.5515 GB, free: 3.535 MB / 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.002803/0.4134, allocations: 2.622 MB / 0.5541 GB, free: 1.57 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001628/0.415, allocations: 465.1 kB / 0.5545 GB, free: 1.434 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004312/0.4155, allocations: 190.9 kB / 0.5547 GB, free: 1.391 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04854/0.464, allocations: 24.29 MB / 0.5784 GB, free: 14.39 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.434e-05/0.4641, allocations: 38.56 kB / 0.5785 GB, free: 14.35 MB / 446.1 MB Notification: Performance of pre-optimization done (n=25): time 3.166e-06/0.4641, allocations: 3.938 kB / 0.5785 GB, free: 14.35 MB / 446.1 MB Notification: Performance of matching and sorting (n=25): time 0.002888/0.467, allocations: 0.7866 MB / 0.5792 GB, free: 13.78 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.211e-05/0.4671, allocations: 110.8 kB / 0.5794 GB, free: 13.65 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003532/0.4674, allocations: 306.2 kB / 0.5796 GB, free: 13.4 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.39e-05/0.4675, allocations: 36.89 kB / 0.5797 GB, free: 13.36 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001404/0.4677, allocations: 212.2 kB / 0.5799 GB, free: 13.2 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.337e-05/0.4677, allocations: 82.45 kB / 0.58 GB, free: 13.13 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001095/0.4678, allocations: 66.94 kB / 0.58 GB, free: 13.08 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001168/0.468, allocations: 340.6 kB / 0.5803 GB, free: 12.75 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003686/0.4683, allocations: 137.3 kB / 0.5805 GB, free: 12.65 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004195/0.4688, allocations: 234.4 kB / 0.5807 GB, free: 12.43 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00075/0.4695, allocations: 364.7 kB / 0.5811 GB, free: 12.14 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.4696, allocations: 4 kB / 0.5811 GB, free: 12.14 MB / 446.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009697/0.4705, allocations: 421 kB / 0.5815 GB, free: 11.82 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.597e-05/0.4706, allocations: 11.19 kB / 0.5815 GB, free: 11.82 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.747e-06/0.4706, allocations: 4 kB / 0.5815 GB, free: 11.81 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.716e-05/0.4706, allocations: 4 kB / 0.5815 GB, free: 11.81 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003218/0.4709, allocations: 75.98 kB / 0.5815 GB, free: 11.74 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.661e-05/0.4709, allocations: 11.92 kB / 0.5816 GB, free: 11.73 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000313/0.4713, allocations: 49.33 kB / 0.5816 GB, free: 11.69 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.204e-05/0.4713, allocations: 20.3 kB / 0.5816 GB, free: 11.68 MB / 446.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.000178/0.4715, allocations: 163.6 kB / 0.5818 GB, free: 11.54 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.494e-05/0.4716, allocations: 35.53 kB / 0.5818 GB, free: 11.5 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002251/0.4739, allocations: 1.889 MB / 0.5837 GB, free: 9.961 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.664e-06/0.4739, allocations: 4 kB / 0.5837 GB, free: 9.957 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.102e-06/0.4739, allocations: 3.938 kB / 0.5837 GB, free: 9.953 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000167/0.4741, allocations: 171.7 kB / 0.5838 GB, free: 9.766 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.484e-05/0.4741, allocations: 19.84 kB / 0.5839 GB, free: 9.746 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003321/0.4745, allocations: 37.45 kB / 0.5839 GB, free: 9.711 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.119e-05/0.4746, allocations: 35.95 kB / 0.5839 GB, free: 9.676 MB / 446.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001504/0.4761, allocations: 1.075 MB / 0.585 GB, free: 8.605 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001439/0.4775, allocations: 1.141 MB / 0.5861 GB, free: 7.445 MB / 446.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006294/0.4782, allocations: 0.4907 MB / 0.5866 GB, free: 6.953 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003376/0.4785, allocations: 327.1 kB / 0.5869 GB, free: 6.637 MB / 446.1 MB Notification: Performance of Backend: time 3.9e-07/0.4785, allocations: 0 / 0.5869 GB, free: 6.637 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009869/0.4884, allocations: 1.665 MB / 0.5885 GB, free: 5.129 MB / 446.1 MB Notification: Performance of SimCode: time 0.002773/0.4912, allocations: 1.617 MB / 0.5901 GB, free: 3.477 MB / 446.1 MB Notification: Performance of Templates: time 0.06472/0.556, allocations: 44.12 MB / 0.6332 GB, free: 7.402 MB / 494.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches