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.001253/0.001253, allocations: 107.1 kB / 16.41 MB, free: 6.504 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.001239/0.001239, allocations: 189.5 kB / 17.34 MB, free: 5.742 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.4/1.4, allocations: 205.1 MB / 223.2 MB, free: 12.22 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.2068/0.2068, allocations: 43.53 MB / 314.1 MB, free: 440 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.001319/0.001319, allocations: 67.84 kB / 441.8 MB, free: 5.633 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1146, allocations: 57.78 MB / 499.6 MB, free: 11.78 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03237/0.147, allocations: 28.13 MB / 0.5153 GB, free: 15.55 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01724/0.1643, allocations: 13.3 MB / 0.5283 GB, free: 2.203 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006551/0.165, allocations: 11.94 kB / 0.5283 GB, free: 2.191 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001151/0.1662, allocations: 246.4 kB / 0.5286 GB, free: 1.949 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2613/0.4275, allocations: 3.653 MB / 0.5321 GB, free: 4.91 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006321/0.4338, allocations: 2.368 MB / 0.5345 GB, free: 4.891 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001315/0.4352, allocations: 0.8915 MB / 0.5353 GB, free: 4.891 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004504/0.4356, allocations: 251.7 kB / 0.5356 GB, free: 4.883 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000807/0.4364, allocations: 437 kB / 0.536 GB, free: 4.879 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003458/0.4368, allocations: 272.2 kB / 0.5362 GB, free: 4.879 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.717e-05/0.4369, allocations: 33.69 kB / 0.5363 GB, free: 4.879 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01614/0.453, allocations: 7.226 MB / 0.5433 GB, free: 4.859 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001886/0.4532, allocations: 101.9 kB / 0.5434 GB, free: 4.859 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003857/0.4536, allocations: 215.8 kB / 0.5436 GB, free: 4.859 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0138/0.4674, allocations: 4.406 MB / 0.5479 GB, free: 4.719 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.396e-06/0.4675, allocations: 1.062 kB / 0.5479 GB, free: 4.719 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.4675, allocations: 0 / 0.5479 GB, free: 4.719 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.011e-05/0.4675, allocations: 0 / 0.5479 GB, free: 4.719 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.005504/0.473, allocations: 1.231 MB / 0.5491 GB, free: 3.996 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.831e-05/0.4731, allocations: 13.02 kB / 0.5492 GB, free: 3.992 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001716/0.4748, allocations: 206.2 kB / 0.5493 GB, free: 3.973 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006366/0.4754, allocations: 385.3 kB / 0.5497 GB, free: 3.727 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.311e-05/0.4755, allocations: 25.06 kB / 0.5497 GB, free: 3.727 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.347e-05/0.4755, allocations: 29.38 kB / 0.5498 GB, free: 3.727 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001341/0.4769, allocations: 0.5822 MB / 0.5503 GB, free: 3.598 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.459e-05/0.4769, allocations: 8.312 kB / 0.5503 GB, free: 3.598 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.04e-05/0.4769, allocations: 19.09 kB / 0.5504 GB, free: 3.594 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.425e-05/0.477, allocations: 8.25 kB / 0.5504 GB, free: 3.594 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001484/0.4785, allocations: 0.5251 MB / 0.5509 GB, free: 3.59 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.002695/0.4812, allocations: 2.62 MB / 0.5534 GB, free: 1.57 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00143/0.4826, allocations: 457.6 kB / 0.5539 GB, free: 1.438 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004003/0.483, allocations: 191 kB / 0.5541 GB, free: 1.395 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04289/0.5259, allocations: 24.3 MB / 0.5778 GB, free: 14.39 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.109e-05/0.526, allocations: 42.7 kB / 0.5778 GB, free: 14.35 MB / 446.1 MB Notification: Performance of pre-optimization done (n=25): time 2.084e-06/0.526, allocations: 0 / 0.5778 GB, free: 14.35 MB / 446.1 MB Notification: Performance of matching and sorting (n=25): time 0.002642/0.5286, allocations: 0.7819 MB / 0.5786 GB, free: 13.76 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.93e-05/0.5287, allocations: 110.8 kB / 0.5787 GB, free: 13.63 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003692/0.5291, allocations: 312 kB / 0.579 GB, free: 13.38 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.402e-05/0.5291, allocations: 32.08 kB / 0.579 GB, free: 13.34 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001392/0.5293, allocations: 217 kB / 0.5792 GB, free: 13.18 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.758e-05/0.5294, allocations: 80.5 kB / 0.5793 GB, free: 13.11 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001072/0.5295, allocations: 67.56 kB / 0.5794 GB, free: 13.06 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001428/0.5296, allocations: 342.2 kB / 0.5797 GB, free: 12.73 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003459/0.53, allocations: 136.3 kB / 0.5798 GB, free: 12.63 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003984/0.5304, allocations: 237.7 kB / 0.5801 GB, free: 12.41 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006974/0.5311, allocations: 351.6 kB / 0.5804 GB, free: 12.13 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.5311, allocations: 4 kB / 0.5804 GB, free: 12.12 MB / 446.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0008973/0.532, allocations: 427.9 kB / 0.5808 GB, free: 11.8 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.836e-05/0.532, allocations: 8 kB / 0.5808 GB, free: 11.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.738e-06/0.5321, allocations: 4 kB / 0.5808 GB, free: 11.79 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.017e-05/0.5321, allocations: 4 kB / 0.5808 GB, free: 11.79 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003156/0.5324, allocations: 84.19 kB / 0.5809 GB, free: 11.71 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.199e-05/0.5324, allocations: 8.969 kB / 0.5809 GB, free: 11.71 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002796/0.5327, allocations: 50.03 kB / 0.581 GB, free: 11.67 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.966e-05/0.5327, allocations: 11.5 kB / 0.581 GB, free: 11.66 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.0001928/0.5329, allocations: 165.6 kB / 0.5811 GB, free: 11.52 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.918e-05/0.533, allocations: 39.53 kB / 0.5812 GB, free: 11.48 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002244/0.5353, allocations: 1.892 MB / 0.583 GB, free: 9.938 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-05/0.5353, allocations: 31.89 kB / 0.583 GB, free: 9.906 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.142e-06/0.5353, allocations: 0 / 0.583 GB, free: 9.906 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/0.5354, allocations: 7.984 kB / 0.583 GB, free: 9.898 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009963/0.5364, allocations: 1.009 MB / 0.584 GB, free: 8.852 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.798e-06/0.5364, allocations: 0 / 0.584 GB, free: 8.852 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002713/0.5366, allocations: 75.31 kB / 0.5841 GB, free: 8.781 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.577e-06/0.5367, allocations: 0 / 0.5841 GB, free: 8.781 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.239e-05/0.5367, allocations: 8 kB / 0.5841 GB, free: 8.773 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.481e-06/0.5367, allocations: 4.812 kB / 0.5841 GB, free: 8.77 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.5367, allocations: 4 kB / 0.5841 GB, free: 8.766 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001387/0.5381, allocations: 1.082 MB / 0.5852 GB, free: 7.668 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001745/0.5383, allocations: 159.9 kB / 0.5853 GB, free: 7.492 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.749e-05/0.5384, allocations: 27.73 kB / 0.5854 GB, free: 7.465 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002352/0.5386, allocations: 27.92 kB / 0.5854 GB, free: 7.438 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.42e-05/0.5387, allocations: 32.61 kB / 0.5854 GB, free: 7.406 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.698e-05/0.5387, allocations: 17.86 kB / 0.5854 GB, free: 7.391 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003691/0.5391, allocations: 323.1 kB / 0.5857 GB, free: 7.078 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5391, allocations: 0 / 0.5857 GB, free: 7.078 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004884/0.544, allocations: 0.9916 MB / 0.5867 GB, free: 6.086 MB / 446.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.006342/0.5504, allocations: 1.18 MB / 0.5879 GB, free: 5.012 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001231/0.5516, allocations: 0.5921 MB / 0.5884 GB, free: 4.43 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.5516, allocations: 0 / 0.5884 GB, free: 4.43 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006519/0.5523, allocations: 0.5111 MB / 0.5889 GB, free: 3.926 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001133/0.5534, allocations: 220.7 kB / 0.5891 GB, free: 3.719 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002271/0.5557, allocations: 1.499 MB / 0.5906 GB, free: 2.199 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005035/0.5562, allocations: 0.9677 MB / 0.5916 GB, free: 1.207 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0004084/0.5567, allocations: 270 kB / 0.5918 GB, free: 0.9492 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.399e-05/0.5568, allocations: 39.44 kB / 0.5919 GB, free: 0.9102 MB / 446.1 MB Notification: Performance of SimCode: time 8.71e-07/0.5568, allocations: 0 / 0.5919 GB, free: 0.9102 MB / 446.1 MB Notification: Performance of Templates: time 0.05195/0.6087, allocations: 39.4 MB / 0.6303 GB, free: 9.559 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins/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