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.001206/0.001206, allocations: 112.7 kB / 17.04 MB, free: 5.801 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.001076/0.001076, allocations: 195 kB / 17.98 MB, free: 5.016 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.695/1.695, allocations: 205.1 MB / 223.8 MB, free: 12.27 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.7 MB, free: 488 kB / 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.001494/0.001494, allocations: 67.77 kB / 384.2 MB, free: 56.37 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1311/0.1326, allocations: 57.79 MB / 442 MB, free: 6.156 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.02846/0.1611, allocations: 28.13 MB / 470.1 MB, free: 9.922 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01605/0.1772, allocations: 13.3 MB / 483.4 MB, free: 12.57 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005851/0.1778, allocations: 11.94 kB / 483.4 MB, free: 12.56 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001115/0.1789, allocations: 254.3 kB / 483.7 MB, free: 12.31 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01239/0.1914, allocations: 3.65 MB / 487.3 MB, free: 8.66 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00788/0.1993, allocations: 2.375 MB / 489.7 MB, free: 6.285 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001451/0.2008, allocations: 0.8964 MB / 490.6 MB, free: 5.383 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000437/0.2012, allocations: 244.7 kB / 490.8 MB, free: 5.137 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008441/0.2021, allocations: 442.2 kB / 491.3 MB, free: 4.703 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004105/0.2025, allocations: 266.9 kB / 491.5 MB, free: 4.441 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.492e-05/0.2026, allocations: 36 kB / 491.6 MB, free: 4.406 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01581/0.2184, allocations: 7.223 MB / 498.8 MB, free: 13.18 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003014/0.2187, allocations: 99.66 kB / 498.9 MB, free: 13.08 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004106/0.2191, allocations: 227 kB / 499.1 MB, free: 12.86 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01262/0.2318, allocations: 4.398 MB / 0.4917 GB, free: 8.449 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.677e-06/0.2318, allocations: 0 / 0.4917 GB, free: 8.449 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.464e-06/0.2318, allocations: 7.938 kB / 0.4917 GB, free: 8.441 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.024e-05/0.2319, allocations: 0 / 0.4917 GB, free: 8.441 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.004168/0.236, allocations: 1.24 MB / 0.4929 GB, free: 7.152 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.523e-05/0.2361, allocations: 11.89 kB / 0.4929 GB, free: 7.141 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001712/0.2378, allocations: 212.2 kB / 0.4931 GB, free: 6.934 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000667/0.2385, allocations: 379.3 kB / 0.4935 GB, free: 6.523 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.283e-05/0.2386, allocations: 29.03 kB / 0.4935 GB, free: 6.492 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.1e-05/0.2386, allocations: 24.38 kB / 0.4935 GB, free: 6.469 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001493/0.2401, allocations: 0.5978 MB / 0.4941 GB, free: 5.832 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.481e-05/0.2401, allocations: 3.938 kB / 0.4941 GB, free: 5.828 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.405e-05/0.2402, allocations: 12 kB / 0.4941 GB, free: 5.816 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.177e-05/0.2402, allocations: 8 kB / 0.4941 GB, free: 5.809 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00158/0.2418, allocations: 0.5445 MB / 0.4947 GB, free: 5.262 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.003251/0.2451, allocations: 2.621 MB / 0.4972 GB, free: 2.406 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001557/0.2466, allocations: 474.1 kB / 0.4977 GB, free: 1.934 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004647/0.2471, allocations: 196.7 kB / 0.4979 GB, free: 1.738 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05078/0.2979, allocations: 24.31 MB / 0.5216 GB, free: 6.535 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.353e-05/0.298, allocations: 34.56 kB / 0.5217 GB, free: 6.492 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 2.304e-06/0.298, allocations: 4 kB / 0.5217 GB, free: 6.488 MB / 414.1 MB Notification: Performance of matching and sorting (n=25): time 0.002924/0.3009, allocations: 0.8214 MB / 0.5225 GB, free: 5.66 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.73e-05/0.301, allocations: 106.8 kB / 0.5226 GB, free: 5.531 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003551/0.3014, allocations: 312.5 kB / 0.5229 GB, free: 5.223 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.263e-05/0.3014, allocations: 29.7 kB / 0.5229 GB, free: 5.188 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001446/0.3016, allocations: 204.2 kB / 0.5231 GB, free: 4.98 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.268e-05/0.3017, allocations: 82.75 kB / 0.5232 GB, free: 4.898 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001111/0.3018, allocations: 73.69 kB / 0.5232 GB, free: 4.82 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001331/0.3019, allocations: 342.8 kB / 0.5236 GB, free: 4.477 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003945/0.3023, allocations: 143.9 kB / 0.5237 GB, free: 4.336 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004705/0.3028, allocations: 250.9 kB / 0.5239 GB, free: 4.051 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008121/0.3036, allocations: 373.1 kB / 0.5243 GB, free: 3.652 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.3037, allocations: 0 / 0.5243 GB, free: 3.652 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001018/0.3047, allocations: 453.7 kB / 0.5247 GB, free: 3.203 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.886e-05/0.3047, allocations: 4 kB / 0.5247 GB, free: 3.199 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.889e-06/0.3047, allocations: 4 kB / 0.5247 GB, free: 3.195 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.469e-05/0.3048, allocations: 7.938 kB / 0.5247 GB, free: 3.188 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003601/0.3051, allocations: 83.88 kB / 0.5248 GB, free: 3.105 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.288e-05/0.3051, allocations: 7.984 kB / 0.5248 GB, free: 3.098 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002951/0.3054, allocations: 51.84 kB / 0.5249 GB, free: 3.047 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.463e-05/0.3055, allocations: 16 kB / 0.5249 GB, free: 3.031 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.0002182/0.3057, allocations: 165.6 kB / 0.525 GB, free: 2.859 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.547e-05/0.3058, allocations: 35.62 kB / 0.5251 GB, free: 2.824 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002444/0.3083, allocations: 1.912 MB / 0.527 GB, free: 0.8984 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.117e-05/0.3083, allocations: 31.89 kB / 0.527 GB, free: 0.8672 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.364e-06/0.3083, allocations: 7.984 kB / 0.527 GB, free: 0.8594 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.119e-06/0.3083, allocations: 0 / 0.527 GB, free: 0.8594 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2832/0.5916, allocations: 1.008 MB / 0.528 GB, free: 93.64 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.801e-05/0.5916, allocations: 2.906 kB / 0.528 GB, free: 93.64 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004609/0.5921, allocations: 75.48 kB / 0.528 GB, free: 93.64 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.208e-05/0.5921, allocations: 2.312 kB / 0.528 GB, free: 93.64 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.363e-05/0.5922, allocations: 7.719 kB / 0.5281 GB, free: 93.64 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.525e-06/0.5922, allocations: 7.625 kB / 0.5281 GB, free: 93.64 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.838e-06/0.5922, allocations: 2.188 kB / 0.5281 GB, free: 93.64 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0021/0.5943, allocations: 1.1 MB / 0.5291 GB, free: 93.47 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000212/0.5945, allocations: 164.6 kB / 0.5293 GB, free: 93.36 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001056/0.5947, allocations: 31.34 kB / 0.5293 GB, free: 93.35 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003224/0.595, allocations: 27.28 kB / 0.5294 GB, free: 93.35 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001342/0.5951, allocations: 30.59 kB / 0.5294 GB, free: 93.35 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.339e-05/0.5952, allocations: 19.78 kB / 0.5294 GB, free: 93.35 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004327/0.5956, allocations: 322.1 kB / 0.5297 GB, free: 93.26 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5956, allocations: 0 / 0.5297 GB, free: 93.26 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003606/0.5992, allocations: 0.9953 MB / 0.5307 GB, free: 93.23 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.004862/0.6041, allocations: 1.169 MB / 0.5318 GB, free: 93.12 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001454/0.6056, allocations: 0.613 MB / 0.5324 GB, free: 93.11 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.603e-06/0.6056, allocations: 1.375 kB / 0.5324 GB, free: 93.11 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007674/0.6064, allocations: 0.5162 MB / 0.5329 GB, free: 93.1 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001243/0.6077, allocations: 218.4 kB / 0.5331 GB, free: 93.1 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00226/0.6099, allocations: 1.504 MB / 0.5346 GB, free: 92.59 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000474/0.6104, allocations: 0.9651 MB / 0.5355 GB, free: 91.89 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006577/0.6111, allocations: 277.9 kB / 0.5358 GB, free: 91.89 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001249/0.6112, allocations: 41.06 kB / 0.5358 GB, free: 91.89 MB / 414.1 MB Notification: Performance of SimCode: time 8.82e-07/0.6112, allocations: 1.094 kB / 0.5359 GB, free: 91.89 MB / 414.1 MB Notification: Performance of Templates: time 0.04874/0.66, allocations: 39.43 MB / 0.5744 GB, free: 60.8 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 -s cvode -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