Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001801/0.001801, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.331/1.331, allocations: 226.8 MB / 245.5 MB, free: 6.965 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009719/0.0009718, allocations: 97.84 kB / 296.7 MB, free: 6.496 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3505/0.3505, allocations: 44.83 MB / 392.7 MB, free: 34.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001109/0.001109, allocations: 63.91 kB / 465.5 MB, free: 12.12 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3721/0.3733, allocations: 62.01 MB / 0.5152 GB, free: 37.8 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.02386/0.3972, allocations: 29.08 MB / 0.5436 GB, free: 17.42 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01597/0.4132, allocations: 14.27 MB / 0.5575 GB, free: 7.496 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005132/0.4137, allocations: 9.719 kB / 0.5575 GB, free: 7.492 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007787/0.4146, allocations: 215.7 kB / 0.5577 GB, free: 7.375 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01171/0.4263, allocations: 2.93 MB / 0.5606 GB, free: 6.09 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007969/0.4343, allocations: 1.986 MB / 0.5625 GB, free: 4.645 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.001758/0.4361, allocations: 1.15 MB / 0.5636 GB, free: 4.012 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004799/0.4366, allocations: 203.9 kB / 0.5638 GB, free: 3.883 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00111/0.4377, allocations: 411.2 kB / 0.5642 GB, free: 3.652 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006511/0.4383, allocations: 277.4 kB / 0.5645 GB, free: 3.496 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 9.894e-05/0.4385, allocations: 17.34 kB / 0.5645 GB, free: 3.496 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01659/0.455, allocations: 7.123 MB / 0.5715 GB, free: 15.86 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002556/0.4553, allocations: 90.7 kB / 0.5715 GB, free: 15.8 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005142/0.4559, allocations: 215.4 kB / 0.5717 GB, free: 15.61 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01542/0.4713, allocations: 4.417 MB / 0.5761 GB, free: 11.18 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.063e-06/0.4714, allocations: 0 / 0.5761 GB, free: 11.18 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.322e-06/0.4714, allocations: 0 / 0.5761 GB, free: 11.18 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.098e-05/0.4714, allocations: 4 kB / 0.5761 GB, free: 11.18 MB / 394.7 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.004741/0.4762, allocations: 1.243 MB / 0.5773 GB, free: 9.883 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.005e-05/0.4762, allocations: 8.031 kB / 0.5773 GB, free: 9.875 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001813/0.4781, allocations: 216.2 kB / 0.5775 GB, free: 9.664 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006643/0.4787, allocations: 367.3 kB / 0.5778 GB, free: 9.266 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.96e-05/0.4788, allocations: 29.03 kB / 0.5779 GB, free: 9.238 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.894e-05/0.4789, allocations: 24.38 kB / 0.5779 GB, free: 9.215 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00161/0.4805, allocations: 0.5978 MB / 0.5785 GB, free: 8.578 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.231e-05/0.4805, allocations: 0 / 0.5785 GB, free: 8.578 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.126e-05/0.4806, allocations: 16 kB / 0.5785 GB, free: 8.562 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.598e-06/0.4806, allocations: 8 kB / 0.5785 GB, free: 8.555 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00172/0.4823, allocations: 0.5484 MB / 0.579 GB, free: 8.004 MB / 394.7 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.003356/0.4857, allocations: 2.613 MB / 0.5816 GB, free: 5.152 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001524/0.4872, allocations: 475 kB / 0.582 GB, free: 4.68 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004789/0.4877, allocations: 200.7 kB / 0.5822 GB, free: 4.48 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05363/0.5413, allocations: 26.77 MB / 0.6084 GB, free: 6.309 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.048e-05/0.5414, allocations: 34.56 kB / 0.6084 GB, free: 6.266 MB / 426.7 MB Notification: Performance of pre-optimization done (n=25): time 3.857e-06/0.5415, allocations: 4 kB / 0.6084 GB, free: 6.262 MB / 426.7 MB Notification: Performance of matching and sorting (n=25): time 0.003035/0.5445, allocations: 0.8245 MB / 0.6092 GB, free: 5.43 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.119e-05/0.5446, allocations: 106.8 kB / 0.6093 GB, free: 5.301 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000434/0.545, allocations: 316.5 kB / 0.6096 GB, free: 4.984 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.959e-05/0.5451, allocations: 29.7 kB / 0.6096 GB, free: 4.949 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001546/0.5452, allocations: 204.2 kB / 0.6098 GB, free: 4.742 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.615e-05/0.5453, allocations: 82.83 kB / 0.6099 GB, free: 4.66 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001255/0.5455, allocations: 69.59 kB / 0.61 GB, free: 4.586 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001306/0.5456, allocations: 346.8 kB / 0.6103 GB, free: 4.238 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004308/0.5461, allocations: 151.7 kB / 0.6105 GB, free: 4.09 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004864/0.5466, allocations: 243.8 kB / 0.6107 GB, free: 3.812 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008743/0.5474, allocations: 381 kB / 0.6111 GB, free: 3.406 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.181e-06/0.5475, allocations: 4 kB / 0.6111 GB, free: 3.402 MB / 426.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001092/0.5486, allocations: 449.6 kB / 0.6115 GB, free: 2.957 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.227e-05/0.5486, allocations: 7.938 kB / 0.6115 GB, free: 2.949 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/0.5486, allocations: 4 kB / 0.6115 GB, free: 2.945 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.388e-05/0.5486, allocations: 7.938 kB / 0.6115 GB, free: 2.938 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003703/0.549, allocations: 88.12 kB / 0.6116 GB, free: 2.852 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.825e-05/0.549, allocations: 8 kB / 0.6116 GB, free: 2.844 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003513/0.5494, allocations: 63.58 kB / 0.6117 GB, free: 2.781 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.2e-05/0.5494, allocations: 12 kB / 0.6117 GB, free: 2.77 MB / 426.7 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.0001895/0.5496, allocations: 157.8 kB / 0.6118 GB, free: 2.605 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.702e-05/0.5497, allocations: 39.62 kB / 0.6119 GB, free: 2.566 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002432/0.5522, allocations: 1.924 MB / 0.6137 GB, free: 0.6367 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.007e-05/0.5522, allocations: 31.89 kB / 0.6138 GB, free: 0.6055 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.5522, allocations: 0 / 0.6138 GB, free: 0.6055 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.5522, allocations: 0 / 0.6138 GB, free: 0.6055 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00104/0.5533, allocations: 1.012 MB / 0.6148 GB, free: 15.54 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.973e-06/0.5533, allocations: 3.984 kB / 0.6148 GB, free: 15.54 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003203/0.5536, allocations: 75.94 kB / 0.6148 GB, free: 15.46 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.721e-06/0.5536, allocations: 0 / 0.6148 GB, free: 15.46 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.663e-05/0.5537, allocations: 11.98 kB / 0.6148 GB, free: 15.45 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.453e-06/0.5537, allocations: 7.875 kB / 0.6149 GB, free: 15.45 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.5537, allocations: 0 / 0.6149 GB, free: 15.45 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002732/0.5564, allocations: 2.274 MB / 0.6171 GB, free: 13.11 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001774/0.5566, allocations: 167.8 kB / 0.6172 GB, free: 12.92 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.211e-05/0.5567, allocations: 19.75 kB / 0.6173 GB, free: 12.9 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003577/0.5571, allocations: 47.89 kB / 0.6173 GB, free: 12.86 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001103/0.5572, allocations: 31.95 kB / 0.6173 GB, free: 12.82 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.713e-05/0.5572, allocations: 11.98 kB / 0.6173 GB, free: 12.81 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0003394/0.5576, allocations: 327.1 kB / 0.6177 GB, free: 12.49 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5576, allocations: 0 / 0.6177 GB, free: 12.49 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003197/0.5608, allocations: 1.019 MB / 0.6186 GB, free: 11.47 MB / 442.7 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.007273/0.5681, allocations: 1.185 MB / 0.6198 GB, free: 10.28 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001928/0.5701, allocations: 0.5986 MB / 0.6204 GB, free: 9.684 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.875e-06/0.5701, allocations: 0 / 0.6204 GB, free: 9.684 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001027/0.5711, allocations: 0.5246 MB / 0.6209 GB, free: 9.16 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001898/0.5731, allocations: 217.1 kB / 0.6211 GB, free: 8.949 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003387/0.5765, allocations: 2.546 MB / 0.6236 GB, free: 6.359 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006374/0.5771, allocations: 0.995 MB / 0.6246 GB, free: 5.344 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0005299/0.5777, allocations: 280.5 kB / 0.6248 GB, free: 5.074 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001191/0.5778, allocations: 43.42 kB / 0.6249 GB, free: 5.035 MB / 442.7 MB Notification: Performance of SimCode: time 8.32e-07/0.5778, allocations: 0 / 0.6249 GB, free: 5.035 MB / 442.7 MB Notification: Performance of Templates: time 0.05477/0.6326, allocations: 39.29 MB / 0.6632 GB, free: 13.78 MB / 490.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveLinear/TestValveLinear.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches