Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.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.TestValveLinear,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.TestValveLinear") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,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.TestValveLinear") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001192/0.001192, allocations: 109.1 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.001094/0.001094, 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.408/1.408, 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.2034/0.2034, allocations: 43.52 MB / 314.7 MB, free: 476 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.002164/0.002164, allocations: 68.08 kB / 384.2 MB, free: 56.36 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1094, allocations: 57.8 MB / 442 MB, free: 6.141 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.02841/0.1379, allocations: 28.13 MB / 470.1 MB, free: 9.906 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0149/0.1528, allocations: 13.31 MB / 483.4 MB, free: 12.55 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003095/0.1532, allocations: 7.938 kB / 483.4 MB, free: 12.54 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007151/0.1539, allocations: 250.4 kB / 483.7 MB, free: 12.3 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008683/0.1626, allocations: 3.65 MB / 487.3 MB, free: 8.648 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00585/0.1685, allocations: 2.371 MB / 489.7 MB, free: 6.277 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001134/0.1697, allocations: 0.8964 MB / 490.6 MB, free: 5.375 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003883/0.1701, allocations: 244.7 kB / 490.8 MB, free: 5.129 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006999/0.1708, allocations: 438.3 kB / 491.2 MB, free: 4.699 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003048/0.1711, allocations: 274.8 kB / 491.5 MB, free: 4.43 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.656e-05/0.1711, allocations: 32 kB / 491.5 MB, free: 4.398 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01293/0.1841, allocations: 7.223 MB / 498.8 MB, free: 13.17 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000176/0.1843, allocations: 99.72 kB / 498.9 MB, free: 13.07 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002954/0.1846, allocations: 226.9 kB / 499.1 MB, free: 12.85 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009978/0.1946, allocations: 4.401 MB / 0.4917 GB, free: 8.438 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.1946, allocations: 0 / 0.4917 GB, free: 8.438 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1946, allocations: 0 / 0.4917 GB, free: 8.438 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.379e-05/0.1947, allocations: 0 / 0.4917 GB, free: 8.438 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.003545/0.1982, allocations: 1.243 MB / 0.4929 GB, free: 7.145 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.937e-05/0.1983, allocations: 11.89 kB / 0.4929 GB, free: 7.133 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001843/0.2001, allocations: 216.2 kB / 0.4931 GB, free: 6.922 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006772/0.2008, allocations: 375.3 kB / 0.4935 GB, free: 6.516 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.269e-05/0.2009, allocations: 25.03 kB / 0.4935 GB, free: 6.488 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.118e-05/0.2009, allocations: 28.38 kB / 0.4935 GB, free: 6.461 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001674/0.2026, allocations: 0.59 MB / 0.4941 GB, free: 5.832 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.567e-05/0.2026, allocations: 3.938 kB / 0.4941 GB, free: 5.828 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.29e-05/0.2027, allocations: 15.98 kB / 0.4941 GB, free: 5.812 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.476e-06/0.2027, allocations: 8 kB / 0.4941 GB, free: 5.805 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001732/0.2044, allocations: 0.5446 MB / 0.4947 GB, free: 5.258 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.003172/0.2076, allocations: 2.629 MB / 0.4972 GB, free: 2.395 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0016/0.2092, allocations: 466.1 kB / 0.4977 GB, free: 1.93 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004764/0.2097, allocations: 200.7 kB / 0.4979 GB, free: 1.73 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04723/0.257, allocations: 24.31 MB / 0.5216 GB, free: 6.535 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.013e-05/0.257, allocations: 42.5 kB / 0.5216 GB, free: 6.484 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 3.517e-06/0.257, allocations: 0 / 0.5216 GB, free: 6.484 MB / 414.1 MB Notification: Performance of matching and sorting (n=25): time 0.002807/0.2598, allocations: 0.8292 MB / 0.5225 GB, free: 5.648 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.146e-05/0.2599, allocations: 106.8 kB / 0.5226 GB, free: 5.52 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003364/0.2603, allocations: 308.5 kB / 0.5228 GB, free: 5.215 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.117e-05/0.2603, allocations: 33.7 kB / 0.5229 GB, free: 5.176 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001456/0.2605, allocations: 200.2 kB / 0.5231 GB, free: 4.973 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.637e-05/0.2605, allocations: 86.75 kB / 0.5232 GB, free: 4.887 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001086/0.2607, allocations: 73.69 kB / 0.5232 GB, free: 4.809 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001255/0.2608, allocations: 342.8 kB / 0.5236 GB, free: 4.465 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004083/0.2612, allocations: 147.9 kB / 0.5237 GB, free: 4.32 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004641/0.2617, allocations: 239 kB / 0.5239 GB, free: 4.047 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008098/0.2625, allocations: 373.1 kB / 0.5243 GB, free: 3.648 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.099e-06/0.2625, allocations: 4 kB / 0.5243 GB, free: 3.645 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001017/0.2635, allocations: 449.8 kB / 0.5247 GB, free: 3.199 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.965e-05/0.2636, allocations: 8 kB / 0.5247 GB, free: 3.191 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.473e-06/0.2636, allocations: 0 / 0.5247 GB, free: 3.191 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.1e-05/0.2636, allocations: 7.938 kB / 0.5247 GB, free: 3.184 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003423/0.264, allocations: 91.88 kB / 0.5248 GB, free: 3.094 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.466e-06/0.264, allocations: 4 kB / 0.5248 GB, free: 3.09 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002958/0.2643, allocations: 59.67 kB / 0.5249 GB, free: 3.031 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3e-05/0.2643, allocations: 16 kB / 0.5249 GB, free: 3.016 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: 4 (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.000168/0.2645, allocations: 165.6 kB / 0.525 GB, free: 2.844 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.204e-05/0.2646, allocations: 31.62 kB / 0.5251 GB, free: 2.812 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002277/0.2669, allocations: 1.908 MB / 0.5269 GB, free: 0.8906 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.694e-05/0.2669, allocations: 31.89 kB / 0.527 GB, free: 0.8594 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.541e-06/0.2669, allocations: 0 / 0.527 GB, free: 0.8594 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.842e-06/0.2669, allocations: 15.92 kB / 0.527 GB, free: 0.8438 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1681/0.4351, allocations: 1.004 MB / 0.528 GB, free: 94.17 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.291e-05/0.4351, allocations: 1.094 kB / 0.528 GB, free: 94.17 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000398/0.4355, allocations: 76.3 kB / 0.528 GB, free: 94.17 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.321e-06/0.4355, allocations: 2.656 kB / 0.528 GB, free: 94.17 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.236e-05/0.4356, allocations: 8.422 kB / 0.5281 GB, free: 94.17 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.432e-06/0.4356, allocations: 4.719 kB / 0.5281 GB, free: 94.17 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/0.4356, allocations: 1.094 kB / 0.5281 GB, free: 94.17 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001496/0.4371, allocations: 1.109 MB / 0.5291 GB, free: 94 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001026/0.4372, allocations: 155.2 kB / 0.5293 GB, free: 93.88 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.402e-05/0.4373, allocations: 27.89 kB / 0.5293 GB, free: 93.88 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002673/0.4375, allocations: 34.53 kB / 0.5293 GB, free: 93.88 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.258e-05/0.4376, allocations: 30.41 kB / 0.5294 GB, free: 93.88 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.717e-05/0.4377, allocations: 14.11 kB / 0.5294 GB, free: 93.88 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003005/0.438, allocations: 330.3 kB / 0.5297 GB, free: 93.79 MB / 414.1 MB Notification: Performance of sort global known variables: time 7.32e-07/0.438, allocations: 1.188 kB / 0.5297 GB, free: 93.79 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002525/0.4405, allocations: 0.9886 MB / 0.5307 GB, free: 93.76 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: 18 ($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) * 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.00373/0.4443, allocations: 1.177 MB / 0.5318 GB, free: 93.64 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001179/0.4455, allocations: 0.6087 MB / 0.5324 GB, free: 93.63 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.918e-06/0.4455, allocations: 0 / 0.5324 GB, free: 93.63 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006539/0.4461, allocations: 0.5248 MB / 0.5329 GB, free: 93.62 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001078/0.4472, allocations: 209.3 kB / 0.5331 GB, free: 93.62 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002056/0.4493, allocations: 1.507 MB / 0.5346 GB, free: 93.12 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004591/0.4498, allocations: 0.9625 MB / 0.5355 GB, free: 92.42 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005289/0.4503, allocations: 276.9 kB / 0.5358 GB, free: 92.41 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001088/0.4504, allocations: 42.25 kB / 0.5358 GB, free: 92.41 MB / 414.1 MB Notification: Performance of SimCode: time 1.282e-06/0.4504, allocations: 3.719 kB / 0.5358 GB, free: 92.41 MB / 414.1 MB Notification: Performance of Templates: time 0.0427/0.4931, allocations: 39.43 MB / 0.5744 GB, free: 61.32 MB / 414.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Valves/TestValveLinear/TestValveLinear.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches