Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.conf.json 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 4.0.0+maint.om/package.mo", uses=false) 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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients,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|Opening.y|SourceP2.ports.1..m_flow|SourceP2.ports.1..p|SourceP2.ports.1..h_outflow|V2.port_b.m_flow|V2.port_b.p|V2.port_b.h_outflow|V2.minLimiter.y|SinkP2.ports.1..m_flow|SinkP2.ports.1..p|SinkP2.ports.1..h_outflow|SourceP3.ports.1..m_flow|SourceP3.ports.1..p|SourceP3.ports.1..h_outflow|V3.port_b.m_flow|V3.port_b.p|V3.port_b.h_outflow|V3.minLimiter.y|SinkP3.ports.1..m_flow|SinkP3.ports.1..p|SinkP3.ports.1..h_outflow|SourceP4.ports.1..m_flow|SourceP4.ports.1..p|SourceP4.ports.1..h_outflow|V4.port_b.m_flow|V4.port_b.p|V4.port_b.h_outflow|V4.minLimiter.y|SinkP4.ports.1..m_flow|SinkP4.ports.1..p|SinkP4.ports.1..h_outflow",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients,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|Opening.y|SourceP2.ports.1..m_flow|SourceP2.ports.1..p|SourceP2.ports.1..h_outflow|V2.port_b.m_flow|V2.port_b.p|V2.port_b.h_outflow|V2.minLimiter.y|SinkP2.ports.1..m_flow|SinkP2.ports.1..p|SinkP2.ports.1..h_outflow|SourceP3.ports.1..m_flow|SourceP3.ports.1..p|SourceP3.ports.1..h_outflow|V3.port_b.m_flow|V3.port_b.p|V3.port_b.h_outflow|V3.minLimiter.y|SinkP3.ports.1..m_flow|SinkP3.ports.1..p|SinkP3.ports.1..h_outflow|SourceP4.ports.1..m_flow|SourceP4.ports.1..p|SourceP4.ports.1..h_outflow|V4.port_b.m_flow|V4.port_b.p|V4.port_b.h_outflow|V4.minLimiter.y|SinkP4.ports.1..m_flow|SinkP4.ports.1..p|SinkP4.ports.1..h_outflow",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001112/0.001113, allocations: 170.4 kB / 8.74 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.437/1.437, allocations: 221.5 MB / 230.7 MB, free: 7.512 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009763/0.0009762, allocations: 84.17 kB / 281.6 MB, free: 5.258 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2208/0.2208, allocations: 44.15 MB / 376.5 MB, free: 3.027 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.997e-05/2e-05, allocations: 4.219 kB / 444.6 MB, free: 15.23 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1393/0.1394, allocations: 61.91 MB / 0.4947 GB, free: 1.254 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.261/7.4, allocations: 2.777 GB / 3.271 GB, free: 154 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003102/7.401, allocations: 85.75 kB / 3.271 GB, free: 154 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 2.418/9.819, allocations: 0.6381 GB / 3.909 GB, free: 50.03 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.733e-06/9.819, allocations: 3.281 kB / 3.909 GB, free: 50.03 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001607/9.819, allocations: 42.52 kB / 3.91 GB, free: 50.03 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 301 * Number of variables: 301 Notification: Performance of Generate backend data structure: time 0.01079/9.83, allocations: 2.434 MB / 3.912 GB, free: 49.06 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.496e-05/9.83, allocations: 16.89 kB / 3.912 GB, free: 49.05 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008439/9.838, allocations: 0.9539 MB / 3.913 GB, free: 48.97 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003175/9.842, allocations: 0.9971 MB / 3.914 GB, free: 48.65 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002027/9.842, allocations: 56.09 kB / 3.914 GB, free: 48.65 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003994/9.842, allocations: 70.25 kB / 3.914 GB, free: 48.65 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002635/9.845, allocations: 1.208 MB / 3.915 GB, free: 48.64 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002922/9.848, allocations: 1.426 MB / 3.917 GB, free: 48.21 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.295e-05/9.848, allocations: 10.44 kB / 3.917 GB, free: 48.21 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002584/9.848, allocations: 6.906 kB / 3.917 GB, free: 48.21 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.643e-05/9.848, allocations: 28.69 kB / 3.917 GB, free: 48.21 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1331/9.981, allocations: 70.89 MB / 3.986 GB, free: 19.9 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001176/9.983, allocations: 0.7747 MB / 3.987 GB, free: 19.87 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004923/9.983, allocations: 375 kB / 3.987 GB, free: 19.86 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03035/10.01, allocations: 16.41 MB / 4.003 GB, free: 25.25 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.939e-05/10.01, allocations: 42.53 kB / 4.003 GB, free: 25.21 MB / 0.573 GB Notification: Performance of pre-optimization done (n=72): time 2.695e-06/10.01, allocations: 0 / 4.003 GB, free: 25.21 MB / 0.573 GB Notification: Performance of matching and sorting (n=72): time 0.006222/10.02, allocations: 1.908 MB / 4.005 GB, free: 25.09 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001201/10.02, allocations: 270.2 kB / 4.005 GB, free: 24.78 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008545/10.02, allocations: 0.7263 MB / 4.006 GB, free: 24.61 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 7.643e-05/10.02, allocations: 25.7 kB / 4.006 GB, free: 24.58 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003427/10.02, allocations: 0.6683 MB / 4.006 GB, free: 24.23 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001673/10.02, allocations: 241.1 kB / 4.007 GB, free: 24.08 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.046e-05/10.02, allocations: 0 / 4.007 GB, free: 24.08 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001291/10.02, allocations: 348.4 kB / 4.007 GB, free: 23.78 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004464/10.02, allocations: 328.7 kB / 4.007 GB, free: 23.78 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006172/10.02, allocations: 0.7525 MB / 4.008 GB, free: 23.26 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002911/10.03, allocations: 0.7445 MB / 4.009 GB, free: 23.24 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.975e-06/10.03, allocations: 3.906 kB / 4.009 GB, free: 23.24 MB / 0.573 GB Notification: Performance of matching and sorting (n=143) (initialization): time 0.004075/10.03, allocations: 1.46 MB / 4.01 GB, free: 23.13 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001703/10.03, allocations: 4.893 MB / 4.015 GB, free: 18 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.663e-05/10.03, allocations: 12.62 kB / 4.015 GB, free: 18 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.879e-05/10.03, allocations: 18.56 kB / 4.015 GB, free: 18 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001195/10.03, allocations: 357.8 kB / 4.015 GB, free: 18 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.533e-05/10.03, allocations: 27.67 kB / 4.015 GB, free: 18 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001723/10.03, allocations: 233.2 kB / 4.016 GB, free: 17.93 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001203/10.03, allocations: 72.73 kB / 4.016 GB, free: 17.92 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.226e-05/10.03, allocations: 7.875 kB / 4.016 GB, free: 17.92 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003254/10.04, allocations: 1.171 MB / 4.017 GB, free: 17.9 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.503e-05/10.04, allocations: 10.41 kB / 4.017 GB, free: 17.9 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.119e-05/10.04, allocations: 21.16 kB / 4.017 GB, free: 17.9 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001087/10.04, allocations: 352.5 kB / 4.017 GB, free: 17.89 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.694e-05/10.04, allocations: 27.62 kB / 4.017 GB, free: 17.89 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00123/10.04, allocations: 177.9 kB / 4.017 GB, free: 17.84 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.419e-05/10.04, allocations: 76.23 kB / 4.018 GB, free: 17.84 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 16 (SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.phase,SourceP4.medium.phase,SinkP4.medium.phase,V4.state_b.phase,V4.state_a.phase,V3.state_b.phase,V3.state_a.phase,V2.state_b.phase,V2.state_a.phase,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (143): * Single equations (assignments): 143 * 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 0.0003152/10.04, allocations: 153 kB / 4.018 GB, free: 17.73 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000204/10.04, allocations: 113.4 kB / 4.018 GB, free: 17.67 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004709/10.05, allocations: 4.388 MB / 4.022 GB, free: 16.92 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.613e-05/10.05, allocations: 33.34 kB / 4.022 GB, free: 16.92 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.161e-06/10.05, allocations: 0 / 4.022 GB, free: 16.92 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.337e-06/10.05, allocations: 3 kB / 4.022 GB, free: 16.92 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002717/10.05, allocations: 2.36 MB / 4.024 GB, free: 16.54 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.491e-06/10.05, allocations: 0 / 4.024 GB, free: 16.54 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008782/10.05, allocations: 260 kB / 4.025 GB, free: 16.53 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.987e-06/10.05, allocations: 3.594 kB / 4.025 GB, free: 16.53 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.415e-05/10.05, allocations: 7.625 kB / 4.025 GB, free: 16.53 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.701e-06/10.05, allocations: 11.42 kB / 4.025 GB, free: 16.52 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/10.05, allocations: 4 kB / 4.025 GB, free: 16.52 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002602/10.05, allocations: 1.66 MB / 4.026 GB, free: 16.16 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001072/10.05, allocations: 0.9731 MB / 4.027 GB, free: 15.82 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002733/10.05, allocations: 0 / 4.027 GB, free: 15.82 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009596/10.05, allocations: 97.39 kB / 4.027 GB, free: 15.81 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001618/10.05, allocations: 120.5 kB / 4.027 GB, free: 15.8 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.721e-05/10.05, allocations: 30.28 kB / 4.027 GB, free: 15.8 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.00193/10.06, allocations: 1.776 MB / 4.029 GB, free: 15.66 MB / 0.573 GB Notification: Performance of sort global known variables: time 2.61e-07/10.06, allocations: 0 / 4.029 GB, free: 15.66 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.007481/10.06, allocations: 1.874 MB / 4.031 GB, free: 15.4 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 24 ($cse1.phase,$cse1.region,$cse10.phase,$cse10.region,$cse13.phase,$cse13.region,$cse22.phase,$cse22.region,$cse25.phase,$cse25.region,$cse34.phase,$cse34.region,$cse37.phase,$cse37.region,$cse46.phase,$cse46.region,SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.phase,SourceP4.medium.phase,SinkP4.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (88): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.007818/10.07, allocations: 2.129 MB / 4.033 GB, free: 14.96 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.002912/10.07, allocations: 1.582 MB / 4.035 GB, free: 14.93 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/10.07, allocations: 3.906 kB / 4.035 GB, free: 14.93 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.000713/10.08, allocations: 0.6113 MB / 4.035 GB, free: 14.93 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003139/10.08, allocations: 0.5602 MB / 4.036 GB, free: 14.89 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004065/10.08, allocations: 2.926 MB / 4.039 GB, free: 14.04 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009337/10.08, allocations: 1.677 MB / 4.04 GB, free: 13.27 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.00294/10.09, allocations: 2.221 MB / 4.042 GB, free: 13.21 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002631/10.09, allocations: 107.6 kB / 4.043 GB, free: 13.2 MB / 0.573 GB Notification: Performance of SimCode: time 1.012e-06/10.09, allocations: 2.625 kB / 4.043 GB, free: 13.2 MB / 0.573 GB Notification: Performance of Templates: time 0.07133/10.16, allocations: 48.71 MB / 4.09 GB, free: 9.863 MB / 0.5886 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveCoefficients/TestValveCoefficients.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches