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.001377/0.001377, allocations: 123.4 kB / 17.79 MB, free: 5.266 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.001367/0.001367, allocations: 200.3 kB / 20.74 MB, free: 2.32 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.548/1.548, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.2471/0.2471, allocations: 46.93 MB / 357.1 MB, free: 10.41 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.002128/0.002128, allocations: 67.91 kB / 0.4914 GB, free: 7.555 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1388/0.1409, allocations: 65.99 MB / 0.5558 GB, free: 5.438 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03427/0.1752, allocations: 28.42 MB / 0.5836 GB, free: 8.906 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.3084/0.4836, allocations: 13.33 MB / 0.5966 GB, free: 4.297 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004708/0.484, allocations: 15.25 kB / 0.5966 GB, free: 4.297 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009194/0.4849, allocations: 249.4 kB / 0.5969 GB, free: 4.297 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01185/0.4968, allocations: 3.686 MB / 0.6005 GB, free: 4.266 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007715/0.5045, allocations: 2.37 MB / 0.6028 GB, free: 4.207 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001893/0.5064, allocations: 0.8969 MB / 0.6037 GB, free: 4.207 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004716/0.5069, allocations: 217.2 kB / 0.6039 GB, free: 4.195 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001013/0.5079, allocations: 450.7 kB / 0.6043 GB, free: 4.191 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004896/0.5084, allocations: 283 kB / 0.6046 GB, free: 4.172 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 7.27e-05/0.5085, allocations: 33.47 kB / 0.6046 GB, free: 4.172 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01872/0.5272, allocations: 7.258 MB / 0.6117 GB, free: 4.066 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002843/0.5275, allocations: 102.1 kB / 0.6118 GB, free: 4.051 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005243/0.528, allocations: 221 kB / 0.612 GB, free: 3.992 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01544/0.5434, allocations: 4.436 MB / 0.6163 GB, free: 2.781 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.062e-06/0.5434, allocations: 0 / 0.6163 GB, free: 2.781 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.5434, allocations: 1.25 kB / 0.6163 GB, free: 2.781 MB / 446.1 MB Notification: Performance of Transformations before backend: time 9.688e-06/0.5434, allocations: 0 / 0.6163 GB, free: 2.781 MB / 446.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.004719/0.5482, allocations: 1.269 MB / 0.6176 GB, free: 1.918 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.145e-05/0.5482, allocations: 12.88 kB / 0.6176 GB, free: 1.914 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001875/0.5501, allocations: 213.5 kB / 0.6178 GB, free: 1.84 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006028/0.5507, allocations: 380.4 kB / 0.6181 GB, free: 1.543 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.341e-05/0.5507, allocations: 25.09 kB / 0.6182 GB, free: 1.543 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.115e-05/0.5508, allocations: 28.66 kB / 0.6182 GB, free: 1.543 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001643/0.5524, allocations: 0.5869 MB / 0.6188 GB, free: 1.277 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.481e-05/0.5524, allocations: 1.562 kB / 0.6188 GB, free: 1.277 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.54e-05/0.5525, allocations: 11.97 kB / 0.6188 GB, free: 1.277 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.084e-05/0.5525, allocations: 9.156 kB / 0.6188 GB, free: 1.277 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001645/0.5541, allocations: 0.5266 MB / 0.6193 GB, free: 1.07 MB / 446.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.003379/0.5575, allocations: 2.625 MB / 0.6219 GB, free: 14.59 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001745/0.5593, allocations: 439.7 kB / 0.6223 GB, free: 14.37 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005033/0.5598, allocations: 179.4 kB / 0.6225 GB, free: 14.28 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06024/0.62, allocations: 26.88 MB / 0.6487 GB, free: 5.957 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.358e-05/0.6201, allocations: 31.5 kB / 0.6487 GB, free: 5.918 MB / 478.1 MB Notification: Performance of pre-optimization done (n=25): time 1.913e-06/0.6201, allocations: 0 / 0.6487 GB, free: 5.918 MB / 478.1 MB Notification: Performance of matching and sorting (n=25): time 0.003338/0.6234, allocations: 0.7981 MB / 0.6495 GB, free: 5.113 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001109/0.6235, allocations: 110.8 kB / 0.6496 GB, free: 4.98 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004803/0.624, allocations: 304.5 kB / 0.6499 GB, free: 4.68 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 5.214e-05/0.624, allocations: 33.7 kB / 0.6499 GB, free: 4.641 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002113/0.6243, allocations: 208.5 kB / 0.6501 GB, free: 4.434 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001086/0.6244, allocations: 90.81 kB / 0.6502 GB, free: 4.348 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000175/0.6245, allocations: 69.69 kB / 0.6503 GB, free: 4.273 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0002218/0.6248, allocations: 338.8 kB / 0.6506 GB, free: 3.934 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004878/0.6253, allocations: 145.4 kB / 0.6508 GB, free: 3.793 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000592/0.6258, allocations: 239.7 kB / 0.651 GB, free: 3.52 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009738/0.6268, allocations: 357.2 kB / 0.6513 GB, free: 3.137 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.939e-06/0.6268, allocations: 0 / 0.6513 GB, free: 3.137 MB / 478.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001237/0.6281, allocations: 429 kB / 0.6517 GB, free: 2.711 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.845e-05/0.6281, allocations: 13.97 kB / 0.6518 GB, free: 2.699 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.338e-06/0.6281, allocations: 0 / 0.6518 GB, free: 2.699 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.355e-05/0.6281, allocations: 4 kB / 0.6518 GB, free: 2.695 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003729/0.6285, allocations: 87.81 kB / 0.6518 GB, free: 2.609 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.186e-05/0.6285, allocations: 12.25 kB / 0.6519 GB, free: 2.598 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003778/0.6289, allocations: 46.31 kB / 0.6519 GB, free: 2.555 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.148e-05/0.6289, allocations: 16 kB / 0.6519 GB, free: 2.539 MB / 478.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.0002472/0.6292, allocations: 157.8 kB / 0.6521 GB, free: 2.375 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001178/0.6293, allocations: 35.77 kB / 0.6521 GB, free: 2.34 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002804/0.6321, allocations: 1.892 MB / 0.6539 GB, free: 456 kB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.812e-05/0.6321, allocations: 35.89 kB / 0.654 GB, free: 420 kB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.76e-06/0.6321, allocations: 0 / 0.654 GB, free: 420 kB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.624e-06/0.6322, allocations: 3.984 kB / 0.654 GB, free: 416 kB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001364/0.6335, allocations: 1.023 MB / 0.655 GB, free: 15.34 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.62e-06/0.6335, allocations: 0 / 0.655 GB, free: 15.34 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003355/0.6339, allocations: 67.88 kB / 0.655 GB, free: 15.28 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.218e-06/0.6339, allocations: 0 / 0.655 GB, free: 15.28 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.705e-05/0.6339, allocations: 11.94 kB / 0.6551 GB, free: 15.27 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.749e-06/0.6339, allocations: 3.938 kB / 0.6551 GB, free: 15.27 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.6339, allocations: 4 kB / 0.6551 GB, free: 15.26 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001734/0.6356, allocations: 1.081 MB / 0.6561 GB, free: 14.16 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001857/0.6358, allocations: 176.2 kB / 0.6563 GB, free: 13.97 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.343e-05/0.6359, allocations: 23.84 kB / 0.6563 GB, free: 13.95 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002943/0.6362, allocations: 23.92 kB / 0.6563 GB, free: 13.92 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001136/0.6363, allocations: 31.95 kB / 0.6564 GB, free: 13.89 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.045e-05/0.6363, allocations: 15.98 kB / 0.6564 GB, free: 13.88 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003993/0.6367, allocations: 323.1 kB / 0.6567 GB, free: 13.56 MB / 494.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.6367, allocations: 0 / 0.6567 GB, free: 13.56 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004105/0.6408, allocations: 1.006 MB / 0.6577 GB, free: 12.55 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.007252/0.6481, allocations: 1.172 MB / 0.6588 GB, free: 11.47 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001493/0.6496, allocations: 0.5826 MB / 0.6594 GB, free: 10.89 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.889e-06/0.6496, allocations: 0 / 0.6594 GB, free: 10.89 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007529/0.6503, allocations: 406.9 kB / 0.6598 GB, free: 10.49 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001438/0.6518, allocations: 215.5 kB / 0.66 GB, free: 10.29 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002698/0.6545, allocations: 1.527 MB / 0.6615 GB, free: 8.734 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007063/0.6552, allocations: 0.9599 MB / 0.6624 GB, free: 7.75 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0005517/0.6557, allocations: 274.8 kB / 0.6627 GB, free: 7.484 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001354/0.6559, allocations: 47.42 kB / 0.6627 GB, free: 7.438 MB / 494.1 MB Notification: Performance of SimCode: time 6.01e-07/0.6559, allocations: 0 / 0.6627 GB, free: 7.438 MB / 494.1 MB Notification: Performance of Templates: time 0.06281/0.7187, allocations: 39.56 MB / 0.7014 GB, free: 15.98 MB / 0.5294 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins/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: 8.317392230033875]