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.0008918/0.0008918, allocations: 80.92 kB / 21.49 MB, free: 2.996 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.0008902/0.0008902, allocations: 169.9 kB / 24.91 MB, free: 8.723 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.9119/0.9119, allocations: 177.1 MB / 205.3 MB, free: 5.102 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.2437/0.2437, allocations: 32.8 MB / 294.6 MB, free: 1.199 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.172e-06/1.172e-06, allocations: 0 / 323.2 MB, free: 9.746 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.212e-05/2.329e-05, allocations: 3.672 kB / 323.2 MB, free: 9.742 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.01388/0.0139, allocations: 14.8 MB / 338 MB, free: 10.88 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0101/0.024, allocations: 11.83 MB / 349.9 MB, free: 15 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002571/0.02426, allocations: 19.81 kB / 349.9 MB, free: 14.98 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004202/0.02468, allocations: 139 kB / 350 MB, free: 14.84 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006937/0.03161, allocations: 3.732 MB / 353.7 MB, free: 11.09 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003953/0.03557, allocations: 2.082 MB / 355.8 MB, free: 9.004 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008774/0.03644, allocations: 0.9391 MB / 356.8 MB, free: 8.062 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002843/0.03673, allocations: 229 kB / 357 MB, free: 7.836 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000619/0.03735, allocations: 0.5416 MB / 357.5 MB, free: 7.293 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000245/0.03759, allocations: 231.3 kB / 357.8 MB, free: 7.066 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 3.866e-05/0.03763, allocations: 32 kB / 357.8 MB, free: 7.035 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009338/0.04697, allocations: 6.766 MB / 364.6 MB, free: 268 kB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002354/0.04721, allocations: 111.6 kB / 364.7 MB, free: 156 kB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002219/0.04743, allocations: 151.7 kB / 364.8 MB, free: 4 kB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009042/0.05647, allocations: 5.235 MB / 370 MB, free: 10.75 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.673e-06/0.05648, allocations: 0 / 370 MB, free: 10.75 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.05648, allocations: 0 / 370 MB, free: 10.75 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.861e-06/0.05648, allocations: 3.938 kB / 370 MB, free: 10.75 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.002347/0.05883, allocations: 1.104 MB / 371.2 MB, free: 9.617 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.73e-05/0.05887, allocations: 12.03 kB / 371.2 MB, free: 9.605 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009492/0.05982, allocations: 339.8 kB / 371.5 MB, free: 9.273 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003815/0.0602, allocations: 284.5 kB / 371.8 MB, free: 8.965 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.208e-05/0.06023, allocations: 29.03 kB / 371.8 MB, free: 8.938 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.634e-05/0.06027, allocations: 28.38 kB / 371.8 MB, free: 8.91 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007957/0.06106, allocations: 0.6718 MB / 372.5 MB, free: 8.156 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.242e-05/0.06108, allocations: 4.188 kB / 372.5 MB, free: 8.152 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.593e-05/0.0611, allocations: 19.94 kB / 372.5 MB, free: 8.133 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.846e-06/0.06111, allocations: 8 kB / 372.5 MB, free: 8.125 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005515/0.06166, allocations: 319.5 kB / 372.8 MB, free: 7.816 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.00145/0.06311, allocations: 1.537 MB / 374.4 MB, free: 6.219 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006707/0.06378, allocations: 338 kB / 374.7 MB, free: 5.879 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.451e-05/0.06386, allocations: 56.84 kB / 374.8 MB, free: 5.82 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2881/0.352, allocations: 72.56 MB / 447.3 MB, free: 104.1 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.81e-05/0.352, allocations: 39.16 kB / 447.4 MB, free: 104 MB / 410.7 MB Notification: Performance of pre-optimization done (n=25): time 2.044e-06/0.352, allocations: 3.844 kB / 447.4 MB, free: 104 MB / 410.7 MB Notification: Performance of matching and sorting (n=25): time 0.001137/0.3532, allocations: 0.5237 MB / 447.9 MB, free: 104 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.347e-05/0.3532, allocations: 106.4 kB / 448 MB, free: 103.9 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001595/0.3534, allocations: 257.6 kB / 448.2 MB, free: 103.8 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.004e-05/0.3534, allocations: 29.52 kB / 448.3 MB, free: 103.7 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.078e-05/0.3535, allocations: 183.8 kB / 448.5 MB, free: 103.7 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.158e-05/0.3535, allocations: 90.2 kB / 448.5 MB, free: 103.6 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.117e-05/0.3536, allocations: 70.53 kB / 448.6 MB, free: 103.6 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.587e-05/0.3536, allocations: 342.6 kB / 448.9 MB, free: 103.3 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.292e-05/0.3537, allocations: 45.03 kB / 449 MB, free: 103.3 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001059/0.3538, allocations: 205.3 kB / 449.2 MB, free: 103.1 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001564/0.354, allocations: 208.1 kB / 449.4 MB, free: 103 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.354, allocations: 3.156 kB / 449.4 MB, free: 103 MB / 410.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0002243/0.3542, allocations: 223.2 kB / 449.6 MB, free: 103 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.09e-05/0.3542, allocations: 6.281 kB / 449.6 MB, free: 103 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.3542, allocations: 0 / 449.6 MB, free: 103 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.506e-05/0.3542, allocations: 9.969 kB / 449.6 MB, free: 103 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001534/0.3544, allocations: 68.11 kB / 449.7 MB, free: 103 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.488e-06/0.3544, allocations: 3.594 kB / 449.7 MB, free: 103 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001158/0.3545, allocations: 39.19 kB / 449.7 MB, free: 103 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.825e-05/0.3545, allocations: 16.69 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 9.267e-05/0.3546, allocations: 141.9 kB / 449.9 MB, free: 102.9 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.021e-05/0.3547, allocations: 29.03 kB / 449.9 MB, free: 102.9 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007938/0.3555, allocations: 1.11 MB / 451 MB, free: 102.6 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.751e-05/0.3555, allocations: 30.86 kB / 451.1 MB, free: 102.6 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.144e-06/0.3555, allocations: 4 kB / 451.1 MB, free: 102.6 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/0.3555, allocations: 3.938 kB / 451.1 MB, free: 102.6 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004179/0.3559, allocations: 0.5436 MB / 451.6 MB, free: 102.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.14e-06/0.3559, allocations: 0.625 kB / 451.6 MB, free: 102.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001188/0.356, allocations: 52.83 kB / 451.7 MB, free: 102.5 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.38e-06/0.356, allocations: 2.906 kB / 451.7 MB, free: 102.5 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.45e-05/0.356, allocations: 11.16 kB / 451.7 MB, free: 102.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.356, allocations: 6.875 kB / 451.7 MB, free: 102.5 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.356, allocations: 1.422 kB / 451.7 MB, free: 102.5 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004156/0.3565, allocations: 0.6621 MB / 452.3 MB, free: 102.2 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.907e-05/0.3565, allocations: 84.47 kB / 452.4 MB, free: 102.2 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.535e-05/0.3565, allocations: 29.03 kB / 452.5 MB, free: 102.2 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001033/0.3566, allocations: 14.67 kB / 452.5 MB, free: 102.2 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.314e-05/0.3567, allocations: 36.14 kB / 452.5 MB, free: 102.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.209e-05/0.3567, allocations: 3.594 kB / 452.5 MB, free: 102.2 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001013/0.3568, allocations: 159.9 kB / 452.7 MB, free: 102.2 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.3568, allocations: 0 / 452.7 MB, free: 102.2 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00203/0.3588, allocations: 1.009 MB / 453.7 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.002913/0.3618, allocations: 1.367 MB / 455 MB, free: 102 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004166/0.3622, allocations: 240.5 kB / 455.3 MB, free: 102 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.012e-05/0.3622, allocations: 3.719 kB / 455.3 MB, free: 102 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001525/0.3623, allocations: 205.1 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.0005623/0.3629, allocations: 217.5 kB / 455.7 MB, free: 102 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001587/0.3645, allocations: 1.327 MB / 457 MB, free: 101.4 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.8e-05/0.3646, allocations: 180.5 kB / 457.2 MB, free: 101.3 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002586/0.3648, allocations: 261.1 kB / 457.5 MB, free: 101.3 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002944/0.3651, allocations: 208 kB / 457.7 MB, free: 101.3 MB / 410.7 MB Notification: Performance of SimCode: time 1.183e-06/0.3651, allocations: 0 / 457.7 MB, free: 101.3 MB / 410.7 MB Notification: Performance of Templates: time 0.03913/0.4043, allocations: 44.26 MB / 0.4902 GB, free: 60.23 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 -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.779835578985512]