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.001397/0.001397, allocations: 105.9 kB / 18.3 MB, free: 4.887 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.001672/0.001672, allocations: 195.5 kB / 19.23 MB, free: 3.961 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.402/1.402, allocations: 222.9 MB / 242.9 MB, free: 15.21 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.2273/0.2273, allocations: 44.17 MB / 337.3 MB, free: 2.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001267/0.001267, allocations: 63.83 kB / 409.1 MB, free: 27.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1132/0.1145, allocations: 60.82 MB / 469.9 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.03018/0.1448, allocations: 28.14 MB / 498.1 MB, free: 2.133 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01566/0.1605, allocations: 13.3 MB / 0.4994 GB, free: 4.785 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004409/0.1609, allocations: 11.94 kB / 0.4994 GB, free: 4.773 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008121/0.1618, allocations: 254.4 kB / 0.4996 GB, free: 4.523 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01014/0.172, allocations: 3.661 MB / 0.5032 GB, free: 0.8633 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.224/0.396, allocations: 2.353 MB / 0.5055 GB, free: 13.91 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001361/0.3974, allocations: 0.9004 MB / 0.5064 GB, free: 13.91 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004758/0.3979, allocations: 251.5 kB / 0.5066 GB, free: 13.9 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008359/0.3987, allocations: 451 kB / 0.5071 GB, free: 13.9 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003531/0.3991, allocations: 266.8 kB / 0.5073 GB, free: 13.9 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.7e-05/0.3992, allocations: 32.94 kB / 0.5073 GB, free: 13.9 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01508/0.4143, allocations: 7.06 MB / 0.5142 GB, free: 13.9 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002426/0.4146, allocations: 96.66 kB / 0.5143 GB, free: 13.9 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005062/0.4151, allocations: 222.1 kB / 0.5145 GB, free: 13.9 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01206/0.4271, allocations: 4.42 MB / 0.5189 GB, free: 13.78 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.043e-06/0.4272, allocations: 1.656 kB / 0.5189 GB, free: 13.78 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.4272, allocations: 0.9688 kB / 0.5189 GB, free: 13.78 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.046e-05/0.4272, allocations: 0 / 0.5189 GB, free: 13.78 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.004756/0.432, allocations: 1.245 MB / 0.5201 GB, free: 13.06 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.401e-05/0.432, allocations: 8.719 kB / 0.5201 GB, free: 13.06 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001784/0.4338, allocations: 215.2 kB / 0.5203 GB, free: 13.04 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004841/0.4343, allocations: 363.7 kB / 0.5206 GB, free: 12.8 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.58e-05/0.4344, allocations: 26.47 kB / 0.5207 GB, free: 12.8 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.533e-05/0.4344, allocations: 27.06 kB / 0.5207 GB, free: 12.8 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001563/0.436, allocations: 0.5915 MB / 0.5213 GB, free: 12.67 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.624e-05/0.436, allocations: 3.094 kB / 0.5213 GB, free: 12.67 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.452e-05/0.4361, allocations: 14.78 kB / 0.5213 GB, free: 12.67 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.177e-05/0.4361, allocations: 9.25 kB / 0.5213 GB, free: 12.67 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001659/0.4378, allocations: 0.5451 MB / 0.5218 GB, free: 12.67 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.003017/0.4408, allocations: 2.634 MB / 0.5244 GB, free: 10.75 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001591/0.4424, allocations: 470.4 kB / 0.5248 GB, free: 10.65 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004458/0.4429, allocations: 196 kB / 0.525 GB, free: 10.61 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04991/0.4928, allocations: 24.21 MB / 0.5487 GB, free: 5.945 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.24e-05/0.4929, allocations: 41.91 kB / 0.5487 GB, free: 5.902 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 2.915e-06/0.4929, allocations: 0 / 0.5487 GB, free: 5.902 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.00326/0.4962, allocations: 0.8115 MB / 0.5495 GB, free: 5.238 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.159e-05/0.4963, allocations: 118.5 kB / 0.5496 GB, free: 5.102 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000415/0.4967, allocations: 308.6 kB / 0.5499 GB, free: 4.848 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.57e-05/0.4968, allocations: 28.95 kB / 0.5499 GB, free: 4.816 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001575/0.4969, allocations: 210.6 kB / 0.5501 GB, free: 4.656 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.185e-05/0.497, allocations: 82.78 kB / 0.5502 GB, free: 4.586 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001142/0.4972, allocations: 66.91 kB / 0.5503 GB, free: 4.539 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001422/0.4973, allocations: 342.5 kB / 0.5506 GB, free: 4.207 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004346/0.4977, allocations: 150.4 kB / 0.5507 GB, free: 4.098 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004991/0.4983, allocations: 249.5 kB / 0.551 GB, free: 3.867 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008758/0.4991, allocations: 385.6 kB / 0.5514 GB, free: 3.559 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.516e-06/0.4992, allocations: 0 / 0.5514 GB, free: 3.559 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001121/0.5003, allocations: 445.1 kB / 0.5518 GB, free: 3.141 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.858e-05/0.5003, allocations: 4 kB / 0.5518 GB, free: 3.137 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.054e-05/0.5003, allocations: 4 kB / 0.5518 GB, free: 3.133 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.95e-05/0.5003, allocations: 4 kB / 0.5518 GB, free: 3.129 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003582/0.5007, allocations: 98.08 kB / 0.5519 GB, free: 3.039 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.079e-05/0.5007, allocations: 4 kB / 0.5519 GB, free: 3.035 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003481/0.5011, allocations: 47.66 kB / 0.5519 GB, free: 2.988 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.312e-05/0.5011, allocations: 16 kB / 0.5519 GB, free: 2.973 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.0002048/0.5013, allocations: 157.1 kB / 0.5521 GB, free: 2.812 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.497e-05/0.5014, allocations: 39.61 kB / 0.5521 GB, free: 2.773 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002552/0.504, allocations: 1.924 MB / 0.554 GB, free: 0.8516 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-05/0.504, allocations: 39.81 kB / 0.554 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.501e-06/0.5041, allocations: 0 / 0.554 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.502e-06/0.5041, allocations: 2.156 kB / 0.5541 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00107/0.5051, allocations: 1.013 MB / 0.555 GB, free: 15.76 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.801e-06/0.5052, allocations: 0 / 0.555 GB, free: 15.76 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003323/0.5055, allocations: 79.3 kB / 0.5551 GB, free: 15.68 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.698e-06/0.5055, allocations: 8 kB / 0.5551 GB, free: 15.68 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.423e-05/0.5056, allocations: 11.56 kB / 0.5551 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.578e-06/0.5056, allocations: 3.938 kB / 0.5551 GB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.5056, allocations: 0 / 0.5551 GB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001591/0.5072, allocations: 1.096 MB / 0.5562 GB, free: 14.55 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001701/0.5073, allocations: 167.8 kB / 0.5564 GB, free: 14.37 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.519e-05/0.5074, allocations: 27.67 kB / 0.5564 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002919/0.5077, allocations: 31.91 kB / 0.5564 GB, free: 14.31 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001063/0.5078, allocations: 31.95 kB / 0.5565 GB, free: 14.28 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.569e-05/0.5079, allocations: 16 kB / 0.5565 GB, free: 14.27 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003615/0.5083, allocations: 327.1 kB / 0.5568 GB, free: 13.95 MB / 414.1 MB Notification: Performance of sort global known variables: time 5.61e-07/0.5083, allocations: 0 / 0.5568 GB, free: 13.95 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004468/0.5127, allocations: 0.9917 MB / 0.5578 GB, free: 12.96 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.008081/0.5208, allocations: 1.181 MB / 0.5589 GB, free: 11.88 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001925/0.5228, allocations: 0.6303 MB / 0.5595 GB, free: 11.27 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.5228, allocations: 0 / 0.5595 GB, free: 11.27 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008408/0.5237, allocations: 0.5285 MB / 0.56 GB, free: 10.75 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001453/0.5251, allocations: 214.5 kB / 0.5602 GB, free: 10.54 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002428/0.5276, allocations: 1.561 MB / 0.5618 GB, free: 8.957 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000613/0.5282, allocations: 0.9638 MB / 0.5627 GB, free: 7.969 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001363/0.5284, allocations: 47.42 kB / 0.5628 GB, free: 7.922 MB / 414.1 MB Notification: Performance of SimCode: time 8.52e-07/0.5284, allocations: 3.938 kB / 0.5628 GB, free: 7.918 MB / 414.1 MB Notification: Performance of Templates: time 0.04145/0.5698, allocations: 24.05 MB / 0.5862 GB, free: 15.93 MB / 446.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 -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