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.001158/0.001158, allocations: 109.1 kB / 17.09 MB, free: 6.004 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.001232/0.001232, allocations: 198.2 kB / 18.02 MB, free: 5.078 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.268/1.268, 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.1892/0.1892, allocations: 43.53 MB / 314.8 MB, free: 472 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.001447/0.001447, allocations: 75.84 kB / 442.5 MB, free: 5.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09401/0.09547, allocations: 57.79 MB / 0.4886 GB, free: 11.8 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients): time 0.2728/0.3683, allocations: 82.19 MB / 0.5688 GB, free: 12.93 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0328/0.4011, allocations: 28.4 MB / 0.5966 GB, free: 8.68 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002391/0.4036, allocations: 47.44 kB / 0.5966 GB, free: 8.656 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002633/0.4063, allocations: 0.9823 MB / 0.5976 GB, free: 7.812 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01468/0.4209, allocations: 5.076 MB / 0.6025 GB, free: 4.094 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0143/0.4353, allocations: 5.671 MB / 0.6081 GB, free: 15.86 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.004803/0.4401, allocations: 3.682 MB / 0.6116 GB, free: 12.5 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001366/0.4415, allocations: 0.9888 MB / 0.6126 GB, free: 11.49 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002289/0.4438, allocations: 1.432 MB / 0.614 GB, free: 10.05 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001266/0.4451, allocations: 1.05 MB / 0.615 GB, free: 9 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002095/0.4453, allocations: 136 kB / 0.6152 GB, free: 8.867 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01605/0.4613, allocations: 8.554 MB / 0.6235 GB, free: 312 kB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005503/0.4619, allocations: 406.6 kB / 0.6239 GB, free: 15.91 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001077/0.463, allocations: 0.8594 MB / 0.6248 GB, free: 15.04 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01363/0.4766, allocations: 6.879 MB / 0.6315 GB, free: 8.148 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.4767, allocations: 7.938 kB / 0.6315 GB, free: 8.141 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.4767, allocations: 4 kB / 0.6315 GB, free: 8.137 MB / 478.1 MB Notification: Performance of Transformations before backend: time 2.029e-05/0.4767, allocations: 0 / 0.6315 GB, free: 8.137 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.005945/0.4827, allocations: 2.713 MB / 0.6341 GB, free: 5.367 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.232e-05/0.4827, allocations: 11.89 kB / 0.6341 GB, free: 5.355 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00719/0.4899, allocations: 0.8604 MB / 0.635 GB, free: 4.496 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001738/0.4917, allocations: 0.979 MB / 0.6359 GB, free: 3.477 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001117/0.4918, allocations: 110.3 kB / 0.636 GB, free: 3.367 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001558/0.492, allocations: 116 kB / 0.6362 GB, free: 3.254 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005887/0.4979, allocations: 2.216 MB / 0.6383 GB, free: 0.8789 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.938e-05/0.4979, allocations: 7.938 kB / 0.6383 GB, free: 0.8711 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001354/0.4981, allocations: 56 kB / 0.6384 GB, free: 0.8164 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.522e-05/0.4981, allocations: 32 kB / 0.6384 GB, free: 0.7852 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005983/0.5041, allocations: 2.064 MB / 0.6404 GB, free: 14.71 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01273/0.5169, allocations: 10.29 MB / 0.6505 GB, free: 3.582 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005004/0.5219, allocations: 1.576 MB / 0.652 GB, free: 1.992 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001117/0.523, allocations: 0.5063 MB / 0.6525 GB, free: 1.484 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04617/0.5692, allocations: 24.16 MB / 0.6761 GB, free: 6.457 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.964e-05/0.5693, allocations: 43.22 kB / 0.6761 GB, free: 6.406 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=80): time 4.007e-06/0.5693, allocations: 0 / 0.6761 GB, free: 6.406 MB / 0.5137 GB Notification: Performance of matching and sorting (n=80): time 0.009331/0.5787, allocations: 2.584 MB / 0.6787 GB, free: 3.812 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001077/0.5788, allocations: 269.7 kB / 0.6789 GB, free: 3.488 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001567/0.5804, allocations: 1.165 MB / 0.6801 GB, free: 2.316 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0001136/0.5805, allocations: 45.7 kB / 0.6801 GB, free: 2.266 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004657/0.581, allocations: 0.6201 MB / 0.6807 GB, free: 1.637 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.000235/0.5812, allocations: 268.2 kB / 0.681 GB, free: 1.371 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003652/0.5816, allocations: 266.6 kB / 0.6812 GB, free: 1.105 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001216/0.5817, allocations: 349.9 kB / 0.6816 GB, free: 0.7578 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001203/0.5829, allocations: 473.8 kB / 0.682 GB, free: 300 kB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001523/0.5845, allocations: 0.8924 MB / 0.6829 GB, free: 15.21 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002573/0.587, allocations: 1.299 MB / 0.6841 GB, free: 13.73 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.157e-05/0.5871, allocations: 4 kB / 0.6842 GB, free: 13.73 MB / 0.5294 GB Notification: Performance of matching and sorting (n=143) (initialization): time 0.003456/0.5905, allocations: 1.48 MB / 0.6856 GB, free: 12.24 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.494e-05/0.5906, allocations: 12 kB / 0.6856 GB, free: 12.23 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.997e-05/0.5906, allocations: 12 kB / 0.6856 GB, free: 12.22 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.811e-05/0.5906, allocations: 16 kB / 0.6856 GB, free: 12.2 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0012/0.5918, allocations: 343.5 kB / 0.686 GB, free: 11.87 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.061e-05/0.5919, allocations: 19.94 kB / 0.686 GB, free: 11.85 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001222/0.5931, allocations: 222.1 kB / 0.6862 GB, free: 11.63 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001106/0.5932, allocations: 71.97 kB / 0.6863 GB, free: 11.56 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001488/0.5947, allocations: 0.6585 MB / 0.6869 GB, free: 10.9 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001453/0.5962, allocations: 0.8949 MB / 0.6878 GB, free: 9.797 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002458/0.5987, allocations: 1.279 MB / 0.689 GB, free: 8.336 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.544e-06/0.5987, allocations: 4 kB / 0.689 GB, free: 8.332 MB / 0.5294 GB Notification: Performance of matching and sorting (n=143) (initialization_lambda0): time 0.00329/0.602, allocations: 1.448 MB / 0.6904 GB, free: 6.875 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.592e-05/0.602, allocations: 12.88 kB / 0.6905 GB, free: 6.863 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.493e-05/0.602, allocations: 16 kB / 0.6905 GB, free: 6.848 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.698e-05/0.602, allocations: 16 kB / 0.6905 GB, free: 6.832 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001117/0.6032, allocations: 335.5 kB / 0.6908 GB, free: 6.504 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.81e-05/0.6032, allocations: 37.44 kB / 0.6908 GB, free: 6.469 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001103/0.6043, allocations: 163 kB / 0.691 GB, free: 6.309 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.749e-05/0.6044, allocations: 67.97 kB / 0.6911 GB, free: 6.242 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.0003369/0.6048, allocations: 267.8 kB / 0.6913 GB, free: 5.973 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002949/0.6051, allocations: 146.2 kB / 0.6915 GB, free: 5.828 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007444/0.6125, allocations: 6.455 MB / 0.6978 GB, free: 15.33 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.318e-05/0.6125, allocations: 7.969 kB / 0.6978 GB, free: 15.32 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.621e-06/0.6125, allocations: 0 / 0.6978 GB, free: 15.32 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006635/0.6132, allocations: 465 kB / 0.6982 GB, free: 14.85 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003814/0.6136, allocations: 149.9 kB / 0.6984 GB, free: 14.7 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001074/0.6147, allocations: 131.8 kB / 0.6985 GB, free: 14.57 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001908/0.6149, allocations: 100.9 kB / 0.6986 GB, free: 14.47 MB / 0.545 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004098/0.619, allocations: 2.85 MB / 0.7014 GB, free: 11.61 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004134/0.6231, allocations: 2.989 MB / 0.7043 GB, free: 8.594 MB / 0.545 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001666/0.6248, allocations: 1.358 MB / 0.7056 GB, free: 7.238 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.002396/0.6272, allocations: 1.637 MB / 0.7072 GB, free: 5.594 MB / 0.545 GB Notification: Performance of Backend: time 1.953e-06/0.6272, allocations: 0 / 0.7072 GB, free: 5.594 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0108/0.638, allocations: 3.59 MB / 0.7107 GB, free: 2.012 MB / 0.545 GB Notification: Performance of SimCode: time 0.006727/0.6448, allocations: 4.816 MB / 0.7154 GB, free: 13.13 MB / 0.5606 GB Notification: Performance of Templates: time 0.2997/0.9445, allocations: 80.34 MB / 0.7939 GB, free: 206.5 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