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.0009447/0.0009447, allocations: 71.77 kB / 21.69 MB, free: 2.855 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.0009891/0.0009891, allocations: 166.6 kB / 24.99 MB, free: 8.789 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.998/0.998, allocations: 177.1 MB / 205.3 MB, free: 5.562 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.2531/0.2531, allocations: 34.26 MB / 296 MB, free: 0.7578 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.854e-06/1.854e-06, allocations: 0 / 378 MB, free: 2.961 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.9e-05/2.085e-05, allocations: 6.312 kB / 378 MB, free: 2.953 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.02656/0.02658, allocations: 28.82 MB / 406.8 MB, free: 6.027 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01225/0.03882, allocations: 13.08 MB / 419.9 MB, free: 8.902 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004005/0.03922, allocations: 15.81 kB / 419.9 MB, free: 8.887 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006972/0.03992, allocations: 230.3 kB / 420.2 MB, free: 8.66 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008049/0.04797, allocations: 3.705 MB / 423.9 MB, free: 4.941 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005377/0.05335, allocations: 2.373 MB / 426.2 MB, free: 2.559 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.001138/0.05448, allocations: 0.9156 MB / 427.1 MB, free: 1.637 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004125/0.0549, allocations: 213 kB / 427.4 MB, free: 1.426 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008296/0.05573, allocations: 0.549 MB / 427.9 MB, free: 0.875 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003224/0.05605, allocations: 239.3 kB / 428.1 MB, free: 0.6406 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 4.93e-05/0.0561, allocations: 32 kB / 428.2 MB, free: 0.6094 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0105/0.0666, allocations: 6.914 MB / 435.1 MB, free: 9.688 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001655/0.06676, allocations: 107.6 kB / 435.2 MB, free: 9.582 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002311/0.067, allocations: 155.7 kB / 435.3 MB, free: 9.43 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01194/0.07894, allocations: 5.386 MB / 440.7 MB, free: 4.031 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.899e-06/0.07895, allocations: 4 kB / 440.7 MB, free: 4.027 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.665e-06/0.07895, allocations: 3.938 kB / 440.7 MB, free: 4.023 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.225e-05/0.07896, allocations: 0 / 440.7 MB, free: 4.023 MB / 410.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.003182/0.08215, allocations: 1.26 MB / 442 MB, free: 2.723 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.799e-05/0.08219, allocations: 8.031 kB / 442 MB, free: 2.715 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001263/0.08346, allocations: 307.6 kB / 442.3 MB, free: 2.414 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004493/0.08391, allocations: 323.4 kB / 442.6 MB, free: 2.074 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.172e-05/0.08394, allocations: 25.03 kB / 442.6 MB, free: 2.051 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.89e-05/0.08398, allocations: 28.38 kB / 442.7 MB, free: 2.023 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001007/0.08498, allocations: 0.706 MB / 443.4 MB, free: 1.223 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.212e-05/0.085, allocations: 8.125 kB / 443.4 MB, free: 1.215 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.395e-05/0.08503, allocations: 19.94 kB / 443.4 MB, free: 1.195 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.176e-05/0.08504, allocations: 8 kB / 443.4 MB, free: 1.188 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007248/0.08577, allocations: 367.4 kB / 443.8 MB, free: 0.8281 MB / 410.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.1568/0.2426, allocations: 2.268 MB / 446 MB, free: 101.9 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009307/0.2435, allocations: 366.1 kB / 446.4 MB, free: 101.9 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001153/0.2437, allocations: 84.64 kB / 446.5 MB, free: 101.9 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02325/0.2669, allocations: 13.2 MB / 459.7 MB, free: 100.9 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.382e-05/0.267, allocations: 41.08 kB / 459.7 MB, free: 100.9 MB / 410.7 MB Notification: Performance of pre-optimization done (n=25): time 2.966e-06/0.267, allocations: 0 / 459.7 MB, free: 100.9 MB / 410.7 MB Notification: Performance of matching and sorting (n=25): time 0.001528/0.2685, allocations: 0.6009 MB / 460.3 MB, free: 100.8 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.901e-05/0.2686, allocations: 106 kB / 460.4 MB, free: 100.6 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002195/0.2688, allocations: 314.9 kB / 460.7 MB, free: 100.4 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.228e-05/0.2688, allocations: 32.86 kB / 460.8 MB, free: 100.4 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001058/0.2689, allocations: 266.6 kB / 461 MB, free: 100.2 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.397e-05/0.2689, allocations: 86.94 kB / 461.1 MB, free: 100.2 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.551e-05/0.269, allocations: 80.55 kB / 461.2 MB, free: 100.1 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.174e-05/0.2691, allocations: 0.515 MB / 461.7 MB, free: 99.6 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001015/0.2692, allocations: 68.61 kB / 461.8 MB, free: 99.59 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001458/0.2693, allocations: 250.6 kB / 462 MB, free: 99.36 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002194/0.2696, allocations: 254.1 kB / 462.3 MB, free: 99.2 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.2696, allocations: 0 / 462.3 MB, free: 99.2 MB / 410.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003474/0.2699, allocations: 301.5 kB / 462.6 MB, free: 99.1 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.934e-05/0.2699, allocations: 6.25 kB / 462.6 MB, free: 99.1 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.104e-06/0.2699, allocations: 3.281 kB / 462.6 MB, free: 99.1 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.836e-05/0.27, allocations: 3 kB / 462.6 MB, free: 99.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001663/0.2701, allocations: 78.42 kB / 462.6 MB, free: 99.09 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.345e-06/0.2701, allocations: 10.58 kB / 462.7 MB, free: 99.08 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001195/0.2703, allocations: 40.2 kB / 462.7 MB, free: 99.07 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.741e-05/0.2703, allocations: 13.31 kB / 462.7 MB, free: 99.06 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 9.431e-05/0.2704, allocations: 174.2 kB / 462.9 MB, free: 98.89 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.889e-05/0.2704, allocations: 41.81 kB / 462.9 MB, free: 98.87 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009157/0.2713, allocations: 1.239 MB / 464.2 MB, free: 98.54 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.826e-05/0.2714, allocations: 34.97 kB / 464.2 MB, free: 98.53 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.2714, allocations: 0 / 464.2 MB, free: 98.53 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.302e-06/0.2714, allocations: 7.266 kB / 464.2 MB, free: 98.52 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004682/0.2718, allocations: 0.6606 MB / 464.9 MB, free: 98.12 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.082e-06/0.2718, allocations: 0.6094 kB / 464.9 MB, free: 98.12 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001264/0.272, allocations: 54.28 kB / 464.9 MB, free: 98.12 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.218e-06/0.272, allocations: 3.25 kB / 464.9 MB, free: 98.12 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.401e-05/0.272, allocations: 11.22 kB / 464.9 MB, free: 98.11 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.026e-06/0.272, allocations: 0.9375 kB / 464.9 MB, free: 98.11 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.272, allocations: 3.938 kB / 464.9 MB, free: 98.11 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006038/0.2726, allocations: 0.8266 MB / 465.8 MB, free: 97.76 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.282e-05/0.2726, allocations: 87.25 kB / 465.8 MB, free: 97.7 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.895e-05/0.2727, allocations: 25.78 kB / 465.9 MB, free: 97.68 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001047/0.2728, allocations: 19.2 kB / 465.9 MB, free: 97.68 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.366e-05/0.2729, allocations: 36.88 kB / 465.9 MB, free: 97.67 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.521e-05/0.2729, allocations: 12.19 kB / 465.9 MB, free: 97.67 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001706/0.273, allocations: 303.2 kB / 466.2 MB, free: 97.5 MB / 410.7 MB Notification: Performance of sort global known variables: time 7e-08/0.273, allocations: 2.906 kB / 466.2 MB, free: 97.5 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002191/0.2752, allocations: 1.016 MB / 467.3 MB, free: 97.32 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.002899/0.2781, allocations: 1.31 MB / 468.6 MB, free: 97.05 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.000569/0.2787, allocations: 314.3 kB / 468.9 MB, free: 96.99 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.2787, allocations: 0 / 468.9 MB, free: 96.99 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000293/0.279, allocations: 251.5 kB / 469.1 MB, free: 96.95 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007159/0.2797, allocations: 220.7 kB / 469.3 MB, free: 96.9 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001965/0.2817, allocations: 1.346 MB / 470.7 MB, free: 96.19 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001332/0.2818, allocations: 185.3 kB / 470.9 MB, free: 96.11 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0003475/0.2822, allocations: 272.2 kB / 471.1 MB, free: 96.09 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.469e-05/0.2822, allocations: 41.25 kB / 471.2 MB, free: 96.08 MB / 410.7 MB Notification: Performance of SimCode: time 1.583e-06/0.2822, allocations: 0 / 471.2 MB, free: 96.08 MB / 410.7 MB Notification: Performance of Templates: time 0.0449/0.3272, allocations: 40.07 MB / 0.4993 GB, free: 66.73 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.738577488111332]