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.001347/0.001347, allocations: 106.9 kB / 16.64 MB, free: 6.812 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.001381/0.001381, allocations: 185.9 kB / 17.55 MB, free: 5.93 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.357/1.357, allocations: 205.1 MB / 223.4 MB, free: 12.45 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.216/0.216, allocations: 43.51 MB / 314.3 MB, free: 0.7148 MB / 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.001438/0.001438, allocations: 80.84 kB / 382.9 MB, free: 56.93 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1172/0.1186, allocations: 57.79 MB / 440.7 MB, free: 7.371 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.02906/0.1477, allocations: 28.23 MB / 468.9 MB, free: 11.03 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01687/0.1647, allocations: 13.39 MB / 482.3 MB, free: 13.6 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006119/0.1653, allocations: 11.88 kB / 482.3 MB, free: 13.59 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001004/0.1664, allocations: 222.9 kB / 482.5 MB, free: 13.37 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01297/0.1794, allocations: 3.22 MB / 485.7 MB, free: 10.16 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009095/0.1885, allocations: 2.121 MB / 487.9 MB, free: 8.031 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001357/0.1899, allocations: 0.8847 MB / 488.7 MB, free: 7.141 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004254/0.1903, allocations: 244.7 kB / 489 MB, free: 6.895 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007641/0.1911, allocations: 438.3 kB / 489.4 MB, free: 6.465 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003295/0.1914, allocations: 270.8 kB / 489.7 MB, free: 6.199 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.076e-05/0.1915, allocations: 36 kB / 489.7 MB, free: 6.164 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01386/0.2054, allocations: 7.121 MB / 496.8 MB, free: 15.04 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001954/0.2056, allocations: 103.7 kB / 496.9 MB, free: 14.93 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003384/0.206, allocations: 219 kB / 497.1 MB, free: 14.72 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006754/0.2127, allocations: 3.021 MB / 0.4884 GB, free: 11.69 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.2128, allocations: 0 / 0.4884 GB, free: 11.69 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.2128, allocations: 0 / 0.4884 GB, free: 11.69 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.739e-06/0.2128, allocations: 0 / 0.4884 GB, free: 11.69 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.003638/0.2164, allocations: 1.232 MB / 0.4896 GB, free: 10.41 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.459e-05/0.2165, allocations: 11.89 kB / 0.4897 GB, free: 10.4 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001681/0.2182, allocations: 208.2 kB / 0.4899 GB, free: 10.2 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004746/0.2187, allocations: 359.3 kB / 0.4902 GB, free: 9.805 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.658e-05/0.2187, allocations: 29.03 kB / 0.4902 GB, free: 9.773 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.544e-05/0.2188, allocations: 24.38 kB / 0.4903 GB, free: 9.75 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00149/0.2203, allocations: 0.59 MB / 0.4908 GB, free: 9.121 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.329e-05/0.2203, allocations: 0 / 0.4908 GB, free: 9.121 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.014e-05/0.2203, allocations: 12 kB / 0.4908 GB, free: 9.109 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.008e-05/0.2204, allocations: 8 kB / 0.4908 GB, free: 9.102 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001515/0.2219, allocations: 0.5328 MB / 0.4914 GB, free: 8.566 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.002958/0.2249, allocations: 2.617 MB / 0.4939 GB, free: 5.715 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001491/0.2264, allocations: 458.1 kB / 0.4944 GB, free: 5.258 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004119/0.2268, allocations: 200.7 kB / 0.4946 GB, free: 5.059 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04661/0.2734, allocations: 24.21 MB / 0.5182 GB, free: 9.961 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.788e-05/0.2735, allocations: 34.56 kB / 0.5182 GB, free: 9.918 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 2.475e-06/0.2735, allocations: 0 / 0.5182 GB, free: 9.918 MB / 414.1 MB Notification: Performance of matching and sorting (n=25): time 0.003139/0.2767, allocations: 0.7981 MB / 0.519 GB, free: 9.113 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.594e-05/0.2767, allocations: 106.8 kB / 0.5191 GB, free: 8.984 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004365/0.2772, allocations: 312.5 kB / 0.5194 GB, free: 8.672 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.133e-05/0.2773, allocations: 29.7 kB / 0.5194 GB, free: 8.637 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001669/0.2774, allocations: 216.1 kB / 0.5196 GB, free: 8.418 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.051e-05/0.2775, allocations: 82.75 kB / 0.5197 GB, free: 8.336 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001253/0.2777, allocations: 69.69 kB / 0.5198 GB, free: 8.262 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001498/0.2778, allocations: 334.8 kB / 0.5201 GB, free: 7.926 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000379/0.2782, allocations: 147.9 kB / 0.5202 GB, free: 7.781 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004466/0.2787, allocations: 231 kB / 0.5205 GB, free: 7.516 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007959/0.2795, allocations: 361.1 kB / 0.5208 GB, free: 7.129 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.2795, allocations: 0 / 0.5208 GB, free: 7.129 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001001/0.2805, allocations: 425.7 kB / 0.5212 GB, free: 6.707 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.69e-05/0.2805, allocations: 4 kB / 0.5212 GB, free: 6.703 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.04e-05/0.2805, allocations: 7.938 kB / 0.5212 GB, free: 6.695 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.069e-05/0.2806, allocations: 7.938 kB / 0.5212 GB, free: 6.688 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003252/0.2809, allocations: 79.88 kB / 0.5213 GB, free: 6.609 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.548e-05/0.2809, allocations: 4 kB / 0.5213 GB, free: 6.605 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003533/0.2813, allocations: 52.03 kB / 0.5214 GB, free: 6.555 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.74e-05/0.2813, allocations: 16 kB / 0.5214 GB, free: 6.539 MB / 414.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.0002327/0.2816, allocations: 169.6 kB / 0.5215 GB, free: 6.363 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001524/0.2817, allocations: 35.53 kB / 0.5216 GB, free: 6.328 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002793/0.2845, allocations: 1.901 MB / 0.5234 GB, free: 4.418 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.499e-05/0.2846, allocations: 39.83 kB / 0.5235 GB, free: 4.379 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.238e-06/0.2846, allocations: 0 / 0.5235 GB, free: 4.379 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.702e-06/0.2846, allocations: 0 / 0.5235 GB, free: 4.379 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001172/0.2858, allocations: 1.019 MB / 0.5245 GB, free: 3.312 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.231e-06/0.2858, allocations: 0 / 0.5245 GB, free: 3.312 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002924/0.2861, allocations: 67.88 kB / 0.5245 GB, free: 3.246 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.894e-06/0.2861, allocations: 3.984 kB / 0.5245 GB, free: 3.242 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.745e-05/0.2862, allocations: 8 kB / 0.5245 GB, free: 3.234 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.338e-06/0.2862, allocations: 3.938 kB / 0.5245 GB, free: 3.23 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.2862, allocations: 4 kB / 0.5245 GB, free: 3.227 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001578/0.2878, allocations: 1.088 MB / 0.5256 GB, free: 2.117 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001805/0.2879, allocations: 160 kB / 0.5258 GB, free: 1.941 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.347e-05/0.288, allocations: 27.69 kB / 0.5258 GB, free: 1.914 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003146/0.2884, allocations: 31.91 kB / 0.5258 GB, free: 1.883 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001098/0.2885, allocations: 31.95 kB / 0.5258 GB, free: 1.852 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.831e-05/0.2885, allocations: 19.92 kB / 0.5259 GB, free: 1.832 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003812/0.2889, allocations: 327.1 kB / 0.5262 GB, free: 1.512 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2889, allocations: 0 / 0.5262 GB, free: 1.512 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00326/0.2922, allocations: 0.9954 MB / 0.5272 GB, free: 0.5156 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.2249/0.5171, allocations: 1.162 MB / 0.5283 GB, free: 94.71 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001779/0.5189, allocations: 0.6058 MB / 0.5289 GB, free: 94.71 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.5189, allocations: 1.156 kB / 0.5289 GB, free: 94.71 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007511/0.5197, allocations: 0.5163 MB / 0.5294 GB, free: 94.71 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00131/0.521, allocations: 214.7 kB / 0.5296 GB, free: 94.7 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002534/0.5236, allocations: 1.879 MB / 0.5314 GB, free: 93.84 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005187/0.5241, allocations: 0.9583 MB / 0.5324 GB, free: 93.14 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001354/0.5242, allocations: 46.52 kB / 0.5324 GB, free: 93.14 MB / 414.1 MB Notification: Performance of SimCode: time 7.61e-07/0.5242, allocations: 0 / 0.5324 GB, free: 93.14 MB / 414.1 MB Notification: Performance of Templates: time 0.04185/0.5661, allocations: 24.01 MB / 0.5558 GB, free: 79.71 MB / 414.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","../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches