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.0009943/0.0009943, allocations: 81.97 kB / 22.21 MB, free: 2.289 MB / 18.57 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.001758/0.001758, allocations: 167.9 kB / 25.61 MB, free: 8.582 MB / 18.57 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 0.9143/0.9143, allocations: 177.1 MB / 206 MB, free: 4.473 MB / 186.7 MB " [Timeout remaining time 179] 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.1541/0.1541, allocations: 34.26 MB / 296.9 MB, free: 13.91 MB / 282.7 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.[0-9,]+..m_flow|SourceP1.ports.[0-9,]+..p|SourceP1.ports.[0-9,]+..h_outflow|V1.port_b.m_flow|V1.port_b.p|V1.port_b.h_outflow|SinkP1.ports.[0-9,]+..m_flow|SinkP1.ports.[0-9,]+..p|SinkP1.ports.[0-9,]+..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.[0-9,]+..m_flow|SourceP1.ports.[0-9,]+..p|SourceP1.ports.[0-9,]+..h_outflow|V1.port_b.m_flow|V1.port_b.p|V1.port_b.h_outflow|SinkP1.ports.[0-9,]+..m_flow|SinkP1.ports.[0-9,]+..p|SinkP1.ports.[0-9,]+..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 1.092e-06/1.092e-06, allocations: 0 / 379.3 MB, free: 23.4 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.177e-06/1.027e-05, allocations: 2.312 kB / 379.3 MB, free: 23.39 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.00877/0.00878, allocations: 14.67 MB / 394 MB, free: 8.664 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.007697/0.01648, allocations: 11.68 MB / 405.6 MB, free: 12.94 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002007/0.01668, allocations: 15.88 kB / 405.7 MB, free: 12.93 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003772/0.01705, allocations: 138.9 kB / 405.8 MB, free: 12.79 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005537/0.02259, allocations: 3.701 MB / 409.5 MB, free: 9.07 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003053/0.02564, allocations: 2.074 MB / 411.6 MB, free: 6.988 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006597/0.0263, allocations: 0.9313 MB / 412.5 MB, free: 6.055 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002515/0.02656, allocations: 229 kB / 412.7 MB, free: 5.828 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005527/0.02711, allocations: 0.5455 MB / 413.3 MB, free: 5.281 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002136/0.02732, allocations: 231.3 kB / 413.5 MB, free: 5.055 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 3.93e-05/0.02736, allocations: 32 kB / 413.5 MB, free: 5.023 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006969/0.03433, allocations: 6.766 MB / 420.3 MB, free: 14.25 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 8.98e-05/0.03442, allocations: 107.6 kB / 420.4 MB, free: 14.14 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001182/0.03454, allocations: 155.7 kB / 420.5 MB, free: 13.99 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004407/0.03895, allocations: 5.238 MB / 425.8 MB, free: 8.742 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.03895, allocations: 0 / 425.8 MB, free: 8.742 MB / 346.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.03895, allocations: 0 / 425.8 MB, free: 8.742 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.119e-06/0.03895, allocations: 0 / 425.8 MB, free: 8.742 MB / 346.7 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.001614/0.04057, allocations: 1.241 MB / 427 MB, free: 7.461 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.849e-05/0.0406, allocations: 12.03 kB / 427 MB, free: 7.449 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009105/0.04151, allocations: 295.8 kB / 427.3 MB, free: 7.16 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003196/0.04183, allocations: 327.3 kB / 427.6 MB, free: 6.809 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.573e-05/0.04185, allocations: 28.97 kB / 427.7 MB, free: 6.781 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.192e-05/0.04188, allocations: 28.38 kB / 427.7 MB, free: 6.754 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007948/0.04268, allocations: 0.6903 MB / 428.4 MB, free: 5.969 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.537e-05/0.0427, allocations: 8.125 kB / 428.4 MB, free: 5.961 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.878e-05/0.04273, allocations: 19.94 kB / 428.4 MB, free: 5.941 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.859e-06/0.04274, allocations: 12 kB / 428.4 MB, free: 5.93 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005727/0.04332, allocations: 324.1 kB / 428.7 MB, free: 5.613 MB / 346.7 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.001496/0.04481, allocations: 2.18 MB / 430.9 MB, free: 3.355 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006778/0.04549, allocations: 362.5 kB / 431.3 MB, free: 2.988 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.961e-05/0.04557, allocations: 63.66 kB / 431.3 MB, free: 2.922 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02009/0.06566, allocations: 11.43 MB / 442.8 MB, free: 7.484 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.679e-05/0.06569, allocations: 41.39 kB / 442.8 MB, free: 7.434 MB / 362.7 MB Notification: Performance of pre-optimization done (n=25): time 1.873e-06/0.06569, allocations: 0 / 442.8 MB, free: 7.434 MB / 362.7 MB Notification: Performance of matching and sorting (n=25): time 0.001088/0.06678, allocations: 0.5674 MB / 443.4 MB, free: 6.859 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.356e-05/0.06682, allocations: 106.8 kB / 443.5 MB, free: 6.73 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001743/0.06699, allocations: 322.1 kB / 443.8 MB, free: 6.398 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.917e-05/0.06701, allocations: 29.7 kB / 443.8 MB, free: 6.363 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001076/0.06712, allocations: 259.1 kB / 444.1 MB, free: 6.105 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.615e-05/0.06717, allocations: 87.2 kB / 444.2 MB, free: 6.02 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.559e-05/0.06724, allocations: 79.27 kB / 444.2 MB, free: 5.934 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001192/0.06736, allocations: 0.5195 MB / 444.8 MB, free: 5.402 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.687e-05/0.06743, allocations: 55.92 kB / 444.8 MB, free: 5.348 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001394/0.06757, allocations: 240.5 kB / 445 MB, free: 5.047 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001952/0.06776, allocations: 238.6 kB / 445.3 MB, free: 4.77 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.307e-06/0.06777, allocations: 4 kB / 445.3 MB, free: 4.766 MB / 362.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000284/0.06805, allocations: 279.9 kB / 445.6 MB, free: 4.488 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.24e-05/0.06806, allocations: 8 kB / 445.6 MB, free: 4.48 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.06807, allocations: 0 / 445.6 MB, free: 4.48 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.054e-05/0.06808, allocations: 11.94 kB / 445.6 MB, free: 4.469 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001505/0.06823, allocations: 75.89 kB / 445.7 MB, free: 4.395 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.328e-06/0.06823, allocations: 4.312 kB / 445.7 MB, free: 4.391 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001028/0.06834, allocations: 35.83 kB / 445.7 MB, free: 4.355 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.69e-05/0.06835, allocations: 16 kB / 445.7 MB, free: 4.34 MB / 362.7 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_a.phase,V1.state_b.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.0001009/0.06845, allocations: 184.3 kB / 445.9 MB, free: 4.148 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.29e-05/0.06851, allocations: 39.81 kB / 445.9 MB, free: 4.109 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008439/0.06935, allocations: 1.127 MB / 447.1 MB, free: 2.969 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.716e-05/0.06937, allocations: 27.95 kB / 447.1 MB, free: 2.941 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.492e-06/0.06937, allocations: 0 / 447.1 MB, free: 2.941 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.97e-06/0.06937, allocations: 3.984 kB / 447.1 MB, free: 2.938 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004248/0.0698, allocations: 0.6024 MB / 447.7 MB, free: 2.309 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.0698, allocations: 0 / 447.7 MB, free: 2.309 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001199/0.06992, allocations: 55.95 kB / 447.7 MB, free: 2.254 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.06992, allocations: 0 / 447.7 MB, free: 2.254 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.269e-05/0.06994, allocations: 11.94 kB / 447.8 MB, free: 2.242 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.06994, allocations: 4 kB / 447.8 MB, free: 2.238 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.06994, allocations: 0 / 447.8 MB, free: 2.238 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005338/0.07047, allocations: 0.7763 MB / 448.5 MB, free: 1.445 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.019e-05/0.07052, allocations: 87.14 kB / 448.6 MB, free: 1.359 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.53e-05/0.07056, allocations: 23.84 kB / 448.6 MB, free: 1.336 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001059/0.07066, allocations: 12 kB / 448.7 MB, free: 1.324 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.853e-05/0.07072, allocations: 43.78 kB / 448.7 MB, free: 1.281 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.226e-05/0.07074, allocations: 4 kB / 448.7 MB, free: 1.277 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001416/0.07088, allocations: 291 kB / 449 MB, free: 0.9922 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.07088, allocations: 0 / 449 MB, free: 0.9922 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001649/0.07253, allocations: 1.01 MB / 450 MB, free: 15.98 MB / 378.7 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.002452/0.07498, allocations: 1.313 MB / 451.3 MB, free: 14.65 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000299/0.07528, allocations: 268.5 kB / 451.6 MB, free: 14.39 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.07528, allocations: 4 kB / 451.6 MB, free: 14.38 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001816/0.07546, allocations: 227.4 kB / 451.8 MB, free: 14.16 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005709/0.07603, allocations: 228 kB / 452 MB, free: 13.95 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00132/0.07735, allocations: 1.32 MB / 453.3 MB, free: 12.59 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001/0.07745, allocations: 181.5 kB / 453.5 MB, free: 12.39 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002424/0.07769, allocations: 262.8 kB / 453.8 MB, free: 12.14 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002959/0.07799, allocations: 246 kB / 454 MB, free: 11.89 MB / 378.7 MB Notification: Performance of SimCode: time 8.02e-07/0.07799, allocations: 0 / 454 MB, free: 11.89 MB / 378.7 MB Notification: Performance of Templates: time 0.1578/0.2358, allocations: 45.35 MB / 499.4 MB, free: 99.42 MB / 410.7 MB " [Timeout remaining time 660] 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.265020862221718]