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.001186/0.001186, allocations: 106.2 kB / 17.03 MB, free: 5.703 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.001218/0.001218, allocations: 194.9 kB / 17.96 MB, free: 5.082 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.376/1.376, allocations: 205.1 MB / 223.8 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.2152/0.2152, allocations: 43.53 MB / 314.7 MB, free: 472 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.001625/0.001625, allocations: 70.39 kB / 384.2 MB, free: 56.35 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1072, allocations: 57.79 MB / 442 MB, free: 6.133 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.02787/0.1351, allocations: 28.12 MB / 470.1 MB, free: 9.91 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01588/0.151, allocations: 13.29 MB / 483.4 MB, free: 12.57 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005209/0.1516, allocations: 11.94 kB / 483.4 MB, free: 12.56 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000813/0.1525, allocations: 250.4 kB / 483.6 MB, free: 12.31 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01034/0.1629, allocations: 3.659 MB / 487.3 MB, free: 8.656 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006659/0.1695, allocations: 2.364 MB / 489.7 MB, free: 6.293 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00127/0.1708, allocations: 0.8886 MB / 490.5 MB, free: 5.398 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003895/0.1712, allocations: 248.8 kB / 490.8 MB, free: 5.148 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007912/0.172, allocations: 434.3 kB / 491.2 MB, free: 4.723 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003076/0.1724, allocations: 270.8 kB / 491.5 MB, free: 4.457 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.142e-05/0.1724, allocations: 32 kB / 491.5 MB, free: 4.426 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01389/0.1863, allocations: 7.219 MB / 498.7 MB, free: 13.2 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001872/0.1865, allocations: 103.7 kB / 498.8 MB, free: 13.1 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003275/0.1869, allocations: 219 kB / 499 MB, free: 12.88 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01119/0.1981, allocations: 4.401 MB / 0.4916 GB, free: 8.473 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.1981, allocations: 0 / 0.4916 GB, free: 8.473 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.003e-06/0.1981, allocations: 0 / 0.4916 GB, free: 8.473 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.313e-05/0.1981, allocations: 7.984 kB / 0.4917 GB, free: 8.465 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.004223/0.2024, allocations: 1.224 MB / 0.4928 GB, free: 7.191 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.669e-05/0.2024, allocations: 11.89 kB / 0.4929 GB, free: 7.18 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003053/0.2055, allocations: 216.2 kB / 0.4931 GB, free: 6.969 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009645/0.2065, allocations: 379.2 kB / 0.4934 GB, free: 6.559 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.598e-05/0.2066, allocations: 25.03 kB / 0.4934 GB, free: 6.531 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.869e-05/0.2066, allocations: 28.38 kB / 0.4935 GB, free: 6.504 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002377/0.209, allocations: 0.5783 MB / 0.494 GB, free: 5.887 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.449e-05/0.2091, allocations: 8 kB / 0.494 GB, free: 5.879 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.789e-05/0.2091, allocations: 12 kB / 0.4941 GB, free: 5.867 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.497e-05/0.2092, allocations: 15.92 kB / 0.4941 GB, free: 5.852 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002715/0.2119, allocations: 0.525 MB / 0.4946 GB, free: 5.324 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.004704/0.2166, allocations: 2.617 MB / 0.4971 GB, free: 2.473 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002463/0.2191, allocations: 462.1 kB / 0.4976 GB, free: 2.012 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00066/0.2198, allocations: 188.7 kB / 0.4978 GB, free: 1.824 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09245/0.3122, allocations: 24.31 MB / 0.5215 GB, free: 6.625 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.044e-05/0.3123, allocations: 38.56 kB / 0.5215 GB, free: 6.578 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 3.487e-06/0.3124, allocations: 0 / 0.5215 GB, free: 6.578 MB / 414.1 MB Notification: Performance of matching and sorting (n=25): time 0.005643/0.318, allocations: 0.7942 MB / 0.5223 GB, free: 5.777 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.979e-05/0.3181, allocations: 102.8 kB / 0.5224 GB, free: 5.652 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006541/0.3188, allocations: 316.5 kB / 0.5227 GB, free: 5.34 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.309e-05/0.3189, allocations: 33.7 kB / 0.5227 GB, free: 5.301 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002549/0.3192, allocations: 200.2 kB / 0.5229 GB, free: 5.098 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001457/0.3193, allocations: 90.73 kB / 0.523 GB, free: 5.008 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000208/0.3196, allocations: 69.69 kB / 0.5231 GB, free: 4.934 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001868/0.3198, allocations: 338.8 kB / 0.5234 GB, free: 4.594 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005896/0.3204, allocations: 135.9 kB / 0.5235 GB, free: 4.461 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007889/0.3212, allocations: 235 kB / 0.5238 GB, free: 4.191 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001505/0.3227, allocations: 361.1 kB / 0.5241 GB, free: 3.805 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.971e-06/0.3227, allocations: 4 kB / 0.5241 GB, free: 3.801 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.00199/0.3247, allocations: 429.9 kB / 0.5245 GB, free: 3.375 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.891e-05/0.3248, allocations: 4 kB / 0.5245 GB, free: 3.371 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.642e-05/0.3248, allocations: 4 kB / 0.5245 GB, free: 3.367 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.488e-05/0.3249, allocations: 7.938 kB / 0.5245 GB, free: 3.359 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005735/0.3254, allocations: 79.88 kB / 0.5246 GB, free: 3.281 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.416e-05/0.3255, allocations: 4 kB / 0.5246 GB, free: 3.277 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004947/0.326, allocations: 43.72 kB / 0.5247 GB, free: 3.234 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.706e-05/0.3261, allocations: 20.09 kB / 0.5247 GB, free: 3.215 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.0003173/0.3264, allocations: 165.6 kB / 0.5248 GB, free: 3.043 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001577/0.3266, allocations: 35.53 kB / 0.5249 GB, free: 3.008 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004331/0.3309, allocations: 1.889 MB / 0.5267 GB, free: 1.105 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.04e-05/0.331, allocations: 35.83 kB / 0.5268 GB, free: 1.07 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.035e-06/0.331, allocations: 0 / 0.5268 GB, free: 1.07 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.007e-06/0.331, allocations: 3.984 kB / 0.5268 GB, free: 1.066 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001819/0.3329, allocations: 1.012 MB / 0.5277 GB, free: 8 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.895e-06/0.3329, allocations: 4 kB / 0.5277 GB, free: 4 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.1973/0.5302, allocations: 67.3 kB / 0.5278 GB, free: 93.68 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.055e-06/0.5302, allocations: 1.125 kB / 0.5278 GB, free: 93.68 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.073e-05/0.5302, allocations: 7.062 kB / 0.5278 GB, free: 93.68 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.512e-06/0.5302, allocations: 8.047 kB / 0.5278 GB, free: 93.68 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/0.5303, allocations: 1.125 kB / 0.5278 GB, free: 93.68 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001705/0.532, allocations: 1.079 MB / 0.5289 GB, free: 93.5 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001661/0.5322, allocations: 167.8 kB / 0.529 GB, free: 93.39 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.71e-05/0.5322, allocations: 23.66 kB / 0.5291 GB, free: 93.39 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003022/0.5326, allocations: 28.62 kB / 0.5291 GB, free: 93.39 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001033/0.5327, allocations: 29.44 kB / 0.5291 GB, free: 93.39 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.121e-05/0.5327, allocations: 11.84 kB / 0.5291 GB, free: 93.39 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003486/0.5331, allocations: 324.1 kB / 0.5294 GB, free: 93.3 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.5331, allocations: 2.688 kB / 0.5294 GB, free: 93.3 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004185/0.5373, allocations: 0.9937 MB / 0.5304 GB, free: 93.27 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.005514/0.5428, allocations: 1.165 MB / 0.5316 GB, free: 93.16 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001264/0.5441, allocations: 0.5919 MB / 0.5321 GB, free: 93.15 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.5441, allocations: 0 / 0.5321 GB, free: 93.15 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006663/0.5448, allocations: 0.5079 MB / 0.5326 GB, free: 93.15 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001136/0.5459, allocations: 217.5 kB / 0.5328 GB, free: 93.14 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002215/0.5481, allocations: 1.497 MB / 0.5343 GB, free: 92.64 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005089/0.5487, allocations: 0.9657 MB / 0.5352 GB, free: 91.95 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005989/0.5493, allocations: 277.7 kB / 0.5355 GB, free: 91.94 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001203/0.5494, allocations: 45.53 kB / 0.5355 GB, free: 91.93 MB / 414.1 MB Notification: Performance of SimCode: time 6.31e-07/0.5494, allocations: 0 / 0.5355 GB, free: 91.93 MB / 414.1 MB Notification: Performance of Templates: time 0.04779/0.5972, allocations: 39.28 MB / 0.5739 GB, free: 61.18 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 -s gbode -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