Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00164/0.00164, allocations: 114.5 kB / 21.17 MB, free: 0.6172 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001582/0.001582, allocations: 206.8 kB / 24.47 MB, free: 4.023 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.483/1.483, allocations: 230.2 MB / 257.8 MB, free: 8.496 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2267/0.2267, allocations: 46.9 MB / 361.1 MB, free: 4.629 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-beta.om/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.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-beta.om_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-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002353/0.002353, allocations: 75.88 kB / 0.4968 GB, free: 7.809 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3319/0.3343, allocations: 65.98 MB / 0.5612 GB, free: 5.02 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03299/0.3673, allocations: 28.65 MB / 0.5892 GB, free: 8.27 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01852/0.3858, allocations: 13.38 MB / 0.6022 GB, free: 10.84 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005077/0.3863, allocations: 15.88 kB / 0.6023 GB, free: 10.83 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001049/0.3873, allocations: 254.4 kB / 0.6025 GB, free: 10.58 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01007/0.3974, allocations: 3.673 MB / 0.6061 GB, free: 6.906 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006793/0.4042, allocations: 2.371 MB / 0.6084 GB, free: 4.535 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001362/0.4056, allocations: 0.9002 MB / 0.6093 GB, free: 3.633 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003843/0.4059, allocations: 212.7 kB / 0.6095 GB, free: 3.422 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008606/0.4068, allocations: 450.2 kB / 0.6099 GB, free: 2.98 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003788/0.4072, allocations: 286.9 kB / 0.6102 GB, free: 2.699 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 5.423e-05/0.4072, allocations: 32 kB / 0.6102 GB, free: 2.668 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01438/0.4216, allocations: 7.243 MB / 0.6173 GB, free: 11.41 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002106/0.4218, allocations: 115.6 kB / 0.6174 GB, free: 11.3 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003483/0.4222, allocations: 219 kB / 0.6176 GB, free: 11.09 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01053/0.4327, allocations: 4.423 MB / 0.6219 GB, free: 6.652 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.4327, allocations: 0 / 0.6219 GB, free: 6.652 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.4327, allocations: 0 / 0.6219 GB, free: 6.652 MB / 462.1 MB Notification: Performance of Transformations before backend: time 9.197e-06/0.4327, allocations: 0 / 0.6219 GB, free: 6.652 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.003438/0.4361, allocations: 1.275 MB / 0.6232 GB, free: 5.324 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.195e-05/0.4362, allocations: 12.03 kB / 0.6232 GB, free: 5.312 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001766/0.438, allocations: 208.5 kB / 0.6234 GB, free: 5.109 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006205/0.4386, allocations: 391.4 kB / 0.6238 GB, free: 4.691 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.971e-05/0.4386, allocations: 25.03 kB / 0.6238 GB, free: 4.668 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.92e-05/0.4387, allocations: 28.38 kB / 0.6238 GB, free: 4.641 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001627/0.4403, allocations: 0.5822 MB / 0.6244 GB, free: 4.016 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.547e-05/0.4403, allocations: 7.875 kB / 0.6244 GB, free: 4.008 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.451e-05/0.4404, allocations: 16 kB / 0.6244 GB, free: 3.992 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.36e-05/0.4404, allocations: 8 kB / 0.6244 GB, free: 3.984 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001634/0.442, allocations: 0.525 MB / 0.6249 GB, free: 3.461 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.003575/0.4456, allocations: 2.621 MB / 0.6275 GB, free: 0.6016 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001644/0.4472, allocations: 446.1 kB / 0.6279 GB, free: 160 kB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004766/0.4477, allocations: 180.8 kB / 0.6281 GB, free: 15.97 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05566/0.5034, allocations: 26.87 MB / 0.6543 GB, free: 1.688 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.544e-05/0.5034, allocations: 30.56 kB / 0.6543 GB, free: 1.648 MB / 494.1 MB Notification: Performance of pre-optimization done (n=25): time 2.976e-06/0.5034, allocations: 0 / 0.6543 GB, free: 1.648 MB / 494.1 MB Notification: Performance of matching and sorting (n=25): time 0.002966/0.5064, allocations: 0.7936 MB / 0.6551 GB, free: 0.8477 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.91e-05/0.5064, allocations: 110.8 kB / 0.6552 GB, free: 0.7148 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003574/0.5068, allocations: 312.5 kB / 0.6555 GB, free: 412 kB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 4.202e-05/0.5068, allocations: 29.7 kB / 0.6556 GB, free: 376 kB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001525/0.507, allocations: 208.6 kB / 0.6558 GB, free: 164 kB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.359e-05/0.5071, allocations: 83.27 kB / 0.6558 GB, free: 80 kB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001128/0.5072, allocations: 69.69 kB / 0.6559 GB, free: 4 kB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001858/0.5074, allocations: 346.8 kB / 0.6562 GB, free: 15.66 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003894/0.5078, allocations: 135.9 kB / 0.6564 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004676/0.5082, allocations: 239.7 kB / 0.6566 GB, free: 15.25 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008278/0.5091, allocations: 353.9 kB / 0.6569 GB, free: 14.87 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.5091, allocations: 4 kB / 0.6569 GB, free: 14.87 MB / 0.4981 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001068/0.5101, allocations: 433 kB / 0.6573 GB, free: 14.44 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.318e-05/0.5102, allocations: 8 kB / 0.6573 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.405e-06/0.5102, allocations: 3.938 kB / 0.6574 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.96e-05/0.5102, allocations: 7.938 kB / 0.6574 GB, free: 14.42 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003489/0.5105, allocations: 79.89 kB / 0.6574 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.107e-05/0.5106, allocations: 4 kB / 0.6574 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003044/0.5109, allocations: 47.94 kB / 0.6575 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.863e-05/0.5109, allocations: 23.98 kB / 0.6575 GB, free: 14.27 MB / 0.4981 GB 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.0002272/0.5111, allocations: 157.7 kB / 0.6577 GB, free: 14.1 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001089/0.5112, allocations: 39.75 kB / 0.6577 GB, free: 14.06 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002658/0.5139, allocations: 1.897 MB / 0.6596 GB, free: 12.15 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.001e-05/0.5139, allocations: 31.89 kB / 0.6596 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.623e-06/0.5139, allocations: 0 / 0.6596 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.95e-06/0.5139, allocations: 0 / 0.6596 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001114/0.515, allocations: 1.024 MB / 0.6606 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.877e-06/0.5151, allocations: 0 / 0.6606 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003083/0.5154, allocations: 71.86 kB / 0.6606 GB, free: 10.97 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.306e-06/0.5154, allocations: 0 / 0.6606 GB, free: 10.97 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.177e-05/0.5154, allocations: 8 kB / 0.6607 GB, free: 10.96 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.078e-06/0.5154, allocations: 3.938 kB / 0.6607 GB, free: 10.96 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.5154, allocations: 0 / 0.6607 GB, free: 10.96 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001523/0.5169, allocations: 1.089 MB / 0.6617 GB, free: 9.859 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000147/0.5171, allocations: 164.3 kB / 0.6619 GB, free: 9.68 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.353e-05/0.5171, allocations: 27.78 kB / 0.6619 GB, free: 9.652 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002605/0.5174, allocations: 31.91 kB / 0.6619 GB, free: 9.621 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.618e-05/0.5175, allocations: 35.89 kB / 0.662 GB, free: 9.586 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.741e-05/0.5175, allocations: 12 kB / 0.662 GB, free: 9.574 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003929/0.5179, allocations: 327.1 kB / 0.6623 GB, free: 9.258 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5179, allocations: 3.938 kB / 0.6623 GB, free: 9.254 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.00383/0.5217, allocations: 1.002 MB / 0.6633 GB, free: 8.25 MB / 0.4981 GB 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.004349/0.5261, allocations: 1.176 MB / 0.6644 GB, free: 7.066 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001321/0.5274, allocations: 0.5787 MB / 0.665 GB, free: 6.484 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.5274, allocations: 0 / 0.665 GB, free: 6.484 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0006488/0.5281, allocations: 402.9 kB / 0.6654 GB, free: 6.094 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001218/0.5293, allocations: 227.1 kB / 0.6656 GB, free: 5.883 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002268/0.5316, allocations: 1.541 MB / 0.6671 GB, free: 4.309 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005734/0.5321, allocations: 0.956 MB / 0.668 GB, free: 3.324 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0004684/0.5326, allocations: 274.8 kB / 0.6683 GB, free: 3.055 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001162/0.5327, allocations: 43.38 kB / 0.6683 GB, free: 3.012 MB / 0.4981 GB Notification: Performance of SimCode: time 7.82e-07/0.5327, allocations: 4 kB / 0.6683 GB, free: 3.008 MB / 0.4981 GB Notification: Performance of Templates: time 0.05789/0.5906, allocations: 39.87 MB / 0.7073 GB, free: 11.18 MB / 0.545 GB " [Timeout remaining time 659] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_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: 7.710323774255812]