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.0009131/0.0009131, allocations: 80.8 kB / 21.49 MB, free: 2.992 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.0009395/0.0009395, allocations: 168.8 kB / 24.91 MB, free: 9.191 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.9237/0.9237, allocations: 177.1 MB / 205.3 MB, free: 5.496 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.2295/0.2295, allocations: 34.26 MB / 296.1 MB, free: 0.7109 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 1.313e-06/1.313e-06, allocations: 0 / 325.2 MB, free: 7.695 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.365e-05/1.496e-05, allocations: 5.641 kB / 325.2 MB, free: 7.691 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.01144/0.01146, allocations: 14.81 MB / 340 MB, free: 8.824 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.009188/0.02065, allocations: 11.85 MB / 351.9 MB, free: 12.93 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001859/0.02083, allocations: 15.81 kB / 351.9 MB, free: 12.92 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003665/0.0212, allocations: 135 kB / 352 MB, free: 12.79 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006023/0.02722, allocations: 3.736 MB / 355.8 MB, free: 9.035 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003757/0.03098, allocations: 2.086 MB / 357.9 MB, free: 6.941 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007307/0.03171, allocations: 0.9274 MB / 358.8 MB, free: 6.012 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002723/0.03198, allocations: 229 kB / 359 MB, free: 5.785 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000599/0.03258, allocations: 0.5494 MB / 359.6 MB, free: 5.234 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002152/0.0328, allocations: 227.3 kB / 359.8 MB, free: 5.012 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 3.927e-05/0.03284, allocations: 32 kB / 359.8 MB, free: 4.98 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00729/0.04013, allocations: 6.77 MB / 366.6 MB, free: 14.2 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 9.346e-05/0.04022, allocations: 107.6 kB / 366.7 MB, free: 14.1 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001154/0.04033, allocations: 159.6 kB / 366.8 MB, free: 13.94 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004971/0.04531, allocations: 5.231 MB / 372.1 MB, free: 8.699 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.04531, allocations: 0 / 372.1 MB, free: 8.699 MB / 346.7 MB Notification: Performance of FrontEnd: time 7.41e-07/0.04531, allocations: 0 / 372.1 MB, free: 8.699 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.348e-06/0.04531, allocations: 0 / 372.1 MB, free: 8.699 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.001446/0.04676, allocations: 1.108 MB / 373.2 MB, free: 7.562 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.894e-05/0.04679, allocations: 12.03 kB / 373.2 MB, free: 7.551 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008799/0.04767, allocations: 339.8 kB / 373.5 MB, free: 7.219 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002991/0.04797, allocations: 288.5 kB / 373.8 MB, free: 6.906 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.476e-05/0.04799, allocations: 25.03 kB / 373.8 MB, free: 6.883 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.474e-05/0.04803, allocations: 28.38 kB / 373.9 MB, free: 6.855 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000719/0.04875, allocations: 0.6715 MB / 374.5 MB, free: 6.102 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.968e-06/0.04876, allocations: 192 / 374.5 MB, free: 6.102 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.398e-05/0.04878, allocations: 15.94 kB / 374.5 MB, free: 6.086 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.795e-06/0.04879, allocations: 8 kB / 374.6 MB, free: 6.078 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004811/0.04927, allocations: 325.8 kB / 374.9 MB, free: 5.762 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.001205/0.05047, allocations: 1.533 MB / 376.4 MB, free: 4.168 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006097/0.05108, allocations: 333.7 kB / 376.7 MB, free: 3.836 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.653e-05/0.05115, allocations: 56.83 kB / 376.8 MB, free: 3.777 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2688/0.32, allocations: 72.56 MB / 449.3 MB, free: 102.1 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.822e-05/0.32, allocations: 44.94 kB / 449.4 MB, free: 102 MB / 410.7 MB Notification: Performance of pre-optimization done (n=25): time 1.703e-06/0.32, allocations: 0 / 449.4 MB, free: 102 MB / 410.7 MB Notification: Performance of matching and sorting (n=25): time 0.001022/0.3211, allocations: 0.5196 MB / 449.9 MB, free: 102 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.035e-05/0.3211, allocations: 105.9 kB / 450 MB, free: 101.9 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001328/0.3212, allocations: 257 kB / 450.3 MB, free: 101.7 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.784e-05/0.3212, allocations: 38.58 kB / 450.3 MB, free: 101.7 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.424e-05/0.3213, allocations: 187.2 kB / 450.5 MB, free: 101.6 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.337e-05/0.3213, allocations: 88.23 kB / 450.6 MB, free: 101.6 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.11e-05/0.3214, allocations: 66.91 kB / 450.6 MB, free: 101.6 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.252e-05/0.3214, allocations: 343.9 kB / 451 MB, free: 101.3 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.841e-05/0.3215, allocations: 44.7 kB / 451 MB, free: 101.3 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.901e-05/0.3216, allocations: 207.4 kB / 451.2 MB, free: 101.1 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001421/0.3217, allocations: 212.1 kB / 451.4 MB, free: 101 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.3217, allocations: 0 / 451.4 MB, free: 101 MB / 410.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0001883/0.3219, allocations: 224.7 kB / 451.6 MB, free: 101 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.349e-05/0.3219, allocations: 7.594 kB / 451.6 MB, free: 101 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.3219, allocations: 0 / 451.6 MB, free: 101 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.874e-05/0.322, allocations: 7.781 kB / 451.7 MB, free: 101 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001388/0.3221, allocations: 69.73 kB / 451.7 MB, free: 101 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.939e-06/0.3221, allocations: 6.547 kB / 451.7 MB, free: 101 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001112/0.3222, allocations: 43.36 kB / 451.8 MB, free: 100.9 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.567e-05/0.3222, allocations: 8.438 kB / 451.8 MB, free: 100.9 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_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 8.258e-05/0.3223, allocations: 142.4 kB / 451.9 MB, free: 100.8 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.684e-05/0.3224, allocations: 26.06 kB / 451.9 MB, free: 100.8 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006753/0.323, allocations: 1.11 MB / 453.1 MB, free: 100.6 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.501e-05/0.323, allocations: 32.45 kB / 453.1 MB, free: 100.6 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.684e-06/0.323, allocations: 4 kB / 453.1 MB, free: 100.6 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.323, allocations: 0 / 453.1 MB, free: 100.6 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003617/0.3234, allocations: 0.5512 MB / 453.6 MB, free: 100.4 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.3234, allocations: 0 / 453.6 MB, free: 100.4 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001036/0.3235, allocations: 53.86 kB / 453.7 MB, free: 100.4 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.3235, allocations: 2.031 kB / 453.7 MB, free: 100.4 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.909e-06/0.3235, allocations: 7.125 kB / 453.7 MB, free: 100.4 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.3235, allocations: 1.875 kB / 453.7 MB, free: 100.4 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.3235, allocations: 0 / 453.7 MB, free: 100.4 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000385/0.3239, allocations: 0.665 MB / 454.4 MB, free: 100.2 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.298e-05/0.324, allocations: 86.61 kB / 454.5 MB, free: 100.2 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.598e-05/0.324, allocations: 22.67 kB / 454.5 MB, free: 100.2 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.645e-05/0.3241, allocations: 18.09 kB / 454.5 MB, free: 100.2 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.254e-05/0.3241, allocations: 32.92 kB / 454.5 MB, free: 100.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.383e-05/0.3242, allocations: 9.875 kB / 454.5 MB, free: 100.2 MB / 410.7 MB Notification: Performance of sorting global known variables: time 8.821e-05/0.3242, allocations: 154.1 kB / 454.7 MB, free: 100.2 MB / 410.7 MB Notification: Performance of sort global known variables: time 6e-08/0.3242, allocations: 2.078 kB / 454.7 MB, free: 100.2 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001728/0.326, allocations: 1.01 MB / 455.7 MB, free: 100.1 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.00225/0.3282, allocations: 1.359 MB / 457.1 MB, free: 99.96 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002599/0.3285, allocations: 251.9 kB / 457.3 MB, free: 99.94 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.293e-06/0.3285, allocations: 7.062 kB / 457.3 MB, free: 99.94 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001333/0.3286, allocations: 200.3 kB / 457.5 MB, free: 99.93 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004724/0.3291, allocations: 217.1 kB / 457.7 MB, free: 99.84 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001226/0.3303, allocations: 1.324 MB / 459 MB, free: 98.73 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.038e-05/0.3304, allocations: 190 kB / 459.2 MB, free: 98.56 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002192/0.3306, allocations: 262.1 kB / 459.5 MB, free: 98.42 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002599/0.3309, allocations: 203.4 kB / 459.7 MB, free: 98.26 MB / 410.7 MB Notification: Performance of SimCode: time 6.71e-07/0.3309, allocations: 0 / 459.7 MB, free: 98.26 MB / 410.7 MB Notification: Performance of Templates: time 0.03501/0.3659, allocations: 44.26 MB / 0.4921 GB, free: 56.69 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: 4.679678953252733]