Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.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.TestValveDiscrete,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|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|Opening.y|downstreamPressure.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,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|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|Opening.y|downstreamPressure.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008118/0.0008119, allocations: 93.62 kB / 17 MB, free: 6.121 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.0008254/0.0008257, allocations: 183 kB / 17.89 MB, free: 5.699 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.315/1.315, allocations: 223.3 MB / 241.9 MB, free: 356 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1824/0.1824, allocations: 44.26 MB / 337.3 MB, free: 2.801 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002958/0.0002958, allocations: 8 kB / 409.7 MB, free: 27.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1065/0.1068, allocations: 61.94 MB / 471.6 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.02565/0.1325, allocations: 26.13 MB / 497.7 MB, free: 3.504 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01401/0.1466, allocations: 12.4 MB / 0.4982 GB, free: 7.074 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005351/0.1472, allocations: 11.94 kB / 0.4982 GB, free: 7.062 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008213/0.148, allocations: 198.8 kB / 0.4984 GB, free: 6.867 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.009669/0.1577, allocations: 2.851 MB / 0.5012 GB, free: 4.02 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006272/0.164, allocations: 1.831 MB / 0.503 GB, free: 2.191 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001538/0.1655, allocations: 0.9937 MB / 0.5039 GB, free: 1.195 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003843/0.1659, allocations: 193 kB / 0.5041 GB, free: 1.004 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007137/0.1667, allocations: 382.3 kB / 0.5045 GB, free: 0.6289 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003047/0.167, allocations: 262.9 kB / 0.5047 GB, free: 380 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.989e-05/0.167, allocations: 16 kB / 0.5047 GB, free: 364 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2417/0.4088, allocations: 6.814 MB / 0.5114 GB, free: 16 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002209/0.409, allocations: 77.25 kB / 0.5115 GB, free: 16 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002452/0.4093, allocations: 103.2 kB / 0.5116 GB, free: 15.97 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00786/0.4172, allocations: 2.958 MB / 0.5145 GB, free: 15.92 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.025e-06/0.4172, allocations: 1.125 kB / 0.5145 GB, free: 15.92 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.769e-06/0.4172, allocations: 1.25 kB / 0.5145 GB, free: 15.92 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.631e-05/0.4172, allocations: 2.844 kB / 0.5145 GB, free: 15.92 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.004641/0.4219, allocations: 1.159 MB / 0.5156 GB, free: 15.22 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.669e-05/0.422, allocations: 13.16 kB / 0.5156 GB, free: 15.21 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00181/0.4238, allocations: 218.7 kB / 0.5158 GB, free: 15.2 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004832/0.4243, allocations: 353.1 kB / 0.5162 GB, free: 14.97 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.694e-05/0.4243, allocations: 26 kB / 0.5162 GB, free: 14.97 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.809e-05/0.4244, allocations: 31.91 kB / 0.5162 GB, free: 14.97 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001458/0.4259, allocations: 0.5992 MB / 0.5168 GB, free: 14.84 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.677e-05/0.4259, allocations: 8.156 kB / 0.5168 GB, free: 14.84 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.31e-05/0.4259, allocations: 14.31 kB / 0.5168 GB, free: 14.84 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.136e-05/0.426, allocations: 9.109 kB / 0.5168 GB, free: 14.84 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001494/0.4275, allocations: 0.5582 MB / 0.5174 GB, free: 14.82 MB / 382.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002523/0.43, allocations: 2.647 MB / 0.52 GB, free: 12.91 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001441/0.4314, allocations: 493 kB / 0.5204 GB, free: 12.88 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000385/0.4318, allocations: 197.5 kB / 0.5206 GB, free: 12.87 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04058/0.4724, allocations: 24.44 MB / 0.5445 GB, free: 10.87 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.712e-05/0.4725, allocations: 40.41 kB / 0.5445 GB, free: 10.82 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 2.385e-06/0.4725, allocations: 0 / 0.5445 GB, free: 10.82 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.002587/0.4751, allocations: 0.8477 MB / 0.5453 GB, free: 10.58 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.153e-05/0.4752, allocations: 106 kB / 0.5454 GB, free: 10.45 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003229/0.4755, allocations: 304.5 kB / 0.5457 GB, free: 10.29 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.425e-05/0.4756, allocations: 32.14 kB / 0.5458 GB, free: 10.25 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001361/0.4757, allocations: 206.9 kB / 0.546 GB, free: 10.1 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.137e-05/0.4758, allocations: 82.45 kB / 0.546 GB, free: 10.03 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.65e-05/0.4758, allocations: 9.5 kB / 0.546 GB, free: 10.03 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001369/0.476, allocations: 347.9 kB / 0.5464 GB, free: 9.691 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000372/0.4763, allocations: 153.7 kB / 0.5465 GB, free: 9.578 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004178/0.4768, allocations: 243.7 kB / 0.5468 GB, free: 9.344 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003776/0.4772, allocations: 175 kB / 0.5469 GB, free: 9.223 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.427e-06/0.4772, allocations: 0 / 0.5469 GB, free: 9.223 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009791/0.4782, allocations: 452.4 kB / 0.5474 GB, free: 8.879 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.729e-05/0.4782, allocations: 4 kB / 0.5474 GB, free: 8.875 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.102e-05/0.4782, allocations: 5.078 kB / 0.5474 GB, free: 8.871 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.939e-05/0.4782, allocations: 4 kB / 0.5474 GB, free: 8.867 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003522/0.4786, allocations: 91.38 kB / 0.5475 GB, free: 8.789 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.089e-05/0.4786, allocations: 4 kB / 0.5475 GB, free: 8.785 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003733/0.479, allocations: 60.5 kB / 0.5475 GB, free: 8.73 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.392e-05/0.479, allocations: 15.19 kB / 0.5475 GB, free: 8.719 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 5 (SourceP1.medium.phase,SinkP1.medium.phase,Opening.y,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 (35): * Single equations (assignments): 35 * 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.0002216/0.4793, allocations: 165.1 kB / 0.5477 GB, free: 8.578 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.294e-05/0.4793, allocations: 39.62 kB / 0.5477 GB, free: 8.539 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002381/0.4817, allocations: 1.936 MB / 0.5496 GB, free: 7.242 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.244e-05/0.4818, allocations: 34.06 kB / 0.5497 GB, free: 7.219 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.4818, allocations: 0 / 0.5497 GB, free: 7.219 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.4818, allocations: 0 / 0.5497 GB, free: 7.219 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001082/0.4829, allocations: 1.022 MB / 0.5507 GB, free: 6.473 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.272e-06/0.4829, allocations: 0 / 0.5507 GB, free: 6.473 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003126/0.4832, allocations: 82.44 kB / 0.5507 GB, free: 6.398 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.316e-06/0.4832, allocations: 4 kB / 0.5507 GB, free: 6.395 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.208e-05/0.4833, allocations: 8.422 kB / 0.5507 GB, free: 6.391 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.092e-06/0.4833, allocations: 6.562 kB / 0.5507 GB, free: 6.387 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.4833, allocations: 2.906 kB / 0.5507 GB, free: 6.387 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001362/0.4847, allocations: 1.102 MB / 0.5518 GB, free: 5.57 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002075/0.4849, allocations: 216.2 kB / 0.552 GB, free: 5.359 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.012e-05/0.4849, allocations: 4.438 kB / 0.552 GB, free: 5.359 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002959/0.4852, allocations: 43.52 kB / 0.5521 GB, free: 5.32 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.733e-05/0.4853, allocations: 32.33 kB / 0.5521 GB, free: 5.293 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.421e-05/0.4854, allocations: 11.06 kB / 0.5521 GB, free: 5.285 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003706/0.4858, allocations: 323.1 kB / 0.5524 GB, free: 5.039 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.4858, allocations: 3.484 kB / 0.5524 GB, free: 5.039 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.004128/0.4899, allocations: 0.9956 MB / 0.5534 GB, free: 4.086 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 19 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse11.phase,$cse11.region,SourceP1.medium.phase,SinkP1.medium.phase,Opening.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * 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.006679/0.4966, allocations: 1.168 MB / 0.5545 GB, free: 3.047 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001265/0.4979, allocations: 0.6194 MB / 0.5551 GB, free: 2.617 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.4979, allocations: 5.703 kB / 0.5552 GB, free: 2.617 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006707/0.4986, allocations: 0.5236 MB / 0.5557 GB, free: 2.32 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001186/0.4998, allocations: 221.6 kB / 0.5559 GB, free: 2.156 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002309/0.5021, allocations: 1.872 MB / 0.5577 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005727/0.5027, allocations: 0.9711 MB / 0.5587 GB, free: 15.5 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005152/0.5032, allocations: 269.7 kB / 0.5589 GB, free: 15.25 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000107/0.5033, allocations: 46.17 kB / 0.559 GB, free: 15.21 MB / 414.1 MB Notification: Performance of SimCode: time 6.81e-07/0.5034, allocations: 1.203 kB / 0.559 GB, free: 15.21 MB / 414.1 MB Notification: Performance of Templates: time 0.05739/0.5607, allocations: 39.13 MB / 0.5972 GB, free: 8.363 MB / 446.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches