Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.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.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_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_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001364/0.001364, allocations: 115 kB / 17.09 MB, free: 6.008 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.001269/0.001269, allocations: 190.2 kB / 18.02 MB, free: 5.094 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.444/1.444, allocations: 205.1 MB / 223.9 MB, free: 12.25 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.2178/0.2178, allocations: 43.53 MB / 314.8 MB, free: 464 kB / 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.001533/0.001533, allocations: 67.91 kB / 442.5 MB, free: 5.672 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.113, allocations: 57.79 MB / 0.4885 GB, free: 11.81 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients): time 0.3079/0.4209, allocations: 82.2 MB / 0.5688 GB, free: 12.92 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.03536/0.4563, allocations: 28.4 MB / 0.5966 GB, free: 8.684 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001966/0.4583, allocations: 46.19 kB / 0.5966 GB, free: 8.66 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002734/0.4611, allocations: 0.9817 MB / 0.5976 GB, free: 7.816 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0149/0.4761, allocations: 5.107 MB / 0.6025 GB, free: 4.082 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01528/0.4914, allocations: 5.69 MB / 0.6081 GB, free: 15.83 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.004894/0.4963, allocations: 3.69 MB / 0.6117 GB, free: 12.45 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001744/0.498, allocations: 0.9928 MB / 0.6127 GB, free: 11.43 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002835/0.5009, allocations: 1.425 MB / 0.6141 GB, free: 10 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001862/0.5028, allocations: 1.054 MB / 0.6151 GB, free: 8.945 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004375/0.5032, allocations: 136 kB / 0.6152 GB, free: 8.812 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01874/0.522, allocations: 8.562 MB / 0.6236 GB, free: 248 kB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009011/0.5229, allocations: 398.7 kB / 0.624 GB, free: 15.85 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001861/0.5248, allocations: 0.8672 MB / 0.6248 GB, free: 14.98 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01628/0.5411, allocations: 6.883 MB / 0.6315 GB, free: 8.082 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.5411, allocations: 0 / 0.6315 GB, free: 8.082 MB / 478.1 MB Notification: Performance of FrontEnd: time 3.246e-06/0.5411, allocations: 0 / 0.6315 GB, free: 8.082 MB / 478.1 MB Notification: Performance of Transformations before backend: time 6.643e-05/0.5412, allocations: 3.938 kB / 0.6315 GB, free: 8.078 MB / 478.1 MB 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.007183/0.5484, allocations: 2.72 MB / 0.6342 GB, free: 5.301 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.45e-05/0.5484, allocations: 11.89 kB / 0.6342 GB, free: 5.289 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007521/0.556, allocations: 0.8526 MB / 0.635 GB, free: 4.438 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001911/0.5579, allocations: 0.9829 MB / 0.636 GB, free: 3.414 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001359/0.5581, allocations: 106.3 kB / 0.6361 GB, free: 3.309 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002201/0.5583, allocations: 116 kB / 0.6362 GB, free: 3.195 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006621/0.5649, allocations: 2.22 MB / 0.6384 GB, free: 0.8164 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.772e-05/0.565, allocations: 3.938 kB / 0.6384 GB, free: 0.8125 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001676/0.5652, allocations: 64 kB / 0.6384 GB, free: 0.75 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.623e-05/0.5652, allocations: 28 kB / 0.6385 GB, free: 0.7227 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006602/0.5718, allocations: 2.072 MB / 0.6405 GB, free: 14.64 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01401/0.5858, allocations: 10.29 MB / 0.6505 GB, free: 3.52 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005423/0.5913, allocations: 1.572 MB / 0.6521 GB, free: 1.934 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001268/0.5926, allocations: 0.5063 MB / 0.6526 GB, free: 1.426 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05051/0.6431, allocations: 24.15 MB / 0.6762 GB, free: 6.402 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.716e-05/0.6432, allocations: 51.2 kB / 0.6762 GB, free: 6.344 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=80): time 3.838e-06/0.6432, allocations: 0 / 0.6762 GB, free: 6.344 MB / 0.5137 GB Notification: Performance of matching and sorting (n=80): time 0.00972/0.653, allocations: 2.584 MB / 0.6787 GB, free: 3.75 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001227/0.6531, allocations: 269.7 kB / 0.679 GB, free: 3.426 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001816/0.6549, allocations: 1.173 MB / 0.6801 GB, free: 2.246 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0001369/0.6551, allocations: 41.7 kB / 0.6802 GB, free: 2.199 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005244/0.6556, allocations: 0.6123 MB / 0.6808 GB, free: 1.578 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002937/0.6559, allocations: 268.2 kB / 0.681 GB, free: 1.312 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004131/0.6564, allocations: 266.6 kB / 0.6813 GB, free: 1.047 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.000151/0.6565, allocations: 349.9 kB / 0.6816 GB, free: 0.6992 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001321/0.6578, allocations: 477.8 kB / 0.6821 GB, free: 236 kB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001683/0.6595, allocations: 0.9002 MB / 0.6829 GB, free: 15.14 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002736/0.6623, allocations: 1.295 MB / 0.6842 GB, free: 13.67 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-05/0.6623, allocations: 4 kB / 0.6842 GB, free: 13.66 MB / 0.5294 GB Notification: Performance of matching and sorting (n=143) (initialization): time 0.003795/0.6661, allocations: 1.471 MB / 0.6857 GB, free: 12.18 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 3.341e-05/0.6662, allocations: 8 kB / 0.6857 GB, free: 12.18 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.269e-05/0.6662, allocations: 12 kB / 0.6857 GB, free: 12.16 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.725e-05/0.6662, allocations: 20 kB / 0.6857 GB, free: 12.14 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001277/0.6675, allocations: 343.8 kB / 0.686 GB, free: 11.81 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.454e-05/0.6676, allocations: 27.92 kB / 0.686 GB, free: 11.78 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001398/0.669, allocations: 218.1 kB / 0.6863 GB, free: 11.57 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001252/0.6691, allocations: 71.97 kB / 0.6863 GB, free: 11.5 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001558/0.6707, allocations: 0.6585 MB / 0.687 GB, free: 10.84 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001626/0.6723, allocations: 0.9027 MB / 0.6878 GB, free: 9.727 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002669/0.675, allocations: 1.271 MB / 0.6891 GB, free: 8.273 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.134e-05/0.675, allocations: 4 kB / 0.6891 GB, free: 8.27 MB / 0.5294 GB Notification: Performance of matching and sorting (n=143) (initialization_lambda0): time 0.003659/0.6787, allocations: 1.449 MB / 0.6905 GB, free: 6.812 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.088e-05/0.6787, allocations: 20.19 kB / 0.6905 GB, free: 6.793 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.733e-05/0.6788, allocations: 12 kB / 0.6905 GB, free: 6.781 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.208e-05/0.6788, allocations: 20 kB / 0.6906 GB, free: 6.762 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001191/0.68, allocations: 332.9 kB / 0.6909 GB, free: 6.438 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.386e-05/0.68, allocations: 27.92 kB / 0.6909 GB, free: 6.41 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00128/0.6813, allocations: 159 kB / 0.6911 GB, free: 6.254 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001117/0.6814, allocations: 71.97 kB / 0.6911 GB, free: 6.184 MB / 0.5294 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 (SinkP1.medium.phase,SourceP1.medium.phase,SinkP2.medium.phase,SourceP2.medium.phase,SinkP3.medium.phase,SourceP3.medium.phase,SinkP4.medium.phase,SourceP4.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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003817/0.6818, allocations: 267.8 kB / 0.6914 GB, free: 5.914 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003662/0.6822, allocations: 150.2 kB / 0.6915 GB, free: 5.766 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008075/0.6903, allocations: 6.463 MB / 0.6978 GB, free: 15.26 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.819e-05/0.6903, allocations: 7.969 kB / 0.6978 GB, free: 15.25 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.304e-06/0.6903, allocations: 0 / 0.6978 GB, free: 15.25 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009311/0.6913, allocations: 453 kB / 0.6983 GB, free: 14.79 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005436/0.6918, allocations: 157.9 kB / 0.6984 GB, free: 14.63 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001357/0.6932, allocations: 127.8 kB / 0.6985 GB, free: 14.51 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002348/0.6934, allocations: 96.86 kB / 0.6986 GB, free: 14.41 MB / 0.545 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004619/0.6981, allocations: 2.854 MB / 0.7014 GB, free: 11.55 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004592/0.7027, allocations: 2.986 MB / 0.7043 GB, free: 8.535 MB / 0.545 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001856/0.7046, allocations: 1.369 MB / 0.7057 GB, free: 7.168 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.002754/0.7073, allocations: 1.629 MB / 0.7073 GB, free: 5.531 MB / 0.545 GB Notification: Performance of Backend: time 4.61e-07/0.7073, allocations: 0 / 0.7073 GB, free: 5.531 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01319/0.7205, allocations: 3.59 MB / 0.7108 GB, free: 1.949 MB / 0.545 GB Notification: Performance of SimCode: time 0.00831/0.7289, allocations: 4.812 MB / 0.7155 GB, free: 13.07 MB / 0.5606 GB Notification: Performance of Templates: time 0.3363/1.065, allocations: 79.16 MB / 0.7928 GB, free: 206.8 MB / 0.5919 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches