Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve,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|V1.minLimiter.y|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|downstreamPressure.y|const.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve,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|V1.minLimiter.y|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|downstreamPressure.y|const.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000923/0.0009229, allocations: 89.52 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00122/0.00122, allocations: 203.3 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.369/1.369, allocations: 227.7 MB / 246.8 MB, free: 9.785 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2159/0.2159, allocations: 46.19 MB / 345.2 MB, free: 11.18 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002785/0.0002784, allocations: 12.31 kB / 419.5 MB, free: 19.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1258/0.1261, allocations: 63.56 MB / 483.1 MB, free: 4.125 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve): time 0.03337/0.1595, allocations: 28.82 MB / 0.4999 GB, free: 7.207 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2925/0.452, allocations: 18.04 MB / 0.5175 GB, free: 11.02 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007683/0.4528, allocations: 14.34 kB / 0.5175 GB, free: 11.02 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009435/0.4538, allocations: 226.6 kB / 0.5178 GB, free: 11.01 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01618/0.47, allocations: 3.645 MB / 0.5213 GB, free: 10.82 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006074/0.4761, allocations: 1.595 MB / 0.5229 GB, free: 10.55 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002619/0.4787, allocations: 1.216 MB / 0.5241 GB, free: 10.36 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006061/0.4794, allocations: 233.2 kB / 0.5243 GB, free: 10.34 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001324/0.4807, allocations: 445.2 kB / 0.5247 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004128/0.4848, allocations: 1.864 MB / 0.5265 GB, free: 9.777 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.783e-05/0.4849, allocations: 21.09 kB / 0.5265 GB, free: 9.773 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01511/0.5001, allocations: 7.408 MB / 0.5338 GB, free: 8.281 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001914/0.5003, allocations: 88.88 kB / 0.5339 GB, free: 8.234 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003939/0.5007, allocations: 249.7 kB / 0.5341 GB, free: 8.078 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01226/0.5129, allocations: 4.635 MB / 0.5386 GB, free: 5.367 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.513, allocations: 2.969 kB / 0.5386 GB, free: 5.367 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.513, allocations: 0 / 0.5386 GB, free: 5.367 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.184e-06/0.513, allocations: 0 / 0.5386 GB, free: 5.367 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.00305/0.516, allocations: 1.252 MB / 0.5399 GB, free: 4.457 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.018e-05/0.5161, allocations: 9.031 kB / 0.5399 GB, free: 4.457 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001822/0.5179, allocations: 251.7 kB / 0.5401 GB, free: 4.355 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004156/0.5184, allocations: 391 kB / 0.5405 GB, free: 4.004 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.886e-05/0.5184, allocations: 30.97 kB / 0.5405 GB, free: 3.988 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.995e-05/0.5184, allocations: 32.23 kB / 0.5405 GB, free: 3.977 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00143/0.5199, allocations: 0.628 MB / 0.5411 GB, free: 3.586 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.585e-05/0.5199, allocations: 3.688 kB / 0.5412 GB, free: 3.586 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.316e-05/0.52, allocations: 10.12 kB / 0.5412 GB, free: 3.578 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.042e-05/0.52, allocations: 8.906 kB / 0.5412 GB, free: 3.578 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001546/0.5215, allocations: 0.6005 MB / 0.5418 GB, free: 3.309 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.002584/0.5241, allocations: 2.657 MB / 0.5444 GB, free: 0.8281 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001391/0.5255, allocations: 0.4914 MB / 0.5448 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004042/0.5259, allocations: 211.1 kB / 0.545 GB, free: 492 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05224/0.5782, allocations: 26.98 MB / 0.5714 GB, free: 2.949 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.329e-05/0.5783, allocations: 42.56 kB / 0.5714 GB, free: 2.898 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 1.964e-06/0.5783, allocations: 0 / 0.5714 GB, free: 2.898 MB / 414.1 MB Notification: Performance of matching and sorting (n=25): time 0.003087/0.5814, allocations: 0.8683 MB / 0.5723 GB, free: 2.023 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.412e-05/0.5814, allocations: 102.8 kB / 0.5724 GB, free: 1.898 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005149/0.582, allocations: 381.6 kB / 0.5727 GB, free: 1.52 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.966e-05/0.582, allocations: 33.7 kB / 0.5728 GB, free: 1.48 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001673/0.5822, allocations: 224 kB / 0.573 GB, free: 1.258 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.843e-05/0.5823, allocations: 85.66 kB / 0.5731 GB, free: 1.176 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.565e-05/0.5823, allocations: 33.7 kB / 0.5731 GB, free: 1.137 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001368/0.5825, allocations: 346.8 kB / 0.5734 GB, free: 0.7891 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004517/0.5829, allocations: 183.8 kB / 0.5736 GB, free: 0.6094 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005064/0.5835, allocations: 267.9 kB / 0.5739 GB, free: 312 kB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009547/0.5844, allocations: 437.9 kB / 0.5743 GB, free: 15.84 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.233e-06/0.5844, allocations: 7.938 kB / 0.5743 GB, free: 15.84 MB / 430.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001185/0.5856, allocations: 0.5008 MB / 0.5748 GB, free: 15.33 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001287/0.5858, allocations: 174.7 kB / 0.5749 GB, free: 15.12 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.5858, allocations: 0 / 0.5749 GB, free: 15.12 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.877e-05/0.5858, allocations: 8 kB / 0.5749 GB, free: 15.11 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004452/0.5863, allocations: 103.9 kB / 0.575 GB, free: 15.01 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.114e-05/0.5863, allocations: 7.938 kB / 0.5751 GB, free: 15 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004283/0.5867, allocations: 75.58 kB / 0.5751 GB, free: 14.93 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.543e-05/0.5868, allocations: 16 kB / 0.5751 GB, free: 14.91 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/0.5868, allocations: 11.94 kB / 0.5752 GB, free: 14.9 MB / 430.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001061/0.5879, allocations: 447.9 kB / 0.5756 GB, free: 14.46 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.5879, allocations: 4 kB / 0.5756 GB, free: 14.46 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.511e-06/0.5879, allocations: 7.938 kB / 0.5756 GB, free: 14.45 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004149/0.5883, allocations: 105.9 kB / 0.5757 GB, free: 14.35 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.242e-05/0.5883, allocations: 11.92 kB / 0.5757 GB, free: 14.34 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003454/0.5887, allocations: 63.84 kB / 0.5758 GB, free: 14.28 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.271e-05/0.5887, allocations: 19.98 kB / 0.5758 GB, free: 14.26 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 4 (V1.state_b.phase,V1.state_a.phase,SinkP1.medium.phase,SourceP1.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 38 * 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.0002475/0.589, allocations: 241.2 kB / 0.576 GB, free: 14.01 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.335e-05/0.5891, allocations: 43.47 kB / 0.5761 GB, free: 13.97 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002654/0.5917, allocations: 1.999 MB / 0.578 GB, free: 11.98 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.069e-05/0.5918, allocations: 27.95 kB / 0.578 GB, free: 11.95 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.5918, allocations: 4.812 kB / 0.578 GB, free: 11.95 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.673e-06/0.5918, allocations: 3.984 kB / 0.578 GB, free: 11.94 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001074/0.5929, allocations: 1.051 MB / 0.5791 GB, free: 10.85 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.001e-06/0.5929, allocations: 7.938 kB / 0.5791 GB, free: 10.84 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003605/0.5933, allocations: 87.92 kB / 0.5792 GB, free: 10.76 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.498e-06/0.5933, allocations: 4 kB / 0.5792 GB, free: 10.75 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.235e-05/0.5933, allocations: 8.688 kB / 0.5792 GB, free: 10.75 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.278e-06/0.5933, allocations: 8 kB / 0.5792 GB, free: 10.74 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.5933, allocations: 0 / 0.5792 GB, free: 10.74 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001559/0.5949, allocations: 1.16 MB / 0.5803 GB, free: 9.559 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002761/0.5952, allocations: 267.3 kB / 0.5806 GB, free: 9.277 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.719e-05/0.5953, allocations: 12 kB / 0.5806 GB, free: 9.266 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003522/0.5956, allocations: 47.91 kB / 0.5806 GB, free: 9.219 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001012/0.5957, allocations: 31.94 kB / 0.5807 GB, free: 9.188 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.682e-05/0.5958, allocations: 16 kB / 0.5807 GB, free: 9.172 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.000427/0.5962, allocations: 374.8 kB / 0.581 GB, free: 8.809 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.294e-06/0.5962, allocations: 0 / 0.581 GB, free: 8.809 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003433/0.5997, allocations: 1.171 MB / 0.5822 GB, free: 7.637 MB / 430.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 ($cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse9.region3boundary,$cse10.region3boundary,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse15.phase,$cse15.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 (38): * Single equations (assignments): 29 * 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.004276/0.6039, allocations: 1.257 MB / 0.5834 GB, free: 6.477 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001849/0.6058, allocations: 0.8971 MB / 0.5843 GB, free: 5.578 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.6058, allocations: 320 / 0.5843 GB, free: 5.578 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007297/0.6066, allocations: 0.5419 MB / 0.5848 GB, free: 5.039 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001358/0.6079, allocations: 228.9 kB / 0.585 GB, free: 4.816 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002424/0.6104, allocations: 2 MB / 0.587 GB, free: 2.785 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005285/0.6109, allocations: 0.9716 MB / 0.5879 GB, free: 1.789 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0008847/0.6118, allocations: 0.6087 MB / 0.5885 GB, free: 1.184 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001277/0.612, allocations: 51.42 kB / 0.5886 GB, free: 1.137 MB / 430.1 MB Notification: Performance of SimCode: time 2.8e-07/0.612, allocations: 0 / 0.5886 GB, free: 1.137 MB / 430.1 MB Notification: Performance of Templates: time 0.05737/0.6693, allocations: 40.92 MB / 0.6285 GB, free: 8.297 MB / 478.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestCheckValve/TestCheckValve.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches