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.001563/0.001563, allocations: 101.2 kB / 16.94 MB, free: 6.184 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.001829/0.001829, allocations: 191.4 kB / 17.86 MB, free: 5.289 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.573/1.573, allocations: 205.1 MB / 223.7 MB, free: 12.29 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.2277/0.2277, allocations: 43.52 MB / 314.6 MB, free: 0.5352 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.001569/0.001569, allocations: 70.62 kB / 383.4 MB, free: 56.68 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.118/0.1196, allocations: 57.8 MB / 441.2 MB, free: 6.918 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.02963/0.1493, allocations: 28.13 MB / 469.3 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01657/0.1659, allocations: 13.31 MB / 482.6 MB, free: 13.33 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004679/0.1664, allocations: 11.94 kB / 482.6 MB, free: 13.32 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008522/0.1673, allocations: 250.4 kB / 482.9 MB, free: 13.07 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01076/0.1781, allocations: 3.647 MB / 486.5 MB, free: 9.422 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007129/0.1852, allocations: 2.37 MB / 488.9 MB, free: 7.055 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0014/0.1867, allocations: 0.8964 MB / 489.8 MB, free: 6.152 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004464/0.1871, allocations: 244.7 kB / 490 MB, free: 5.906 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008536/0.188, allocations: 430.3 kB / 490.5 MB, free: 5.484 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003433/0.1883, allocations: 274.8 kB / 490.7 MB, free: 5.215 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.266e-05/0.1884, allocations: 36 kB / 490.8 MB, free: 5.18 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0145/0.2029, allocations: 7.059 MB / 497.8 MB, free: 14.11 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002101/0.2032, allocations: 95.66 kB / 497.9 MB, free: 14.02 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003569/0.2035, allocations: 223 kB / 498.1 MB, free: 13.8 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01234/0.2159, allocations: 4.409 MB / 0.4908 GB, free: 9.383 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.663e-06/0.2159, allocations: 0 / 0.4908 GB, free: 9.383 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.2159, allocations: 0 / 0.4908 GB, free: 9.383 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.201e-05/0.2159, allocations: 7.984 kB / 0.4908 GB, free: 9.375 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.003634/0.2196, allocations: 1.232 MB / 0.492 GB, free: 8.094 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.782e-05/0.2196, allocations: 15.89 kB / 0.492 GB, free: 8.078 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001729/0.2214, allocations: 224.1 kB / 0.4922 GB, free: 7.859 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005506/0.2219, allocations: 351.4 kB / 0.4925 GB, free: 7.477 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.785e-05/0.222, allocations: 29.03 kB / 0.4926 GB, free: 7.445 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.618e-05/0.222, allocations: 28.38 kB / 0.4926 GB, free: 7.418 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001583/0.2236, allocations: 0.59 MB / 0.4932 GB, free: 6.789 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.431e-05/0.2237, allocations: 3.938 kB / 0.4932 GB, free: 6.785 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.6e-05/0.2237, allocations: 23.98 kB / 0.4932 GB, free: 6.762 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.958e-06/0.2237, allocations: 8 kB / 0.4932 GB, free: 6.754 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001667/0.2254, allocations: 0.5406 MB / 0.4937 GB, free: 6.211 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.003343/0.2288, allocations: 2.636 MB / 0.4963 GB, free: 3.34 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00166/0.2304, allocations: 466.1 kB / 0.4968 GB, free: 2.875 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004882/0.2309, allocations: 200.7 kB / 0.4969 GB, free: 2.676 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0514/0.2824, allocations: 24.21 MB / 0.5206 GB, free: 7.578 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.907e-05/0.2824, allocations: 38.56 kB / 0.5206 GB, free: 7.531 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 1.924e-06/0.2824, allocations: 0 / 0.5206 GB, free: 7.531 MB / 414.1 MB Notification: Performance of matching and sorting (n=25): time 0.003167/0.2856, allocations: 0.8253 MB / 0.5214 GB, free: 6.699 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.459e-05/0.2857, allocations: 106.8 kB / 0.5215 GB, free: 6.57 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003841/0.2861, allocations: 308.5 kB / 0.5218 GB, free: 6.266 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.342e-05/0.2862, allocations: 29.7 kB / 0.5219 GB, free: 6.23 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001657/0.2863, allocations: 212.2 kB / 0.5221 GB, free: 6.016 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.904e-05/0.2864, allocations: 86.75 kB / 0.5221 GB, free: 5.93 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001206/0.2866, allocations: 65.69 kB / 0.5222 GB, free: 5.859 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001405/0.2867, allocations: 346.8 kB / 0.5225 GB, free: 5.512 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000447/0.2872, allocations: 147.9 kB / 0.5227 GB, free: 5.367 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005109/0.2877, allocations: 243 kB / 0.5229 GB, free: 5.09 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009238/0.2886, allocations: 377.1 kB / 0.5233 GB, free: 4.688 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.2886, allocations: 0 / 0.5233 GB, free: 4.688 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001135/0.2898, allocations: 449.8 kB / 0.5237 GB, free: 4.242 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.978e-05/0.2898, allocations: 8.031 kB / 0.5237 GB, free: 4.234 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.408e-06/0.2898, allocations: 4 kB / 0.5237 GB, free: 4.23 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.077e-05/0.2898, allocations: 7.938 kB / 0.5237 GB, free: 4.223 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003635/0.2902, allocations: 83.88 kB / 0.5238 GB, free: 4.141 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.278e-05/0.2902, allocations: 7.984 kB / 0.5238 GB, free: 4.133 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003169/0.2906, allocations: 51.66 kB / 0.5238 GB, free: 4.082 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.234e-05/0.2906, allocations: 15.94 kB / 0.5239 GB, free: 4.066 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.0001994/0.2908, allocations: 165.7 kB / 0.524 GB, free: 3.895 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.574e-05/0.2909, allocations: 35.62 kB / 0.5241 GB, free: 3.859 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002597/0.2935, allocations: 1.92 MB / 0.5259 GB, free: 1.926 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.225e-05/0.2936, allocations: 39.88 kB / 0.526 GB, free: 1.887 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.2936, allocations: 0 / 0.526 GB, free: 1.887 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.2936, allocations: 0 / 0.526 GB, free: 1.887 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00111/0.2947, allocations: 1.012 MB / 0.527 GB, free: 0.8281 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.625e-06/0.2947, allocations: 3.938 kB / 0.527 GB, free: 0.8242 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003369/0.2951, allocations: 87.8 kB / 0.527 GB, free: 0.7383 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.17e-06/0.2951, allocations: 0 / 0.527 GB, free: 0.7383 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.662e-05/0.2951, allocations: 8 kB / 0.5271 GB, free: 0.7305 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.76e-06/0.2951, allocations: 3.938 kB / 0.5271 GB, free: 0.7266 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.2951, allocations: 0 / 0.5271 GB, free: 0.7266 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2009/0.496, allocations: 1.101 MB / 0.5281 GB, free: 94.05 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001966/0.4963, allocations: 161.5 kB / 0.5283 GB, free: 93.96 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.375e-05/0.4964, allocations: 24.09 kB / 0.5283 GB, free: 93.96 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003241/0.4967, allocations: 36.47 kB / 0.5283 GB, free: 93.96 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001079/0.4968, allocations: 31.67 kB / 0.5284 GB, free: 93.96 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.998e-05/0.4968, allocations: 13.52 kB / 0.5284 GB, free: 93.96 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003804/0.4972, allocations: 326.3 kB / 0.5287 GB, free: 93.88 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4972, allocations: 0 / 0.5287 GB, free: 93.88 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002849/0.5001, allocations: 0.991 MB / 0.5297 GB, free: 93.85 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.003808/0.5039, allocations: 1.179 MB / 0.5308 GB, free: 93.74 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001663/0.5056, allocations: 0.6319 MB / 0.5314 GB, free: 93.73 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/0.5056, allocations: 0 / 0.5314 GB, free: 93.73 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006564/0.5063, allocations: 0.5209 MB / 0.5319 GB, free: 93.73 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001159/0.5074, allocations: 217.1 kB / 0.5321 GB, free: 93.72 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002019/0.5095, allocations: 1.562 MB / 0.5337 GB, free: 93.18 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004651/0.5099, allocations: 0.9626 MB / 0.5346 GB, free: 92.49 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001199/0.5101, allocations: 43.66 kB / 0.5347 GB, free: 92.48 MB / 414.1 MB Notification: Performance of SimCode: time 3.3e-07/0.5101, allocations: 1.344 kB / 0.5347 GB, free: 92.48 MB / 414.1 MB Notification: Performance of Templates: time 0.0316/0.5417, allocations: 24.05 MB / 0.5581 GB, free: 77.17 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 -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