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.0009586/0.0009586, allocations: 79.59 kB / 21.18 MB, free: 3.383 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.001881/0.001881, allocations: 161 kB / 24.56 MB, free: 12 kB / 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.9469/0.9469, allocations: 177.1 MB / 205 MB, free: 5.613 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.2388/0.2388, allocations: 34.26 MB / 295.7 MB, free: 0.7695 MB / 266.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 2.605e-06/2.605e-06, allocations: 0 / 378 MB, free: 2.648 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.879e-05/3.14e-05, allocations: 10.19 kB / 378 MB, free: 2.637 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.01933/0.01937, allocations: 14.84 MB / 392.9 MB, free: 3.73 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.01331/0.03267, allocations: 11.87 MB / 404.7 MB, free: 7.82 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002852/0.03296, allocations: 11.88 kB / 404.8 MB, free: 7.809 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005072/0.03347, allocations: 143 kB / 404.9 MB, free: 7.668 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007708/0.04117, allocations: 3.709 MB / 408.6 MB, free: 3.945 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004683/0.04586, allocations: 2.063 MB / 410.7 MB, free: 1.875 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.001019/0.04688, allocations: 0.9274 MB / 411.6 MB, free: 0.9414 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006704/0.04755, allocations: 240.9 kB / 411.8 MB, free: 0.7031 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007563/0.0483, allocations: 0.5416 MB / 412.4 MB, free: 164 kB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003164/0.04862, allocations: 235.3 kB / 412.6 MB, free: 15.93 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 5.252e-05/0.04867, allocations: 36 kB / 412.6 MB, free: 15.89 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01029/0.05896, allocations: 6.766 MB / 419.4 MB, free: 9.121 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001495/0.05911, allocations: 107.6 kB / 419.5 MB, free: 9.016 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002171/0.05933, allocations: 159.7 kB / 419.7 MB, free: 8.859 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0108/0.07012, allocations: 5.234 MB / 424.9 MB, free: 3.613 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.548e-06/0.07013, allocations: 0 / 424.9 MB, free: 3.613 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.07013, allocations: 0 / 424.9 MB, free: 3.613 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.008e-05/0.07014, allocations: 0 / 424.9 MB, free: 3.613 MB / 394.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.003207/0.07335, allocations: 1.233 MB / 426.1 MB, free: 2.34 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.67e-05/0.0734, allocations: 8.031 kB / 426.1 MB, free: 2.332 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001065/0.07446, allocations: 303.7 kB / 426.4 MB, free: 2.035 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000505/0.07497, allocations: 323.3 kB / 426.8 MB, free: 1.695 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.65e-05/0.075, allocations: 33.02 kB / 426.8 MB, free: 1.664 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.587e-05/0.07505, allocations: 40.3 kB / 426.8 MB, free: 1.625 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009688/0.07602, allocations: 0.7021 MB / 427.5 MB, free: 0.8281 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.213e-05/0.07603, allocations: 192 / 427.5 MB, free: 0.8281 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.176e-05/0.07606, allocations: 19.94 kB / 427.5 MB, free: 0.8086 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.316e-05/0.07608, allocations: 8 kB / 427.6 MB, free: 0.8008 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006671/0.07674, allocations: 367.4 kB / 427.9 MB, free: 452 kB / 394.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.002139/0.07888, allocations: 2.261 MB / 430.2 MB, free: 14.09 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008409/0.07972, allocations: 366.6 kB / 430.5 MB, free: 13.72 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001292/0.07985, allocations: 79.64 kB / 430.6 MB, free: 13.64 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02282/0.1027, allocations: 13.22 MB / 443.8 MB, free: 416 kB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.458e-05/0.1027, allocations: 41.39 kB / 443.9 MB, free: 364 kB / 410.7 MB Notification: Performance of pre-optimization done (n=25): time 2.906e-06/0.1027, allocations: 3.938 kB / 443.9 MB, free: 360 kB / 410.7 MB Notification: Performance of matching and sorting (n=25): time 0.1656/0.2683, allocations: 0.5835 MB / 444.5 MB, free: 77.58 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.824e-05/0.2684, allocations: 113.3 kB / 444.6 MB, free: 77.45 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002798/0.2686, allocations: 317.8 kB / 444.9 MB, free: 77.28 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.187e-05/0.2687, allocations: 31.83 kB / 444.9 MB, free: 77.25 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001411/0.2688, allocations: 264.4 kB / 445.2 MB, free: 77.12 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.609e-05/0.2689, allocations: 87.72 kB / 445.3 MB, free: 77.09 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001062/0.269, allocations: 78.5 kB / 445.3 MB, free: 77.06 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.382e-05/0.2691, allocations: 0.5129 MB / 445.8 MB, free: 76.57 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001091/0.2692, allocations: 64.77 kB / 445.9 MB, free: 76.57 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001606/0.2693, allocations: 244.2 kB / 446.2 MB, free: 76.36 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002411/0.2696, allocations: 256.7 kB / 446.4 MB, free: 76.23 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.529e-06/0.2696, allocations: 0.5625 kB / 446.4 MB, free: 76.23 MB / 410.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003804/0.27, allocations: 303.2 kB / 446.7 MB, free: 76.18 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.334e-05/0.27, allocations: 7.688 kB / 446.7 MB, free: 76.18 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.798e-06/0.27, allocations: 6.75 kB / 446.7 MB, free: 76.18 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.264e-05/0.27, allocations: 2.5 kB / 446.7 MB, free: 76.18 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002065/0.2702, allocations: 77.59 kB / 446.8 MB, free: 76.18 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.181e-05/0.2702, allocations: 10.91 kB / 446.8 MB, free: 76.18 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001486/0.2704, allocations: 33.2 kB / 446.8 MB, free: 76.17 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.106e-05/0.2704, allocations: 15.56 kB / 446.8 MB, free: 76.17 MB / 410.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_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.0001115/0.2705, allocations: 175.9 kB / 447 MB, free: 76.01 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.813e-05/0.2706, allocations: 52.06 kB / 447.1 MB, free: 75.99 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001103/0.2717, allocations: 1.229 MB / 448.3 MB, free: 75.79 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.193e-05/0.2717, allocations: 30.34 kB / 448.3 MB, free: 75.79 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.598e-06/0.2717, allocations: 0 / 448.3 MB, free: 75.79 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.992e-06/0.2717, allocations: 6.156 kB / 448.3 MB, free: 75.79 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005149/0.2722, allocations: 0.6615 MB / 449 MB, free: 75.61 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/0.2722, allocations: 0 / 449 MB, free: 75.61 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000151/0.2724, allocations: 63.59 kB / 449.1 MB, free: 75.61 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.017e-06/0.2724, allocations: 0 / 449.1 MB, free: 75.61 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.727e-05/0.2724, allocations: 8.375 kB / 449.1 MB, free: 75.61 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.488e-06/0.2724, allocations: 2.875 kB / 449.1 MB, free: 75.61 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.237e-06/0.2724, allocations: 3.625 kB / 449.1 MB, free: 75.61 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00069/0.2731, allocations: 0.8261 MB / 449.9 MB, free: 75.33 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.711e-05/0.2732, allocations: 89.86 kB / 450 MB, free: 75.29 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.372e-05/0.2732, allocations: 23.06 kB / 450 MB, free: 75.28 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000133/0.2733, allocations: 22.2 kB / 450 MB, free: 75.28 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.659e-05/0.2734, allocations: 34.75 kB / 450.1 MB, free: 75.28 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.663e-05/0.2735, allocations: 11.7 kB / 450.1 MB, free: 75.28 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00017/0.2736, allocations: 301.1 kB / 450.4 MB, free: 75.15 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.2736, allocations: 0 / 450.4 MB, free: 75.15 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0021/0.2757, allocations: 1.006 MB / 451.4 MB, free: 75.14 MB / 410.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.002752/0.2785, allocations: 1.287 MB / 452.7 MB, free: 75.05 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004217/0.2789, allocations: 316.8 kB / 453 MB, free: 75.02 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.2789, allocations: 0 / 453 MB, free: 75.02 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002115/0.2791, allocations: 258.4 kB / 453.2 MB, free: 75.01 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006125/0.2797, allocations: 218.5 kB / 453.4 MB, free: 75 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001599/0.2813, allocations: 1.342 MB / 454.8 MB, free: 74.45 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000102/0.2814, allocations: 178.2 kB / 455 MB, free: 74.37 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002673/0.2817, allocations: 276 kB / 455.2 MB, free: 74.37 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.287e-05/0.2818, allocations: 41.58 kB / 455.3 MB, free: 74.36 MB / 410.7 MB Notification: Performance of SimCode: time 1.283e-06/0.2818, allocations: 0 / 455.3 MB, free: 74.36 MB / 410.7 MB Notification: Performance of Templates: time 0.04786/0.3296, allocations: 46.26 MB / 0.4898 GB, free: 59.68 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.5374060571193695]