Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.001084/0.001084, allocations: 109.3 kB / 18.39 MB, free: 4.758 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.001074/0.001074, allocations: 184.1 kB / 19.32 MB, free: 3.828 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.301/1.301, allocations: 222.9 MB / 243 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2038/0.2038, allocations: 44.19 MB / 337.4 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001245/0.001245, allocations: 70.23 kB / 409.9 MB, free: 26.51 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1065, allocations: 60.82 MB / 470.7 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.02808/0.1346, allocations: 28.14 MB / 498.8 MB, free: 1.387 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01507/0.1497, allocations: 13.31 MB / 0.5001 GB, free: 4.035 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003693/0.1501, allocations: 11.94 kB / 0.5002 GB, free: 4.023 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007156/0.1509, allocations: 250.4 kB / 0.5004 GB, free: 3.777 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009091/0.16, allocations: 3.66 MB / 0.504 GB, free: 120 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1984/0.3584, allocations: 2.358 MB / 0.5063 GB, free: 13.61 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001082/0.3595, allocations: 0.9052 MB / 0.5071 GB, free: 13.61 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003605/0.3599, allocations: 243.3 kB / 0.5074 GB, free: 13.6 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006798/0.3606, allocations: 450.3 kB / 0.5078 GB, free: 13.59 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003205/0.3609, allocations: 274.4 kB / 0.5081 GB, free: 13.59 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.48e-05/0.361, allocations: 33.34 kB / 0.5081 GB, free: 13.59 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01246/0.3734, allocations: 7.218 MB / 0.5152 GB, free: 13.59 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000162/0.3736, allocations: 98.78 kB / 0.5152 GB, free: 13.59 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003444/0.374, allocations: 226.1 kB / 0.5155 GB, free: 13.59 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008032/0.382, allocations: 4.412 MB / 0.5198 GB, free: 13.49 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.382, allocations: 0 / 0.5198 GB, free: 13.49 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.3821, allocations: 0 / 0.5198 GB, free: 13.49 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.785e-06/0.3821, allocations: 2.281 kB / 0.5198 GB, free: 13.49 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.003118/0.3852, allocations: 1.246 MB / 0.521 GB, free: 12.77 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.636e-05/0.3852, allocations: 11.12 kB / 0.521 GB, free: 12.77 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001663/0.3869, allocations: 212.5 kB / 0.5212 GB, free: 12.75 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004619/0.3874, allocations: 375.8 kB / 0.5216 GB, free: 12.52 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.204e-05/0.3874, allocations: 26.09 kB / 0.5216 GB, free: 12.52 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.368e-05/0.3875, allocations: 31.22 kB / 0.5216 GB, free: 12.52 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001433/0.3889, allocations: 0.5917 MB / 0.5222 GB, free: 12.38 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.249e-05/0.3889, allocations: 3.188 kB / 0.5222 GB, free: 12.38 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.735e-05/0.389, allocations: 14.28 kB / 0.5222 GB, free: 12.38 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.708e-06/0.389, allocations: 7.781 kB / 0.5222 GB, free: 12.38 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001519/0.3905, allocations: 0.5463 MB / 0.5228 GB, free: 12.27 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.002356/0.3929, allocations: 2.621 MB / 0.5253 GB, free: 10.09 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001403/0.3943, allocations: 467.7 kB / 0.5258 GB, free: 9.953 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004027/0.3947, allocations: 198 kB / 0.5259 GB, free: 9.91 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04328/0.438, allocations: 24.31 MB / 0.5497 GB, free: 4.805 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.492e-05/0.4381, allocations: 37.69 kB / 0.5497 GB, free: 4.762 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 2.034e-06/0.4381, allocations: 4 kB / 0.5497 GB, free: 4.758 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.002872/0.441, allocations: 0.8169 MB / 0.5505 GB, free: 4.094 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.05e-05/0.4411, allocations: 110.8 kB / 0.5506 GB, free: 3.961 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003398/0.4414, allocations: 313.5 kB / 0.5509 GB, free: 3.703 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.469e-05/0.4414, allocations: 29.52 kB / 0.551 GB, free: 3.672 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001273/0.4416, allocations: 205 kB / 0.5512 GB, free: 3.516 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.836e-05/0.4417, allocations: 88.58 kB / 0.5512 GB, free: 3.441 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001068/0.4418, allocations: 71.34 kB / 0.5513 GB, free: 3.391 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001171/0.4419, allocations: 343.8 kB / 0.5516 GB, free: 3.059 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003972/0.4423, allocations: 145.1 kB / 0.5518 GB, free: 2.953 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004525/0.4428, allocations: 241.8 kB / 0.552 GB, free: 2.727 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008153/0.4436, allocations: 382.7 kB / 0.5524 GB, free: 2.418 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.277e-06/0.4436, allocations: 0 / 0.5524 GB, free: 2.418 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001031/0.4446, allocations: 447.9 kB / 0.5528 GB, free: 2.062 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.573e-05/0.4447, allocations: 4 kB / 0.5528 GB, free: 2.059 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.296e-06/0.4447, allocations: 4 kB / 0.5528 GB, free: 2.055 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.498e-05/0.4447, allocations: 4 kB / 0.5528 GB, free: 2.051 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003508/0.4451, allocations: 99.69 kB / 0.5529 GB, free: 1.961 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.768e-06/0.4451, allocations: 5.562 kB / 0.5529 GB, free: 1.957 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002987/0.4454, allocations: 55.64 kB / 0.553 GB, free: 1.902 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.211e-05/0.4454, allocations: 16 kB / 0.553 GB, free: 1.887 MB / 398.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.0001786/0.4456, allocations: 161.1 kB / 0.5531 GB, free: 1.723 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.907e-05/0.4457, allocations: 31.62 kB / 0.5532 GB, free: 1.691 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002367/0.4481, allocations: 1.912 MB / 0.555 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-05/0.4481, allocations: 31.89 kB / 0.5551 GB, free: 15.76 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.4481, allocations: 0 / 0.5551 GB, free: 15.76 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.4481, allocations: 3.984 kB / 0.5551 GB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009599/0.4491, allocations: 1.022 MB / 0.5561 GB, free: 14.69 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.4491, allocations: 0 / 0.5561 GB, free: 14.69 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003346/0.4494, allocations: 79.02 kB / 0.5561 GB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.067e-06/0.4495, allocations: 0 / 0.5561 GB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.233e-05/0.4495, allocations: 12 kB / 0.5561 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.877e-06/0.4495, allocations: 3.938 kB / 0.5562 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.4495, allocations: 0 / 0.5562 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001469/0.451, allocations: 1.099 MB / 0.5572 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001353/0.4511, allocations: 156.7 kB / 0.5574 GB, free: 13.31 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.93e-05/0.4512, allocations: 27.69 kB / 0.5574 GB, free: 13.29 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002794/0.4515, allocations: 27.91 kB / 0.5574 GB, free: 13.26 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.648e-05/0.4516, allocations: 35.95 kB / 0.5575 GB, free: 13.22 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.517e-05/0.4516, allocations: 11.98 kB / 0.5575 GB, free: 13.21 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003447/0.452, allocations: 335.1 kB / 0.5578 GB, free: 12.89 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.452, allocations: 0.8438 kB / 0.5578 GB, free: 12.89 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003513/0.4555, allocations: 0.9916 MB / 0.5588 GB, free: 11.89 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.005636/0.4611, allocations: 1.176 MB / 0.5599 GB, free: 10.82 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001206/0.4624, allocations: 0.6163 MB / 0.5605 GB, free: 10.22 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.4624, allocations: 0 / 0.5605 GB, free: 10.22 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006917/0.4631, allocations: 0.5137 MB / 0.561 GB, free: 9.711 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001054/0.4641, allocations: 220.9 kB / 0.5612 GB, free: 9.504 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001998/0.4662, allocations: 1.507 MB / 0.5627 GB, free: 7.973 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004737/0.4666, allocations: 0.9599 MB / 0.5636 GB, free: 6.988 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004184/0.4671, allocations: 273.1 kB / 0.5639 GB, free: 6.73 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001067/0.4672, allocations: 43.42 kB / 0.5639 GB, free: 6.688 MB / 414.1 MB Notification: Performance of SimCode: time 4e-07/0.4672, allocations: 0 / 0.5639 GB, free: 6.688 MB / 414.1 MB Notification: Performance of Templates: time 0.05302/0.5202, allocations: 39.45 MB / 0.6025 GB, free: 15.41 MB / 462.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveLinear/TestValveLinear.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches