Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.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.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_3.2.3_cpp_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_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002152/0.002152, allocations: 177.8 kB / 8.358 MB, free: 0.7188 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.003/2.003, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00107/0.00107, allocations: 83.17 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2915/0.2915, allocations: 43.49 MB / 353.6 MB, free: 2.262 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.044e-05/2.041e-05, allocations: 0 / 418.2 MB, free: 41.01 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4092/0.4093, allocations: 58.85 MB / 477.1 MB, free: 5.266 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.129/8.539, allocations: 2.771 GB / 3.237 GB, free: 15.4 MB / 0.4952 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002813/8.539, allocations: 83.27 kB / 3.237 GB, free: 15.36 MB / 0.4952 GB Notification: Performance of FrontEnd - DAE generated: time 3.547/12.09, allocations: 0.6309 GB / 3.868 GB, free: 46.38 MB / 0.5265 GB Notification: Performance of FrontEnd: time 2.304e-06/12.09, allocations: 0 / 3.868 GB, free: 46.38 MB / 0.5265 GB Notification: Performance of Transformations before backend: time 0.0001813/12.09, allocations: 45.16 kB / 3.868 GB, free: 46.38 MB / 0.5265 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.01225/12.1, allocations: 2.423 MB / 3.871 GB, free: 45.49 MB / 0.5265 GB Notification: Performance of prepare preOptimizeDAE: time 7.069e-05/12.1, allocations: 13.95 kB / 3.871 GB, free: 45.49 MB / 0.5265 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0119/12.11, allocations: 0.9533 MB / 3.872 GB, free: 45.41 MB / 0.5265 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003866/12.11, allocations: 1.002 MB / 3.873 GB, free: 45.09 MB / 0.5265 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002215/12.11, allocations: 54 kB / 3.873 GB, free: 45.09 MB / 0.5265 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004704/12.12, allocations: 66.53 kB / 3.873 GB, free: 45.09 MB / 0.5265 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004173/12.12, allocations: 1.211 MB / 3.874 GB, free: 45.08 MB / 0.5265 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005026/12.12, allocations: 1.43 MB / 3.875 GB, free: 44.65 MB / 0.5265 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.6e-05/12.12, allocations: 5.969 kB / 3.875 GB, free: 44.65 MB / 0.5265 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002752/12.13, allocations: 10.11 kB / 3.875 GB, free: 44.64 MB / 0.5265 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.325e-05/12.13, allocations: 31.12 kB / 3.875 GB, free: 44.64 MB / 0.5265 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2214/12.35, allocations: 70.88 MB / 3.945 GB, free: 32.51 MB / 0.5577 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001846/12.35, allocations: 0.7645 MB / 3.945 GB, free: 32.48 MB / 0.5577 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000808/12.35, allocations: 374.6 kB / 3.946 GB, free: 32.47 MB / 0.5577 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05236/12.4, allocations: 16.42 MB / 3.962 GB, free: 21.86 MB / 0.5577 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.621e-05/12.4, allocations: 46.09 kB / 3.962 GB, free: 21.82 MB / 0.5577 GB Notification: Performance of pre-optimization done (n=72): time 4.809e-06/12.4, allocations: 0 / 3.962 GB, free: 21.82 MB / 0.5577 GB Notification: Performance of matching and sorting (n=72): time 0.01049/12.41, allocations: 1.903 MB / 3.964 GB, free: 21.7 MB / 0.5577 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001739/12.41, allocations: 271.5 kB / 3.964 GB, free: 21.39 MB / 0.5577 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001531/12.41, allocations: 0.7178 MB / 3.965 GB, free: 21.23 MB / 0.5577 GB Notification: Performance of collectPreVariables (initialization): time 0.0002887/12.41, allocations: 29.33 kB / 3.965 GB, free: 21.2 MB / 0.5577 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005514/12.41, allocations: 0.6823 MB / 3.965 GB, free: 20.78 MB / 0.5577 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003841/12.42, allocations: 234.9 kB / 3.966 GB, free: 20.63 MB / 0.5577 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000112/12.42, allocations: 2.781 kB / 3.966 GB, free: 20.63 MB / 0.5577 GB Notification: Performance of setup shared object (initialization): time 0.0001805/12.42, allocations: 351.7 kB / 3.966 GB, free: 20.32 MB / 0.5577 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008893/12.42, allocations: 326.2 kB / 3.966 GB, free: 20.31 MB / 0.5577 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001156/12.42, allocations: 0.7464 MB / 3.967 GB, free: 19.79 MB / 0.5577 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005028/12.42, allocations: 0.7463 MB / 3.968 GB, free: 19.77 MB / 0.5577 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-05/12.42, allocations: 3.938 kB / 3.968 GB, free: 19.77 MB / 0.5577 GB Notification: Performance of matching and sorting (n=143) (initialization): time 0.006897/12.43, allocations: 1.415 MB / 3.969 GB, free: 19.68 MB / 0.5577 GB Notification: Performance of prepare postOptimizeDAE: time 0.002675/12.43, allocations: 4.872 MB / 3.974 GB, free: 30.57 MB / 0.5733 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.173e-05/12.43, allocations: 21.77 kB / 3.974 GB, free: 30.56 MB / 0.5733 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.338e-05/12.43, allocations: 22.34 kB / 3.974 GB, free: 30.56 MB / 0.5733 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002673/12.44, allocations: 361.4 kB / 3.974 GB, free: 30.55 MB / 0.5733 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.581e-05/12.44, allocations: 21.45 kB / 3.974 GB, free: 30.55 MB / 0.5733 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002932/12.44, allocations: 234.2 kB / 3.974 GB, free: 30.48 MB / 0.5733 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003237/12.44, allocations: 66.58 kB / 3.974 GB, free: 30.48 MB / 0.5733 GB Notification: Performance of prepare postOptimizeDAE: time 1.683e-05/12.44, allocations: 7.875 kB / 3.974 GB, free: 30.48 MB / 0.5733 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005859/12.44, allocations: 1.179 MB / 3.976 GB, free: 30.45 MB / 0.5733 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.95e-05/12.44, allocations: 11.88 kB / 3.976 GB, free: 30.45 MB / 0.5733 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.525e-05/12.44, allocations: 21.72 kB / 3.976 GB, free: 30.45 MB / 0.5733 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002582/12.45, allocations: 358 kB / 3.976 GB, free: 30.45 MB / 0.5733 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.284e-05/12.45, allocations: 27.23 kB / 3.976 GB, free: 30.45 MB / 0.5733 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002215/12.45, allocations: 184.1 kB / 3.976 GB, free: 30.39 MB / 0.5733 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002653/12.45, allocations: 72.34 kB / 3.976 GB, free: 30.39 MB / 0.5733 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.0005/12.45, allocations: 154.2 kB / 3.976 GB, free: 30.27 MB / 0.5733 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004451/12.45, allocations: 112.3 kB / 3.977 GB, free: 30.21 MB / 0.5733 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008311/12.46, allocations: 4.381 MB / 3.981 GB, free: 29.46 MB / 0.5733 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.744e-05/12.46, allocations: 34.91 kB / 3.981 GB, free: 29.46 MB / 0.5733 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.939e-06/12.46, allocations: 0 / 3.981 GB, free: 29.46 MB / 0.5733 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.064e-05/12.46, allocations: 3.938 kB / 3.981 GB, free: 29.46 MB / 0.5733 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004232/12.46, allocations: 2.36 MB / 3.983 GB, free: 29.08 MB / 0.5733 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.349e-05/12.46, allocations: 0 / 3.983 GB, free: 29.08 MB / 0.5733 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001859/12.47, allocations: 266.6 kB / 3.983 GB, free: 29.07 MB / 0.5733 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.671e-05/12.47, allocations: 6.594 kB / 3.983 GB, free: 29.07 MB / 0.5733 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.84e-05/12.47, allocations: 7.875 kB / 3.983 GB, free: 29.07 MB / 0.5733 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.454e-06/12.47, allocations: 7.531 kB / 3.983 GB, free: 29.07 MB / 0.5733 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/12.47, allocations: 0 / 3.983 GB, free: 29.07 MB / 0.5733 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004785/12.47, allocations: 1.664 MB / 3.985 GB, free: 28.7 MB / 0.5733 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002235/12.47, allocations: 0.9709 MB / 3.986 GB, free: 28.36 MB / 0.5733 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007609/12.47, allocations: 3.422 kB / 3.986 GB, free: 28.36 MB / 0.5733 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002139/12.48, allocations: 105.4 kB / 3.986 GB, free: 28.35 MB / 0.5733 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002978/12.48, allocations: 116.9 kB / 3.986 GB, free: 28.35 MB / 0.5733 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.881e-05/12.48, allocations: 28.36 kB / 3.986 GB, free: 28.35 MB / 0.5733 GB Notification: Performance of sorting global known variables: time 0.003354/12.48, allocations: 1.78 MB / 3.988 GB, free: 28.2 MB / 0.5733 GB Notification: Performance of sort global known variables: time 2.425e-06/12.48, allocations: 0 / 3.988 GB, free: 28.2 MB / 0.5733 GB Notification: Performance of remove unused functions: time 0.009751/12.49, allocations: 1.863 MB / 3.99 GB, free: 27.95 MB / 0.5733 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.01125/12.5, allocations: 2.12 MB / 3.992 GB, free: 27.52 MB / 0.5733 GB Notification: Performance of simCode: created initialization part: time 0.00378/12.5, allocations: 1.558 MB / 3.993 GB, free: 27.49 MB / 0.5733 GB Notification: Performance of simCode: created event and clocks part: time 8.676e-06/12.5, allocations: 0 / 3.993 GB, free: 27.49 MB / 0.5733 GB Notification: Performance of simCode: created simulation system equations: time 0.0011/12.51, allocations: 0.6126 MB / 3.994 GB, free: 27.49 MB / 0.5733 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005466/12.51, allocations: 0.5561 MB / 3.995 GB, free: 27.44 MB / 0.5733 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007009/12.52, allocations: 2.97 MB / 3.997 GB, free: 26.57 MB / 0.5733 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001349/12.52, allocations: 1.672 MB / 3.999 GB, free: 25.8 MB / 0.5733 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000778/12.52, allocations: 127.6 kB / 3.999 GB, free: 25.8 MB / 0.5733 GB Notification: Performance of SimCode: time 1.343e-06/12.52, allocations: 2.344 kB / 3.999 GB, free: 25.8 MB / 0.5733 GB Notification: Performance of Templates: time 0.1003/12.62, allocations: 47.36 MB / 4.045 GB, free: 18.75 MB / 0.5733 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Valves/TestValveCoefficients/TestValveCoefficients.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches