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.0009606/0.0009608, allocations: 96.7 kB / 16.02 MB, free: 84 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001236/0.001236, allocations: 177.9 kB / 16.92 MB, free: 6.68 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.389/1.389, allocations: 205.4 MB / 223.1 MB, free: 5.566 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3547/0.3547, allocations: 43.57 MB / 315 MB, free: 8.848 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.0006231/0.0006232, allocations: 12 kB / 384.6 MB, free: 7.637 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.146/0.1467, allocations: 58.86 MB / 443.4 MB, free: 12.67 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.3136/0.4603, allocations: 28.3 MB / 471.8 MB, free: 32.95 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01435/0.4747, allocations: 14.04 MB / 485.8 MB, free: 25 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004089/0.4751, allocations: 10.38 kB / 485.8 MB, free: 25 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007035/0.4758, allocations: 216.8 kB / 486 MB, free: 24.88 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009608/0.4855, allocations: 2.917 MB / 488.9 MB, free: 23.61 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007348/0.4928, allocations: 1.959 MB / 490.9 MB, free: 22.58 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001275/0.4941, allocations: 1.141 MB / 492 MB, free: 22.15 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003396/0.4945, allocations: 218.5 kB / 492.2 MB, free: 22.06 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007349/0.4952, allocations: 398.6 kB / 492.6 MB, free: 21.89 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002832/0.4955, allocations: 264.1 kB / 492.9 MB, free: 21.79 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.018e-05/0.4956, allocations: 20.78 kB / 492.9 MB, free: 21.79 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0149/0.5105, allocations: 7.117 MB / 0.4883 GB, free: 19.95 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000235/0.5108, allocations: 86.45 kB / 0.4884 GB, free: 19.91 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000428/0.5112, allocations: 223.4 kB / 0.4886 GB, free: 19.78 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01706/0.5283, allocations: 4.381 MB / 0.4929 GB, free: 18.66 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.602e-06/0.5283, allocations: 0 / 0.4929 GB, free: 18.66 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.887e-06/0.5283, allocations: 1.75 kB / 0.4929 GB, free: 18.66 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.195e-06/0.5284, allocations: 3.938 kB / 0.4929 GB, free: 18.65 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.006707/0.5351, allocations: 1.175 MB / 0.494 GB, free: 17.89 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.736e-05/0.5351, allocations: 10 kB / 0.494 GB, free: 17.89 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0018/0.5369, allocations: 217.6 kB / 0.4943 GB, free: 17.86 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005901/0.5375, allocations: 366.4 kB / 0.4946 GB, free: 17.57 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.335e-05/0.5376, allocations: 29.72 kB / 0.4946 GB, free: 17.55 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.923e-05/0.5377, allocations: 27.5 kB / 0.4947 GB, free: 17.54 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001749/0.5394, allocations: 0.6282 MB / 0.4953 GB, free: 17.27 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.459e-05/0.5394, allocations: 0 / 0.4953 GB, free: 17.27 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.26e-05/0.5395, allocations: 16.84 kB / 0.4953 GB, free: 17.26 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.36e-05/0.5395, allocations: 7.406 kB / 0.4953 GB, free: 17.26 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00171/0.5412, allocations: 0.5898 MB / 0.4959 GB, free: 17.12 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.003397/0.5446, allocations: 2.643 MB / 0.4985 GB, free: 14.89 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001702/0.5464, allocations: 0.5001 MB / 0.4989 GB, free: 14.64 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004717/0.5468, allocations: 222.6 kB / 0.4992 GB, free: 14.54 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05007/0.5969, allocations: 24.42 MB / 0.523 GB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.517e-05/0.597, allocations: 37.88 kB / 0.523 GB, free: 11.08 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 2.384e-06/0.597, allocations: 0 / 0.523 GB, free: 11.08 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.003182/0.6002, allocations: 0.8908 MB / 0.5239 GB, free: 10.55 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.95e-05/0.6003, allocations: 106.8 kB / 0.524 GB, free: 10.43 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003791/0.6007, allocations: 308.5 kB / 0.5243 GB, free: 10.12 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.474e-05/0.6007, allocations: 29.7 kB / 0.5243 GB, free: 10.08 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000149/0.6009, allocations: 208.2 kB / 0.5245 GB, free: 9.875 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.094e-05/0.601, allocations: 90.73 kB / 0.5246 GB, free: 9.785 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.145e-05/0.601, allocations: 37.64 kB / 0.5247 GB, free: 9.742 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001356/0.6012, allocations: 338.8 kB / 0.525 GB, free: 9.402 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004366/0.6016, allocations: 171.4 kB / 0.5251 GB, free: 9.238 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005169/0.6021, allocations: 263 kB / 0.5254 GB, free: 8.941 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009049/0.6031, allocations: 411.1 kB / 0.5258 GB, free: 8.508 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.6031, allocations: 0 / 0.5258 GB, free: 8.508 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001081/0.6042, allocations: 489.7 kB / 0.5263 GB, free: 8.023 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.72e-05/0.6042, allocations: 8 kB / 0.5263 GB, free: 8.016 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.447e-06/0.6042, allocations: 4 kB / 0.5263 GB, free: 8.012 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.925e-05/0.6042, allocations: 4.75 kB / 0.5263 GB, free: 8.008 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003603/0.6046, allocations: 100.1 kB / 0.5264 GB, free: 7.91 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.324e-05/0.6046, allocations: 7.938 kB / 0.5264 GB, free: 7.902 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003854/0.605, allocations: 67.64 kB / 0.5264 GB, free: 7.836 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.186e-05/0.6051, allocations: 20 kB / 0.5265 GB, free: 7.816 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.0001981/0.6053, allocations: 165.6 kB / 0.5266 GB, free: 7.645 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.935e-05/0.6053, allocations: 31.62 kB / 0.5266 GB, free: 7.613 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002625/0.608, allocations: 1.961 MB / 0.5286 GB, free: 5.648 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.425e-05/0.608, allocations: 35.89 kB / 0.5286 GB, free: 5.613 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.752e-06/0.608, allocations: 7.922 kB / 0.5286 GB, free: 5.605 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.641e-06/0.608, allocations: 0 / 0.5286 GB, free: 5.605 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001152/0.6092, allocations: 1.01 MB / 0.5296 GB, free: 4.547 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.412e-06/0.6092, allocations: 3.938 kB / 0.5296 GB, free: 4.543 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003471/0.6096, allocations: 91.92 kB / 0.5297 GB, free: 4.453 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.057e-06/0.6096, allocations: 4 kB / 0.5297 GB, free: 4.449 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.176e-05/0.6096, allocations: 8 kB / 0.5297 GB, free: 4.441 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.148e-06/0.6096, allocations: 3.938 kB / 0.5297 GB, free: 4.438 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.6096, allocations: 0 / 0.5297 GB, free: 4.438 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001772/0.6114, allocations: 1.14 MB / 0.5308 GB, free: 3.277 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000281/0.6117, allocations: 223.4 kB / 0.531 GB, free: 3.039 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.402e-05/0.6118, allocations: 8 kB / 0.531 GB, free: 3.031 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000331/0.6121, allocations: 47.91 kB / 0.5311 GB, free: 2.984 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001269/0.6122, allocations: 35.94 kB / 0.5311 GB, free: 2.949 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3e-05/0.6123, allocations: 15.12 kB / 0.5311 GB, free: 2.938 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004304/0.6127, allocations: 331.1 kB / 0.5314 GB, free: 2.613 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6127, allocations: 0 / 0.5314 GB, free: 2.613 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.006678/0.6194, allocations: 0.9916 MB / 0.5324 GB, free: 1.621 MB / 398.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.01041/0.6298, allocations: 1.17 MB / 0.5335 GB, free: 460 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001671/0.6316, allocations: 0.646 MB / 0.5342 GB, free: 15.8 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.6316, allocations: 7.938 kB / 0.5342 GB, free: 15.8 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008303/0.6324, allocations: 0.5412 MB / 0.5347 GB, free: 15.26 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001426/0.6339, allocations: 203.9 kB / 0.5349 GB, free: 15.06 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002457/0.6363, allocations: 1.894 MB / 0.5368 GB, free: 13.14 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005451/0.6369, allocations: 0.9638 MB / 0.5377 GB, free: 12.14 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005619/0.6375, allocations: 276.7 kB / 0.538 GB, free: 11.88 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001099/0.6376, allocations: 43.42 kB / 0.538 GB, free: 11.84 MB / 414.1 MB Notification: Performance of SimCode: time 9.22e-07/0.6376, allocations: 0 / 0.538 GB, free: 11.84 MB / 414.1 MB Notification: Performance of Templates: time 0.05893/0.6965, allocations: 38.84 MB / 0.5759 GB, free: 4.988 MB / 446.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Valves/TestValveLinear/TestValveLinear.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches