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/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 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 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) 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001688/0.001688, allocations: 110.7 kB / 18.45 MB, free: 4.594 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.001951/0.001951, allocations: 183 kB / 19.38 MB, free: 3.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.389/1.389, allocations: 222.9 MB / 243.1 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2109/0.2109, allocations: 44.19 MB / 337.4 MB, free: 2.645 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001419/0.001419, allocations: 63.89 kB / 471.2 MB, free: 13.14 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.293/0.2945, allocations: 60.81 MB / 0.5196 GB, free: 3.59 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients): time 0.08344/0.3779, allocations: 82.23 MB / 0.5999 GB, free: 9.578 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.03542/0.4134, allocations: 28.41 MB / 0.6276 GB, free: 13.08 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002053/0.4155, allocations: 47.62 kB / 0.6277 GB, free: 13.04 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002915/0.4184, allocations: 0.982 MB / 0.6286 GB, free: 12.05 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01542/0.4339, allocations: 5.123 MB / 0.6336 GB, free: 6.918 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01499/0.4489, allocations: 5.704 MB / 0.6392 GB, free: 1.223 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.004941/0.4539, allocations: 3.691 MB / 0.6428 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001741/0.4556, allocations: 1.004 MB / 0.6438 GB, free: 12.49 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002807/0.4584, allocations: 1.429 MB / 0.6452 GB, free: 11.05 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001813/0.4603, allocations: 1.058 MB / 0.6462 GB, free: 9.992 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.000394/0.4607, allocations: 136 kB / 0.6463 GB, free: 9.859 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01824/0.4789, allocations: 8.546 MB / 0.6547 GB, free: 1.305 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.000813/0.4798, allocations: 410.6 kB / 0.6551 GB, free: 0.9023 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.001565/0.4813, allocations: 0.8594 MB / 0.6559 GB, free: 40 kB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01521/0.4966, allocations: 6.915 MB / 0.6627 GB, free: 9.105 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/0.4966, allocations: 0 / 0.6627 GB, free: 9.105 MB / 0.5137 GB Notification: Performance of FrontEnd: time 3.527e-06/0.4966, allocations: 4 kB / 0.6627 GB, free: 9.102 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 7.119e-05/0.4967, allocations: 0 / 0.6627 GB, free: 9.102 MB / 0.5137 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.006976/0.5037, allocations: 2.807 MB / 0.6654 GB, free: 6.23 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.05e-05/0.5037, allocations: 8.031 kB / 0.6654 GB, free: 6.223 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007464/0.5112, allocations: 0.8584 MB / 0.6663 GB, free: 5.363 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001857/0.5131, allocations: 0.9758 MB / 0.6672 GB, free: 4.344 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001213/0.5132, allocations: 110.3 kB / 0.6673 GB, free: 4.234 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002276/0.5134, allocations: 112 kB / 0.6674 GB, free: 4.125 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006159/0.5196, allocations: 2.229 MB / 0.6696 GB, free: 1.738 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.135e-05/0.5197, allocations: 3.938 kB / 0.6696 GB, free: 1.734 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001805/0.5199, allocations: 56 kB / 0.6697 GB, free: 1.68 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.849e-05/0.5199, allocations: 35.94 kB / 0.6697 GB, free: 1.645 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006452/0.5263, allocations: 2.064 MB / 0.6717 GB, free: 15.57 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01334/0.5397, allocations: 10.31 MB / 0.6818 GB, free: 4.43 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005369/0.5451, allocations: 1.576 MB / 0.6833 GB, free: 2.848 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0012/0.5463, allocations: 0.5102 MB / 0.6838 GB, free: 2.336 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05009/0.5964, allocations: 24.17 MB / 0.7074 GB, free: 7.289 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.014e-05/0.5965, allocations: 47.22 kB / 0.7075 GB, free: 7.234 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=80): time 3.246e-06/0.5965, allocations: 3.938 kB / 0.7075 GB, free: 7.23 MB / 0.5606 GB Notification: Performance of matching and sorting (n=80): time 0.009562/0.6061, allocations: 2.585 MB / 0.71 GB, free: 4.641 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001196/0.6062, allocations: 269.7 kB / 0.7103 GB, free: 4.312 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001615/0.6079, allocations: 1.169 MB / 0.7114 GB, free: 3.137 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 9.947e-05/0.608, allocations: 41.7 kB / 0.7114 GB, free: 3.09 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005154/0.6085, allocations: 0.6254 MB / 0.712 GB, free: 2.457 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.000257/0.6088, allocations: 289.6 kB / 0.7123 GB, free: 2.172 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003765/0.6091, allocations: 262.8 kB / 0.7126 GB, free: 1.91 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001405/0.6093, allocations: 361.9 kB / 0.7129 GB, free: 1.551 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00131/0.6106, allocations: 469.8 kB / 0.7134 GB, free: 1.086 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2282/0.8389, allocations: 0.8962 MB / 0.7142 GB, free: 178.7 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003295/0.8422, allocations: 1.291 MB / 0.7155 GB, free: 178.2 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.049e-05/0.8422, allocations: 3.688 kB / 0.7155 GB, free: 178.2 MB / 0.5606 GB Notification: Performance of matching and sorting (n=143) (initialization): time 0.003957/0.8462, allocations: 1.483 MB / 0.717 GB, free: 178 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.023e-05/0.8462, allocations: 15.17 kB / 0.717 GB, free: 178 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.554e-05/0.8463, allocations: 12.44 kB / 0.717 GB, free: 178 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.645e-05/0.8463, allocations: 20.48 kB / 0.717 GB, free: 178 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00125/0.8476, allocations: 339.2 kB / 0.7173 GB, free: 177.9 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.174e-05/0.8476, allocations: 33.2 kB / 0.7174 GB, free: 177.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001482/0.8491, allocations: 220.9 kB / 0.7176 GB, free: 177.9 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001452/0.8493, allocations: 72.56 kB / 0.7176 GB, free: 177.9 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001689/0.851, allocations: 0.6543 MB / 0.7183 GB, free: 177.6 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001619/0.8526, allocations: 0.8957 MB / 0.7191 GB, free: 176.9 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00275/0.8554, allocations: 1.278 MB / 0.7204 GB, free: 176.1 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.806e-05/0.8554, allocations: 4 kB / 0.7204 GB, free: 176.1 MB / 0.5606 GB Notification: Performance of matching and sorting (n=143) (initialization_lambda0): time 0.003705/0.8591, allocations: 1.462 MB / 0.7218 GB, free: 175.7 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.23e-05/0.8591, allocations: 10.41 kB / 0.7218 GB, free: 175.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.076e-05/0.8592, allocations: 13.09 kB / 0.7218 GB, free: 175.7 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.006e-05/0.8592, allocations: 20.09 kB / 0.7219 GB, free: 175.7 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001173/0.8604, allocations: 338 kB / 0.7222 GB, free: 175.6 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.967e-05/0.8604, allocations: 26.81 kB / 0.7222 GB, free: 175.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00129/0.8617, allocations: 162.7 kB / 0.7224 GB, free: 175.6 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001135/0.8618, allocations: 73.28 kB / 0.7224 GB, free: 175.6 MB / 0.5606 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.0003654/0.8622, allocations: 269.9 kB / 0.7227 GB, free: 175.3 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003473/0.8626, allocations: 145.9 kB / 0.7228 GB, free: 175.3 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007293/0.8699, allocations: 6.478 MB / 0.7292 GB, free: 172.4 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.482e-05/0.8699, allocations: 10.45 kB / 0.7292 GB, free: 172.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.424e-06/0.8699, allocations: 0 / 0.7292 GB, free: 172.4 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008078/0.8707, allocations: 483.6 kB / 0.7296 GB, free: 172.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005103/0.8713, allocations: 155.5 kB / 0.7298 GB, free: 172 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001295/0.8726, allocations: 129.4 kB / 0.7299 GB, free: 172 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001913/0.8728, allocations: 103.7 kB / 0.73 GB, free: 172 MB / 0.5606 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003832/0.8766, allocations: 2.855 MB / 0.7328 GB, free: 170.9 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003549/0.8802, allocations: 3.002 MB / 0.7357 GB, free: 169.5 MB / 0.5606 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001329/0.8815, allocations: 1.367 MB / 0.7371 GB, free: 168.7 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001878/0.8834, allocations: 1.634 MB / 0.7387 GB, free: 167.8 MB / 0.5606 GB Notification: Performance of Backend: time 3.3e-07/0.8834, allocations: 0 / 0.7387 GB, free: 167.8 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0103/0.8937, allocations: 3.612 MB / 0.7422 GB, free: 166.7 MB / 0.5606 GB Notification: Performance of SimCode: time 0.006025/0.8998, allocations: 4.876 MB / 0.7469 GB, free: 162.5 MB / 0.5606 GB Notification: Performance of Templates: time 0.08481/0.9846, allocations: 79.22 MB / 0.8243 GB, free: 83.61 MB / 0.5606 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveCoefficients/TestValveCoefficients.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches