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.001342/0.001342, allocations: 106.8 kB / 18.45 MB, free: 4.621 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.001386/0.001386, allocations: 187.1 kB / 19.38 MB, free: 3.699 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.356/1.356, allocations: 222.9 MB / 243.1 MB, free: 15.09 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.1931/0.1931, allocations: 44.18 MB / 337.4 MB, free: 2.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001201/0.001202, allocations: 63.91 kB / 471.2 MB, free: 13.19 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2965/0.2977, allocations: 60.82 MB / 0.5196 GB, free: 3.621 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.02719/0.3249, allocations: 28.12 MB / 0.547 GB, free: 13.95 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01562/0.3406, allocations: 13.3 MB / 0.56 GB, free: 2.57 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004831/0.3411, allocations: 15.88 kB / 0.56 GB, free: 2.555 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008009/0.3419, allocations: 254.4 kB / 0.5603 GB, free: 2.305 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0102/0.3522, allocations: 3.666 MB / 0.5638 GB, free: 14.64 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006421/0.3586, allocations: 2.374 MB / 0.5662 GB, free: 12.27 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.00119/0.3598, allocations: 0.8886 MB / 0.567 GB, free: 11.38 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000431/0.3603, allocations: 252.7 kB / 0.5673 GB, free: 11.13 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008425/0.3611, allocations: 450.1 kB / 0.5677 GB, free: 10.69 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003911/0.3615, allocations: 266.9 kB / 0.568 GB, free: 10.43 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 7.856e-05/0.3616, allocations: 36 kB / 0.568 GB, free: 10.39 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01359/0.3752, allocations: 7.223 MB / 0.575 GB, free: 3.16 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002818/0.3755, allocations: 99.59 kB / 0.5751 GB, free: 3.062 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005017/0.376, allocations: 219.1 kB / 0.5753 GB, free: 2.848 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01064/0.3867, allocations: 4.405 MB / 0.5797 GB, free: 14.43 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.3867, allocations: 4 kB / 0.5797 GB, free: 14.43 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3868, allocations: 0 / 0.5797 GB, free: 14.43 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.68e-05/0.3868, allocations: 0 / 0.5797 GB, free: 14.43 MB / 446.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.004445/0.3912, allocations: 1.232 MB / 0.5809 GB, free: 13.15 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.433e-05/0.3913, allocations: 8.031 kB / 0.5809 GB, free: 13.14 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00185/0.3932, allocations: 212.2 kB / 0.5811 GB, free: 12.93 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008075/0.394, allocations: 379.2 kB / 0.5814 GB, free: 12.52 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.279e-05/0.3941, allocations: 29.03 kB / 0.5815 GB, free: 12.49 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.051e-05/0.3941, allocations: 28.38 kB / 0.5815 GB, free: 12.46 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001687/0.3958, allocations: 0.586 MB / 0.5821 GB, free: 11.84 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.218e-05/0.3959, allocations: 0 / 0.5821 GB, free: 11.84 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.768e-05/0.3959, allocations: 12 kB / 0.5821 GB, free: 11.83 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.017e-06/0.3959, allocations: 11.94 kB / 0.5821 GB, free: 11.82 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001652/0.3976, allocations: 0.5329 MB / 0.5826 GB, free: 11.29 MB / 446.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.003255/0.4009, allocations: 2.621 MB / 0.5852 GB, free: 8.426 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001646/0.4025, allocations: 458.1 kB / 0.5856 GB, free: 7.969 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000462/0.403, allocations: 192.7 kB / 0.5858 GB, free: 7.777 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0501/0.4531, allocations: 24.32 MB / 0.6095 GB, free: 12.57 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.001e-05/0.4532, allocations: 30.56 kB / 0.6096 GB, free: 12.53 MB / 478.1 MB Notification: Performance of pre-optimization done (n=25): time 2.484e-06/0.4532, allocations: 0 / 0.6096 GB, free: 12.53 MB / 478.1 MB Notification: Performance of matching and sorting (n=25): time 0.002918/0.4561, allocations: 0.8011 MB / 0.6103 GB, free: 11.72 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.22e-05/0.4562, allocations: 110.8 kB / 0.6104 GB, free: 11.59 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003269/0.4565, allocations: 304.5 kB / 0.6107 GB, free: 11.28 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 3.769e-05/0.4566, allocations: 29.7 kB / 0.6108 GB, free: 11.24 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000137/0.4567, allocations: 208.2 kB / 0.611 GB, free: 11.03 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.475e-05/0.4568, allocations: 74.86 kB / 0.611 GB, free: 10.96 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001152/0.4569, allocations: 69.69 kB / 0.6111 GB, free: 10.88 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001208/0.457, allocations: 346.8 kB / 0.6114 GB, free: 10.54 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003949/0.4574, allocations: 143.8 kB / 0.6116 GB, free: 10.39 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004514/0.4579, allocations: 231 kB / 0.6118 GB, free: 10.13 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008105/0.4587, allocations: 353.1 kB / 0.6121 GB, free: 9.75 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.756e-06/0.4587, allocations: 0 / 0.6121 GB, free: 9.75 MB / 478.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009881/0.4597, allocations: 429.6 kB / 0.6125 GB, free: 9.324 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.077e-05/0.4598, allocations: 11.98 kB / 0.6125 GB, free: 9.312 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.4598, allocations: 0 / 0.6125 GB, free: 9.312 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.646e-05/0.4598, allocations: 4 kB / 0.6126 GB, free: 9.309 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003311/0.4601, allocations: 92.08 kB / 0.6126 GB, free: 9.219 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.012e-05/0.4602, allocations: 7.938 kB / 0.6126 GB, free: 9.211 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002638/0.4604, allocations: 47.56 kB / 0.6127 GB, free: 9.164 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.42e-05/0.4605, allocations: 19.98 kB / 0.6127 GB, free: 9.145 MB / 478.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.0001811/0.4607, allocations: 157.7 kB / 0.6129 GB, free: 8.98 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.006e-05/0.4607, allocations: 31.62 kB / 0.6129 GB, free: 8.949 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002386/0.4631, allocations: 1.893 MB / 0.6147 GB, free: 7.043 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.024e-05/0.4632, allocations: 7.922 kB / 0.6147 GB, free: 7.035 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.436e-06/0.4632, allocations: 0 / 0.6147 GB, free: 7.035 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001296/0.4633, allocations: 167.8 kB / 0.6149 GB, free: 6.852 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.298e-05/0.4634, allocations: 23.75 kB / 0.6149 GB, free: 6.828 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003329/0.4637, allocations: 39.95 kB / 0.615 GB, free: 6.789 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.38e-05/0.4638, allocations: 35.89 kB / 0.615 GB, free: 6.754 MB / 478.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001561/0.4654, allocations: 1.077 MB / 0.6161 GB, free: 5.664 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001484/0.4669, allocations: 1.145 MB / 0.6172 GB, free: 4.504 MB / 478.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006353/0.4675, allocations: 0.4947 MB / 0.6177 GB, free: 4.012 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0003431/0.4679, allocations: 327.1 kB / 0.618 GB, free: 3.691 MB / 478.1 MB Notification: Performance of Backend: time 3.51e-07/0.4679, allocations: 0 / 0.618 GB, free: 3.691 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006187/0.4741, allocations: 1.663 MB / 0.6196 GB, free: 2.027 MB / 478.1 MB Notification: Performance of SimCode: time 0.002114/0.4762, allocations: 1.613 MB / 0.6212 GB, free: 384 kB / 478.1 MB Notification: Performance of Templates: time 0.05572/0.532, allocations: 43.84 MB / 0.664 GB, free: 4.57 MB / 0.5137 GB 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins1/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