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.001259/0.001259, allocations: 101.4 kB / 16.64 MB, free: 6.82 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.001431/0.001431, allocations: 194.5 kB / 17.56 MB, free: 5.938 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.469/1.469, allocations: 205.1 MB / 223.4 MB, free: 12.45 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.2214/0.2214, allocations: 43.51 MB / 314.3 MB, free: 0.7109 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.001702/0.001702, allocations: 72.7 kB / 382.9 MB, free: 56.93 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1135/0.1152, allocations: 57.78 MB / 440.7 MB, free: 7.387 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.02892/0.1442, allocations: 28.25 MB / 468.9 MB, free: 11.02 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01684/0.1611, allocations: 13.39 MB / 482.3 MB, free: 13.59 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004828/0.1616, allocations: 11.94 kB / 482.3 MB, free: 13.57 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000881/0.1626, allocations: 222.8 kB / 482.5 MB, free: 13.36 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01087/0.1734, allocations: 3.228 MB / 485.8 MB, free: 10.13 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007505/0.181, allocations: 2.106 MB / 487.9 MB, free: 8.023 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001247/0.1822, allocations: 0.9002 MB / 488.8 MB, free: 7.117 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003882/0.1826, allocations: 244.8 kB / 489 MB, free: 6.871 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007423/0.1834, allocations: 434.2 kB / 489.4 MB, free: 6.445 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003008/0.1837, allocations: 282.9 kB / 489.7 MB, free: 6.168 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.286e-05/0.1838, allocations: 36 kB / 489.7 MB, free: 6.133 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0143/0.1981, allocations: 7.121 MB / 496.9 MB, free: 15 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002372/0.1984, allocations: 107.5 kB / 497 MB, free: 14.9 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000359/0.1987, allocations: 219 kB / 497.2 MB, free: 14.68 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006854/0.2056, allocations: 3.021 MB / 0.4885 GB, free: 11.66 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.2056, allocations: 0 / 0.4885 GB, free: 11.66 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.2057, allocations: 0 / 0.4885 GB, free: 11.66 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.724e-05/0.2057, allocations: 0 / 0.4885 GB, free: 11.66 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.00386/0.2095, allocations: 1.243 MB / 0.4897 GB, free: 10.36 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.878e-05/0.2096, allocations: 11.89 kB / 0.4897 GB, free: 10.35 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001696/0.2113, allocations: 216.2 kB / 0.4899 GB, free: 10.14 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004996/0.2118, allocations: 359.3 kB / 0.4903 GB, free: 9.75 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.841e-05/0.2119, allocations: 25.03 kB / 0.4903 GB, free: 9.723 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.681e-05/0.2119, allocations: 36.31 kB / 0.4903 GB, free: 9.688 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001525/0.2135, allocations: 0.59 MB / 0.4909 GB, free: 9.059 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.457e-05/0.2135, allocations: 3.938 kB / 0.4909 GB, free: 9.055 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.395e-05/0.2135, allocations: 16 kB / 0.4909 GB, free: 9.039 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.067e-05/0.2136, allocations: 4 kB / 0.4909 GB, free: 9.035 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001605/0.2152, allocations: 0.5484 MB / 0.4915 GB, free: 8.484 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.003076/0.2183, allocations: 2.629 MB / 0.494 GB, free: 5.621 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001544/0.2198, allocations: 466.1 kB / 0.4945 GB, free: 5.156 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00046/0.2203, allocations: 196.7 kB / 0.4946 GB, free: 4.961 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04466/0.265, allocations: 24.2 MB / 0.5183 GB, free: 9.867 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.249e-05/0.2651, allocations: 38.56 kB / 0.5183 GB, free: 9.82 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 2.134e-06/0.2651, allocations: 3.938 kB / 0.5183 GB, free: 9.816 MB / 414.1 MB Notification: Performance of matching and sorting (n=25): time 0.002874/0.2679, allocations: 0.8292 MB / 0.5191 GB, free: 8.98 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.546e-05/0.268, allocations: 102.8 kB / 0.5192 GB, free: 8.855 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003717/0.2684, allocations: 312.5 kB / 0.5195 GB, free: 8.543 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.7e-05/0.2685, allocations: 33.7 kB / 0.5196 GB, free: 8.504 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001806/0.2687, allocations: 208.1 kB / 0.5198 GB, free: 8.293 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.491e-05/0.2687, allocations: 82.84 kB / 0.5198 GB, free: 8.211 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001152/0.2689, allocations: 73.59 kB / 0.5199 GB, free: 8.133 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001224/0.269, allocations: 342.8 kB / 0.5202 GB, free: 7.789 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003881/0.2694, allocations: 147.9 kB / 0.5204 GB, free: 7.645 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004531/0.2698, allocations: 243 kB / 0.5206 GB, free: 7.367 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008033/0.2707, allocations: 381.1 kB / 0.521 GB, free: 6.961 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.2707, allocations: 7.938 kB / 0.521 GB, free: 6.953 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009877/0.2717, allocations: 445.6 kB / 0.5214 GB, free: 6.512 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.309e-05/0.2717, allocations: 8 kB / 0.5214 GB, free: 6.504 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.626e-06/0.2717, allocations: 0 / 0.5214 GB, free: 6.504 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.397e-05/0.2717, allocations: 7.938 kB / 0.5214 GB, free: 6.496 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000349/0.2721, allocations: 87.88 kB / 0.5215 GB, free: 6.41 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.173e-05/0.2721, allocations: 7.984 kB / 0.5215 GB, free: 6.402 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003182/0.2724, allocations: 55.97 kB / 0.5216 GB, free: 6.348 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.54e-05/0.2725, allocations: 19.98 kB / 0.5216 GB, free: 6.328 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.0001794/0.2727, allocations: 157.7 kB / 0.5217 GB, free: 6.164 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.164e-05/0.2728, allocations: 31.62 kB / 0.5218 GB, free: 6.133 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002341/0.2751, allocations: 1.936 MB / 0.5237 GB, free: 4.188 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.975e-05/0.2751, allocations: 31.89 kB / 0.5237 GB, free: 4.156 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.2752, allocations: 0 / 0.5237 GB, free: 4.156 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.2752, allocations: 0 / 0.5237 GB, free: 4.156 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009776/0.2761, allocations: 1.015 MB / 0.5247 GB, free: 3.094 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.017e-06/0.2762, allocations: 0 / 0.5247 GB, free: 3.094 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003084/0.2765, allocations: 75.88 kB / 0.5248 GB, free: 3.02 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.669e-06/0.2765, allocations: 8 kB / 0.5248 GB, free: 3.012 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.109e-05/0.2765, allocations: 7.984 kB / 0.5248 GB, free: 3.004 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.075e-06/0.2765, allocations: 7.938 kB / 0.5248 GB, free: 2.996 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.2765, allocations: 0 / 0.5248 GB, free: 2.996 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001512/0.2781, allocations: 1.096 MB / 0.5258 GB, free: 1.879 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001506/0.2782, allocations: 171.8 kB / 0.526 GB, free: 1.691 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.937e-05/0.2783, allocations: 19.75 kB / 0.526 GB, free: 1.672 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003069/0.2786, allocations: 51.77 kB / 0.5261 GB, free: 1.621 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.954e-05/0.2787, allocations: 31.95 kB / 0.5261 GB, free: 1.59 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.528e-05/0.2787, allocations: 12 kB / 0.5261 GB, free: 1.578 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003584/0.2791, allocations: 323.1 kB / 0.5264 GB, free: 1.262 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2791, allocations: 0 / 0.5264 GB, free: 1.262 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00307/0.2822, allocations: 0.9955 MB / 0.5274 GB, free: 272 kB / 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.2017/0.4839, allocations: 1.176 MB / 0.5285 GB, free: 94.68 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001766/0.4857, allocations: 0.6287 MB / 0.5292 GB, free: 94.68 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.481e-06/0.4858, allocations: 3.391 kB / 0.5292 GB, free: 94.68 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007855/0.4865, allocations: 0.526 MB / 0.5297 GB, free: 94.68 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001243/0.4878, allocations: 207.3 kB / 0.5299 GB, free: 94.67 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002481/0.4903, allocations: 1.884 MB / 0.5317 GB, free: 93.81 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004846/0.4908, allocations: 0.9594 MB / 0.5327 GB, free: 93.11 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001605/0.491, allocations: 48.11 kB / 0.5327 GB, free: 93.1 MB / 414.1 MB Notification: Performance of SimCode: time 6.81e-07/0.491, allocations: 0 / 0.5327 GB, free: 93.1 MB / 414.1 MB Notification: Performance of Templates: time 0.03951/0.5305, allocations: 24.05 MB / 0.5562 GB, free: 79.16 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 -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","../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches