Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001529/0.001529, allocations: 112.2 kB / 21.19 MB, free: 0.7734 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001848/0.001848, allocations: 210.1 kB / 24.5 MB, free: 4.152 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.419/1.419, allocations: 230.6 MB / 258.3 MB, free: 7.996 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2301/0.2301, allocations: 46.94 MB / 361.6 MB, free: 4.277 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,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.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,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.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002203/0.002203, allocations: 67.89 kB / 0.4974 GB, free: 7.398 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3402/0.3424, allocations: 66.02 MB / 0.5619 GB, free: 4.43 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.0358/0.3782, allocations: 28.65 MB / 0.5899 GB, free: 7.68 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01882/0.397, allocations: 13.38 MB / 0.6029 GB, free: 10.25 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005334/0.3975, allocations: 15.88 kB / 0.6029 GB, free: 10.23 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009336/0.3985, allocations: 250.4 kB / 0.6032 GB, free: 9.988 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01079/0.4093, allocations: 3.678 MB / 0.6068 GB, free: 6.312 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007221/0.4165, allocations: 2.399 MB / 0.6091 GB, free: 3.914 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001548/0.418, allocations: 0.9003 MB / 0.61 GB, free: 3.012 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005509/0.4186, allocations: 212.9 kB / 0.6102 GB, free: 2.797 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001066/0.4197, allocations: 458.2 kB / 0.6106 GB, free: 2.348 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005579/0.4202, allocations: 290.8 kB / 0.6109 GB, free: 2.062 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 9.481e-05/0.4203, allocations: 36 kB / 0.6109 GB, free: 2.027 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01531/0.4356, allocations: 7.251 MB / 0.618 GB, free: 10.77 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002503/0.4359, allocations: 115.6 kB / 0.6181 GB, free: 10.65 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004035/0.4363, allocations: 215.1 kB / 0.6183 GB, free: 10.44 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0114/0.4477, allocations: 4.427 MB / 0.6227 GB, free: 6.004 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.437e-06/0.4477, allocations: 4 kB / 0.6227 GB, free: 6 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.4477, allocations: 3.938 kB / 0.6227 GB, free: 5.996 MB / 462.1 MB Notification: Performance of Transformations before backend: time 2.115e-05/0.4477, allocations: 0 / 0.6227 GB, free: 5.996 MB / 462.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.003843/0.4515, allocations: 1.184 MB / 0.6238 GB, free: 4.777 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.597e-05/0.4516, allocations: 12.03 kB / 0.6238 GB, free: 4.766 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001896/0.4535, allocations: 216.4 kB / 0.624 GB, free: 4.555 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000757/0.4542, allocations: 325.1 kB / 0.6244 GB, free: 4.207 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.962e-05/0.4543, allocations: 25.03 kB / 0.6244 GB, free: 4.184 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.575e-05/0.4543, allocations: 28.38 kB / 0.6244 GB, free: 4.156 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001658/0.456, allocations: 0.5824 MB / 0.625 GB, free: 3.535 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.625e-05/0.456, allocations: 0 / 0.625 GB, free: 3.535 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.706e-05/0.4561, allocations: 15.94 kB / 0.625 GB, free: 3.52 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.156e-05/0.4561, allocations: 12 kB / 0.625 GB, free: 3.508 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001654/0.4577, allocations: 0.5253 MB / 0.6255 GB, free: 2.98 MB / 462.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.003521/0.4613, allocations: 2.515 MB / 0.628 GB, free: 260 kB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001614/0.4629, allocations: 450.1 kB / 0.6284 GB, free: 15.8 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004313/0.4633, allocations: 184.7 kB / 0.6286 GB, free: 15.62 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04657/0.5099, allocations: 13.15 MB / 0.6414 GB, free: 2.453 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.801e-05/0.5099, allocations: 34.56 kB / 0.6414 GB, free: 2.41 MB / 478.1 MB Notification: Performance of pre-optimization done (n=25): time 2.335e-06/0.5099, allocations: 0 / 0.6414 GB, free: 2.41 MB / 478.1 MB Notification: Performance of matching and sorting (n=25): time 0.002987/0.5129, allocations: 0.7858 MB / 0.6422 GB, free: 1.617 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.845e-05/0.513, allocations: 114.8 kB / 0.6423 GB, free: 1.48 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000416/0.5134, allocations: 304.5 kB / 0.6426 GB, free: 1.18 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 4.8e-05/0.5135, allocations: 37.7 kB / 0.6426 GB, free: 1.137 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001769/0.5136, allocations: 208.5 kB / 0.6428 GB, free: 0.9297 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.091e-05/0.5137, allocations: 87.2 kB / 0.6429 GB, free: 0.8438 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001231/0.5139, allocations: 69.69 kB / 0.643 GB, free: 0.7695 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001601/0.514, allocations: 342.8 kB / 0.6433 GB, free: 436 kB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003855/0.5144, allocations: 139.9 kB / 0.6435 GB, free: 296 kB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004607/0.5149, allocations: 227.9 kB / 0.6437 GB, free: 28 kB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008319/0.5157, allocations: 361.9 kB / 0.644 GB, free: 15.64 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.147e-06/0.5157, allocations: 4 kB / 0.644 GB, free: 15.64 MB / 494.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001086/0.5168, allocations: 429.1 kB / 0.6444 GB, free: 15.21 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.994e-05/0.5168, allocations: 6.656 kB / 0.6444 GB, free: 15.21 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.151e-05/0.5168, allocations: 8 kB / 0.6444 GB, free: 15.2 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.378e-05/0.5168, allocations: 7.938 kB / 0.6445 GB, free: 15.19 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003271/0.5172, allocations: 83.83 kB / 0.6445 GB, free: 15.11 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.128e-05/0.5172, allocations: 4 kB / 0.6445 GB, free: 15.11 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002876/0.5175, allocations: 47.75 kB / 0.6446 GB, free: 15.06 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.362e-05/0.5175, allocations: 20.11 kB / 0.6446 GB, free: 15.04 MB / 494.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 (Opening.y,SinkP1.medium.phase,SourceP1.medium.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 (35): * Single equations (assignments): 35 * 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.0002192/0.5177, allocations: 157.8 kB / 0.6448 GB, free: 14.88 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001008/0.5178, allocations: 35.77 kB / 0.6448 GB, free: 14.84 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002714/0.5205, allocations: 1.979 MB / 0.6467 GB, free: 12.85 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.381e-05/0.5206, allocations: 31.89 kB / 0.6468 GB, free: 12.82 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.5206, allocations: 0 / 0.6468 GB, free: 12.82 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.54e-06/0.5206, allocations: 0 / 0.6468 GB, free: 12.82 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001149/0.5217, allocations: 1.007 MB / 0.6477 GB, free: 11.77 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.2e-06/0.5217, allocations: 8 kB / 0.6477 GB, free: 11.76 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003113/0.522, allocations: 71.92 kB / 0.6478 GB, free: 11.69 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.551e-06/0.522, allocations: 0 / 0.6478 GB, free: 11.69 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.135e-05/0.5221, allocations: 8 kB / 0.6478 GB, free: 11.68 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.823e-06/0.5221, allocations: 7.875 kB / 0.6478 GB, free: 11.67 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.5221, allocations: 3.938 kB / 0.6478 GB, free: 11.67 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001622/0.5237, allocations: 1.116 MB / 0.6489 GB, free: 10.53 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001427/0.5238, allocations: 87.16 kB / 0.649 GB, free: 10.45 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.718e-05/0.5239, allocations: 23.84 kB / 0.649 GB, free: 10.42 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000284/0.5242, allocations: 31.91 kB / 0.6491 GB, free: 10.39 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001128/0.5243, allocations: 31.94 kB / 0.6491 GB, free: 10.36 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.756e-05/0.5243, allocations: 16 kB / 0.6491 GB, free: 10.34 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003958/0.5247, allocations: 331.1 kB / 0.6494 GB, free: 10.02 MB / 494.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.5247, allocations: 0 / 0.6494 GB, free: 10.02 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002872/0.5276, allocations: 0.9981 MB / 0.6504 GB, free: 9.023 MB / 494.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004836/0.5325, allocations: 1.177 MB / 0.6515 GB, free: 7.836 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001423/0.5339, allocations: 0.5909 MB / 0.6521 GB, free: 7.246 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.019e-06/0.5339, allocations: 0 / 0.6521 GB, free: 7.246 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007058/0.5346, allocations: 417 kB / 0.6525 GB, free: 6.84 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001231/0.5358, allocations: 218.1 kB / 0.6527 GB, free: 6.629 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002545/0.5384, allocations: 1.603 MB / 0.6543 GB, free: 4.992 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006262/0.539, allocations: 0.9599 MB / 0.6552 GB, free: 4.004 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001483/0.5391, allocations: 43.44 kB / 0.6553 GB, free: 3.961 MB / 494.1 MB Notification: Performance of SimCode: time 1.162e-06/0.5391, allocations: 0 / 0.6553 GB, free: 3.961 MB / 494.1 MB Notification: Performance of Templates: time 0.04046/0.5796, allocations: 24.14 MB / 0.6788 GB, free: 11.84 MB / 0.5137 GB " [Timeout remaining time 659] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & ./ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.505187866976485]