Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001221/0.001221, allocations: 114.5 kB / 18.46 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001248/0.001248, allocations: 208 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.405/1.405, allocations: 227.4 MB / 247.6 MB, free: 10.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2116/0.2116, allocations: 46.09 MB / 344.9 MB, free: 11.47 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001456/0.001457, allocations: 75.88 kB / 482 MB, free: 4.027 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3364/0.3379, allocations: 62.44 MB / 0.5317 GB, free: 13.56 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients): time 0.08672/0.4246, allocations: 82.43 MB / 0.6122 GB, free: 14.98 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.03689/0.4616, allocations: 28.42 MB / 0.6399 GB, free: 2.469 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003154/0.4648, allocations: 47.62 kB / 0.64 GB, free: 2.422 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003478/0.4683, allocations: 0.9742 MB / 0.6409 GB, free: 1.441 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01436/0.4827, allocations: 5.092 MB / 0.6459 GB, free: 12.34 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.01488/0.4976, allocations: 5.701 MB / 0.6515 GB, free: 6.652 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.005308/0.5029, allocations: 3.694 MB / 0.6551 GB, free: 2.945 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00189/0.5048, allocations: 0.9928 MB / 0.656 GB, free: 1.926 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002891/0.5077, allocations: 1.421 MB / 0.6574 GB, free: 0.5 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001971/0.5097, allocations: 1.062 MB / 0.6585 GB, free: 15.43 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0003817/0.5101, allocations: 136 kB / 0.6586 GB, free: 15.3 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01822/0.5284, allocations: 8.566 MB / 0.667 GB, free: 6.727 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0007257/0.5291, allocations: 410.6 kB / 0.6673 GB, free: 6.324 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.001561/0.5307, allocations: 0.8556 MB / 0.6682 GB, free: 5.465 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.01615/0.5469, allocations: 6.911 MB / 0.6749 GB, free: 14.54 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 6.753e-06/0.5469, allocations: 0 / 0.6749 GB, free: 14.54 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.854e-06/0.5469, allocations: 0 / 0.6749 GB, free: 14.54 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 7.065e-05/0.547, allocations: 0 / 0.6749 GB, free: 14.54 MB / 0.5294 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.007009/0.554, allocations: 2.728 MB / 0.6776 GB, free: 11.75 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.037e-05/0.554, allocations: 12.03 kB / 0.6776 GB, free: 11.74 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007324/0.5614, allocations: 0.8381 MB / 0.6784 GB, free: 10.9 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001803/0.5632, allocations: 0.9865 MB / 0.6794 GB, free: 9.871 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001325/0.5634, allocations: 106.3 kB / 0.6795 GB, free: 9.766 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002122/0.5636, allocations: 116 kB / 0.6796 GB, free: 9.652 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00607/0.5697, allocations: 2.22 MB / 0.6818 GB, free: 7.273 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.937e-05/0.5697, allocations: 3.938 kB / 0.6818 GB, free: 7.27 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001738/0.5699, allocations: 56 kB / 0.6818 GB, free: 7.215 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.735e-05/0.5699, allocations: 32 kB / 0.6819 GB, free: 7.184 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006148/0.5761, allocations: 2.068 MB / 0.6839 GB, free: 5.105 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01372/0.5898, allocations: 10.29 MB / 0.6939 GB, free: 9.984 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005174/0.595, allocations: 1.568 MB / 0.6955 GB, free: 8.41 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00113/0.5962, allocations: 0.5103 MB / 0.696 GB, free: 7.898 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2884/0.8846, allocations: 26.73 MB / 0.7221 GB, free: 145.5 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.89e-05/0.8847, allocations: 49.19 kB / 0.7221 GB, free: 145.4 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=80): time 3.096e-06/0.8847, allocations: 0 / 0.7221 GB, free: 145.4 MB / 0.5606 GB Notification: Performance of matching and sorting (n=80): time 0.009111/0.8939, allocations: 2.578 MB / 0.7246 GB, free: 145.4 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.698e-05/0.894, allocations: 273.1 kB / 0.7249 GB, free: 145.1 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00143/0.8954, allocations: 1.161 MB / 0.726 GB, free: 144.9 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0001022/0.8955, allocations: 44.02 kB / 0.7261 GB, free: 144.9 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003466/0.8959, allocations: 0.6134 MB / 0.7267 GB, free: 144.7 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001694/0.896, allocations: 279.4 kB / 0.7269 GB, free: 144.6 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003237/0.8964, allocations: 268.1 kB / 0.7272 GB, free: 144.5 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 6.824e-05/0.8964, allocations: 351 kB / 0.7275 GB, free: 144.2 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001109/0.8976, allocations: 475.1 kB / 0.728 GB, free: 144.2 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001271/0.8988, allocations: 0.8947 MB / 0.7289 GB, free: 143.7 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002187/0.901, allocations: 1.301 MB / 0.7301 GB, free: 143.2 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.965e-06/0.9011, allocations: 3.969 kB / 0.7301 GB, free: 143.2 MB / 0.5606 GB Notification: Performance of matching and sorting (n=143) (initialization): time 0.003155/0.9042, allocations: 1.477 MB / 0.7316 GB, free: 143.1 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.476e-05/0.9043, allocations: 11.91 kB / 0.7316 GB, free: 143.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.577e-05/0.9043, allocations: 11.91 kB / 0.7316 GB, free: 143.1 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.153e-05/0.9043, allocations: 23.88 kB / 0.7316 GB, free: 143.1 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0011/0.9054, allocations: 334.6 kB / 0.7319 GB, free: 143.1 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.429e-05/0.9055, allocations: 26.73 kB / 0.732 GB, free: 143.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001159/0.9066, allocations: 218.1 kB / 0.7322 GB, free: 143 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.487e-05/0.9067, allocations: 67.5 kB / 0.7322 GB, free: 143 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001303/0.908, allocations: 0.6581 MB / 0.7329 GB, free: 142.9 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001215/0.9093, allocations: 0.8994 MB / 0.7338 GB, free: 142.4 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002028/0.9113, allocations: 1.271 MB / 0.735 GB, free: 141.9 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.452e-06/0.9113, allocations: 3.594 kB / 0.735 GB, free: 141.9 MB / 0.5606 GB Notification: Performance of matching and sorting (n=143) (initialization_lambda0): time 0.002962/0.9143, allocations: 1.453 MB / 0.7364 GB, free: 141.8 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.774e-05/0.9143, allocations: 11.53 kB / 0.7364 GB, free: 141.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.377e-05/0.9143, allocations: 14.34 kB / 0.7364 GB, free: 141.8 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.695e-05/0.9144, allocations: 19.44 kB / 0.7365 GB, free: 141.8 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001045/0.9154, allocations: 339.9 kB / 0.7368 GB, free: 141.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.806e-05/0.9154, allocations: 28.98 kB / 0.7368 GB, free: 141.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001118/0.9166, allocations: 162 kB / 0.737 GB, free: 141.7 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.372e-05/0.9166, allocations: 70.88 kB / 0.737 GB, free: 141.7 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.0003195/0.917, allocations: 272.5 kB / 0.7373 GB, free: 141.5 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002164/0.9172, allocations: 141.1 kB / 0.7374 GB, free: 141.4 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00563/0.9228, allocations: 6.449 MB / 0.7437 GB, free: 139.3 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.176e-05/0.9229, allocations: 3.562 kB / 0.7437 GB, free: 139.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.753e-06/0.9229, allocations: 3.844 kB / 0.7437 GB, free: 139.3 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005086/0.9234, allocations: 465.1 kB / 0.7442 GB, free: 138.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002847/0.9237, allocations: 152.5 kB / 0.7443 GB, free: 138.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009705/0.9247, allocations: 135 kB / 0.7444 GB, free: 138.8 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001598/0.9248, allocations: 100.9 kB / 0.7445 GB, free: 138.8 MB / 0.5606 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003064/0.9279, allocations: 2.851 MB / 0.7473 GB, free: 137.1 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003104/0.931, allocations: 2.986 MB / 0.7502 GB, free: 134.4 MB / 0.5606 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001246/0.9323, allocations: 1.364 MB / 0.7516 GB, free: 133.2 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001737/0.934, allocations: 1.629 MB / 0.7532 GB, free: 131.8 MB / 0.5606 GB Notification: Performance of Backend: time 3.41e-07/0.934, allocations: 5.859 kB / 0.7532 GB, free: 131.8 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.009055/0.9431, allocations: 3.594 MB / 0.7567 GB, free: 128.9 MB / 0.5606 GB Notification: Performance of SimCode: time 0.005007/0.9481, allocations: 4.816 MB / 0.7614 GB, free: 124.1 MB / 0.5606 GB Notification: Performance of Templates: time 0.08374/1.032, allocations: 80.46 MB / 0.84 GB, free: 44.03 MB / 0.5606 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches