Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001059/0.001059, 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.001333/0.001333, allocations: 169.1 kB / 24.91 MB, free: 9.199 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.9549/0.9549, allocations: 177.1 MB / 205.3 MB, free: 5.484 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2552/0.2552, allocations: 32.8 MB / 294.6 MB, free: 1.246 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.0.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.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.062e-06/1.062e-06, allocations: 0 / 323.3 MB, free: 9.652 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.365e-05/1.471e-05, allocations: 4.703 kB / 323.3 MB, free: 9.648 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.01246/0.01247, allocations: 14.84 MB / 338.1 MB, free: 10.75 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01073/0.0232, allocations: 11.85 MB / 350 MB, free: 14.86 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001775/0.02338, allocations: 15.81 kB / 350 MB, free: 14.84 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004015/0.02378, allocations: 139 kB / 350.1 MB, free: 14.7 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005697/0.02948, allocations: 3.346 MB / 353.5 MB, free: 11.34 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003498/0.03297, allocations: 1.949 MB / 355.4 MB, free: 9.387 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006925/0.03367, allocations: 0.9274 MB / 356.3 MB, free: 8.457 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002871/0.03395, allocations: 232.9 kB / 356.6 MB, free: 8.227 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006189/0.03457, allocations: 0.5494 MB / 357.1 MB, free: 7.676 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000213/0.03479, allocations: 227.3 kB / 357.3 MB, free: 7.453 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 3.826e-05/0.03482, allocations: 36 kB / 357.4 MB, free: 7.418 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00891/0.04373, allocations: 7.245 MB / 364.6 MB, free: 172 kB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 9.819e-05/0.04383, allocations: 103.7 kB / 364.7 MB, free: 68 kB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001293/0.04396, allocations: 159.7 kB / 364.9 MB, free: 15.91 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004873/0.04883, allocations: 5.242 MB / 370.1 MB, free: 10.66 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.04884, allocations: 0 / 370.1 MB, free: 10.66 MB / 346.7 MB Notification: Performance of FrontEnd: time 8.21e-07/0.04884, allocations: 0 / 370.1 MB, free: 10.66 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.599e-06/0.04884, allocations: 0 / 370.1 MB, free: 10.66 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.001404/0.05025, allocations: 1.108 MB / 371.2 MB, free: 9.52 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.053e-05/0.05028, allocations: 8.031 kB / 371.2 MB, free: 9.512 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000988/0.05126, allocations: 343.8 kB / 371.6 MB, free: 9.176 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000306/0.05157, allocations: 276.6 kB / 371.8 MB, free: 8.875 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.514e-05/0.0516, allocations: 25.03 kB / 371.9 MB, free: 8.852 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.189e-05/0.05163, allocations: 36.38 kB / 371.9 MB, free: 8.816 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007912/0.05242, allocations: 0.6744 MB / 372.6 MB, free: 8.059 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.06e-05/0.05243, allocations: 192 / 372.6 MB, free: 8.059 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.427e-05/0.05245, allocations: 15.94 kB / 372.6 MB, free: 8.043 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.255e-06/0.05246, allocations: 8 kB / 372.6 MB, free: 8.035 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005279/0.05299, allocations: 325.7 kB / 372.9 MB, free: 7.719 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.00129/0.05428, allocations: 1.518 MB / 374.4 MB, free: 6.141 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006892/0.05497, allocations: 350.1 kB / 374.8 MB, free: 5.789 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.022e-05/0.05504, allocations: 52.83 kB / 374.8 MB, free: 5.734 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2681/0.3231, allocations: 72.56 MB / 447.4 MB, free: 104.1 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.861e-05/0.3232, allocations: 38 kB / 447.4 MB, free: 104.1 MB / 410.7 MB Notification: Performance of pre-optimization done (n=25): time 2.094e-06/0.3232, allocations: 0 / 447.4 MB, free: 104.1 MB / 410.7 MB Notification: Performance of matching and sorting (n=25): time 0.001188/0.3244, allocations: 0.5258 MB / 447.9 MB, free: 104.1 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.869e-05/0.3244, allocations: 105.7 kB / 448 MB, free: 103.9 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001463/0.3245, allocations: 260.3 kB / 448.3 MB, free: 103.8 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.751e-05/0.3246, allocations: 29.39 kB / 448.3 MB, free: 103.8 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.981e-05/0.3246, allocations: 185.4 kB / 448.5 MB, free: 103.7 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.497e-05/0.3247, allocations: 91.19 kB / 448.6 MB, free: 103.7 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.416e-05/0.3247, allocations: 65.2 kB / 448.7 MB, free: 103.7 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.618e-05/0.3248, allocations: 339.8 kB / 449 MB, free: 103.4 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.132e-05/0.3248, allocations: 49.58 kB / 449 MB, free: 103.4 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001054/0.3249, allocations: 198.6 kB / 449.2 MB, free: 103.2 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001511/0.3251, allocations: 215.5 kB / 449.5 MB, free: 103.1 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.3251, allocations: 0 / 449.5 MB, free: 103.1 MB / 410.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0001967/0.3253, allocations: 227.7 kB / 449.7 MB, free: 103.1 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.326e-05/0.3253, allocations: 5.812 kB / 449.7 MB, free: 103.1 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.783e-06/0.3253, allocations: 3.562 kB / 449.7 MB, free: 103.1 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.316e-05/0.3253, allocations: 2.719 kB / 449.7 MB, free: 103.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001562/0.3255, allocations: 74.11 kB / 449.8 MB, free: 103.1 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.508e-06/0.3255, allocations: 13.72 kB / 449.8 MB, free: 103.1 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001068/0.3256, allocations: 39.66 kB / 449.8 MB, free: 103 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.692e-05/0.3256, allocations: 12.72 kB / 449.8 MB, free: 103 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 7.996e-05/0.3257, allocations: 135.7 kB / 450 MB, free: 102.9 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.121e-05/0.3257, allocations: 31.58 kB / 450 MB, free: 102.9 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006871/0.3264, allocations: 1.114 MB / 451.1 MB, free: 102.7 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.546e-05/0.3264, allocations: 28.75 kB / 451.1 MB, free: 102.7 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.313e-06/0.3264, allocations: 0 / 451.1 MB, free: 102.7 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.549e-06/0.3264, allocations: 3.141 kB / 451.1 MB, free: 102.7 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003763/0.3268, allocations: 0.5468 MB / 451.7 MB, free: 102.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.3268, allocations: 0 / 451.7 MB, free: 102.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001155/0.3269, allocations: 54.91 kB / 451.7 MB, free: 102.5 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.3269, allocations: 6.5 kB / 451.7 MB, free: 102.5 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.191e-05/0.3269, allocations: 7.453 kB / 451.7 MB, free: 102.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.3269, allocations: 10.62 kB / 451.8 MB, free: 102.5 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.3269, allocations: 0 / 451.8 MB, free: 102.5 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003829/0.3273, allocations: 0.6549 MB / 452.4 MB, free: 102.3 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.828e-05/0.3274, allocations: 83.41 kB / 452.5 MB, free: 102.3 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.286e-05/0.3274, allocations: 32.64 kB / 452.5 MB, free: 102.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.706e-05/0.3275, allocations: 16.88 kB / 452.5 MB, free: 102.3 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.407e-05/0.3276, allocations: 36.08 kB / 452.6 MB, free: 102.3 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.235e-05/0.3276, allocations: 3.375 kB / 452.6 MB, free: 102.3 MB / 410.7 MB Notification: Performance of sorting global known variables: time 9.14e-05/0.3277, allocations: 164.3 kB / 452.7 MB, free: 102.2 MB / 410.7 MB Notification: Performance of sort global known variables: time 6e-08/0.3277, allocations: 0 / 452.7 MB, free: 102.2 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001662/0.3293, allocations: 1.013 MB / 453.8 MB, free: 102.2 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.002233/0.3316, allocations: 1.352 MB / 455.1 MB, free: 102.1 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002535/0.3318, allocations: 246.4 kB / 455.3 MB, free: 102 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.993e-06/0.3318, allocations: 6.375 kB / 455.4 MB, free: 102 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001371/0.332, allocations: 202.9 kB / 455.5 MB, free: 102 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004713/0.3324, allocations: 213 kB / 455.8 MB, free: 102 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001215/0.3336, allocations: 1.332 MB / 457.1 MB, free: 101.4 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.45e-05/0.3337, allocations: 191.3 kB / 457.3 MB, free: 101.3 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002182/0.3339, allocations: 255.6 kB / 457.5 MB, free: 101.3 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002679/0.3342, allocations: 202.7 kB / 457.7 MB, free: 101.3 MB / 410.7 MB Notification: Performance of SimCode: time 6.61e-07/0.3342, allocations: 0 / 457.7 MB, free: 101.3 MB / 410.7 MB Notification: Performance of Templates: time 0.03349/0.3677, allocations: 44.26 MB / 0.4902 GB, free: 60.14 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.626672343816608]