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/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.0009133/0.0009135, allocations: 183.9 kB / 13.19 MB, free: 2.129 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.182/1.182, allocations: 205.2 MB / 218.9 MB, free: 9.207 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007507/0.0007507, allocations: 82.56 kB / 267 MB, free: 9.277 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2954/0.2954, allocations: 43.46 MB / 358.6 MB, free: 52.31 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.028e-05/3.029e-05, allocations: 3.984 kB / 425.3 MB, free: 8.891 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1044, allocations: 58.85 MB / 484.2 MB, free: 13.94 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.027/5.132, allocations: 2.754 GB / 3.227 GB, free: 140.8 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002136/5.132, allocations: 84.27 kB / 3.227 GB, free: 140.8 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 0.6254/5.757, allocations: 216.7 MB / 3.438 GB, free: 74.75 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.673e-06/5.757, allocations: 3.938 kB / 3.438 GB, free: 74.75 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 1.938e-05/5.757, allocations: 10.75 kB / 3.438 GB, free: 74.75 MB / 0.4948 GB 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.004036/5.761, allocations: 1.179 MB / 3.44 GB, free: 74.06 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.617e-05/5.761, allocations: 9.188 kB / 3.44 GB, free: 74.06 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001702/5.763, allocations: 217.9 kB / 3.44 GB, free: 74.04 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000569/5.764, allocations: 375.6 kB / 3.44 GB, free: 73.75 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.477e-05/5.764, allocations: 28.19 kB / 3.44 GB, free: 73.73 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.934e-05/5.764, allocations: 27.69 kB / 3.44 GB, free: 73.73 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001197/5.765, allocations: 0.5837 MB / 3.441 GB, free: 73.45 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.324e-05/5.765, allocations: 0.5156 kB / 3.441 GB, free: 73.45 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.864e-05/5.765, allocations: 15.66 kB / 3.441 GB, free: 73.44 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.034e-05/5.765, allocations: 7.312 kB / 3.441 GB, free: 73.44 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009793/5.766, allocations: 0.4933 MB / 3.441 GB, free: 73.3 MB / 0.4948 GB Warning: The model contains alias variables with conflicting start and/or 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.002148/5.768, allocations: 2.605 MB / 3.444 GB, free: 71.11 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009778/5.769, allocations: 425 kB / 3.444 GB, free: 70.98 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001738/5.769, allocations: 129.2 kB / 3.444 GB, free: 70.93 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03579/5.805, allocations: 24.17 MB / 3.468 GB, free: 55.79 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.344e-05/5.805, allocations: 37.72 kB / 3.468 GB, free: 55.75 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=25): time 2.335e-06/5.805, allocations: 0 / 3.468 GB, free: 55.75 MB / 0.4948 GB Notification: Performance of matching and sorting (n=25): time 0.00183/5.807, allocations: 0.6297 MB / 3.469 GB, free: 55.56 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.313e-05/5.807, allocations: 110.2 kB / 3.469 GB, free: 55.44 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002675/5.808, allocations: 272.8 kB / 3.469 GB, free: 55.28 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 3.184e-05/5.808, allocations: 29.7 kB / 3.469 GB, free: 55.25 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 8.773e-05/5.808, allocations: 210.7 kB / 3.469 GB, free: 55.07 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 5.578e-05/5.808, allocations: 80.25 kB / 3.469 GB, free: 55.02 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.504e-05/5.808, allocations: 8 kB / 3.469 GB, free: 55.01 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 5.58e-05/5.808, allocations: 342.4 kB / 3.47 GB, free: 54.68 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001338/5.808, allocations: 87.3 kB / 3.47 GB, free: 54.65 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00016/5.808, allocations: 183.8 kB / 3.47 GB, free: 54.5 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001459/5.808, allocations: 109.8 kB / 3.47 GB, free: 54.46 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/5.808, allocations: 3.875 kB / 3.47 GB, free: 54.46 MB / 0.4948 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004361/5.809, allocations: 329.1 kB / 3.47 GB, free: 54.32 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.587e-05/5.809, allocations: 13.89 kB / 3.47 GB, free: 54.31 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.772e-06/5.809, allocations: 1.875 kB / 3.47 GB, free: 54.31 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.584e-05/5.809, allocations: 11.88 kB / 3.47 GB, free: 54.3 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003453/5.809, allocations: 99.14 kB / 3.47 GB, free: 54.3 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.257e-06/5.809, allocations: 3.781 kB / 3.47 GB, free: 54.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003658/5.81, allocations: 80.31 kB / 3.471 GB, free: 54.27 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.699e-05/5.81, allocations: 10.69 kB / 3.471 GB, free: 54.27 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 4 (SourceP1.medium.phase,SinkP1.medium.phase,V1.state_b.phase,V1.state_a.phase) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.403e-05/5.81, allocations: 127.1 kB / 3.471 GB, free: 54.14 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.324e-05/5.81, allocations: 38.91 kB / 3.471 GB, free: 54.12 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001394/5.811, allocations: 1.851 MB / 3.473 GB, free: 53.24 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.278e-05/5.811, allocations: 34.86 kB / 3.473 GB, free: 53.23 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.117e-06/5.811, allocations: 0 / 3.473 GB, free: 53.23 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/5.811, allocations: 2.906 kB / 3.473 GB, free: 53.23 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007333/5.812, allocations: 1.003 MB / 3.474 GB, free: 52.66 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/5.812, allocations: 0 / 3.474 GB, free: 52.66 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003151/5.812, allocations: 97.86 kB / 3.474 GB, free: 52.65 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.669e-06/5.812, allocations: 0 / 3.474 GB, free: 52.65 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.926e-05/5.812, allocations: 7.719 kB / 3.474 GB, free: 52.64 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.816e-06/5.812, allocations: 3.953 kB / 3.474 GB, free: 52.64 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/5.812, allocations: 0 / 3.474 GB, free: 52.64 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007512/5.813, allocations: 0.9748 MB / 3.475 GB, free: 52.13 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001461/5.813, allocations: 222.5 kB / 3.475 GB, free: 51.95 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.401e-05/5.813, allocations: 11.69 kB / 3.475 GB, free: 51.94 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003363/5.814, allocations: 54.39 kB / 3.475 GB, free: 51.93 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.74e-05/5.814, allocations: 30.89 kB / 3.475 GB, free: 51.92 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.13e-05/5.814, allocations: 19.62 kB / 3.475 GB, free: 51.91 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0002488/5.814, allocations: 318.7 kB / 3.475 GB, free: 51.76 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2.61e-07/5.814, allocations: 3.938 kB / 3.475 GB, free: 51.76 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.003214/5.817, allocations: 1.009 MB / 3.476 GB, free: 51.55 MB / 0.4948 GB 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,$cse3.region3boundary,$cse4.region3boundary,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse11.phase,$cse11.region,SourceP1.medium.phase,SinkP1.medium.phase) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00517/5.822, allocations: 1.369 MB / 3.478 GB, free: 51.25 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0005172/5.823, allocations: 0.4965 MB / 3.478 GB, free: 51.05 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/5.823, allocations: 3.938 kB / 3.478 GB, free: 51.05 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0003289/5.823, allocations: 480.3 kB / 3.478 GB, free: 50.81 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009331/5.824, allocations: 192 kB / 3.479 GB, free: 50.77 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001145/5.825, allocations: 1.136 MB / 3.48 GB, free: 50.23 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002709/5.826, allocations: 0.9778 MB / 3.481 GB, free: 49.52 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.0003347/5.826, allocations: 245.9 kB / 3.481 GB, free: 49.51 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.751e-05/5.826, allocations: 41.06 kB / 3.481 GB, free: 49.5 MB / 0.4948 GB Notification: Performance of SimCode: time 2.41e-07/5.826, allocations: 0 / 3.481 GB, free: 49.5 MB / 0.4948 GB Notification: Performance of Templates: time 0.03277/5.859, allocations: 32.62 MB / 3.513 GB, free: 37.63 MB / 0.4948 GB 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/jenkins/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