Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.001387/0.001387, allocations: 80.2 kB / 20.65 MB, free: 3.844 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.001643/0.001643, allocations: 173 kB / 24.06 MB, free: 456 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9753/0.9753, allocations: 158.6 MB / 185.9 MB, free: 2.789 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1411/0.1411, allocations: 32.37 MB / 270.7 MB, free: 14.53 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.422e-06/1.422e-06, allocations: 0 / 348.1 MB, free: 9.176 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.501e-05/1.643e-05, allocations: 4.281 kB / 348.1 MB, free: 9.172 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.01084/0.01086, allocations: 14.56 MB / 362.7 MB, free: 10.55 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.009808/0.02067, allocations: 11.68 MB / 374.4 MB, free: 14.83 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002332/0.0209, allocations: 19.88 kB / 374.4 MB, free: 14.81 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004534/0.02135, allocations: 138.9 kB / 374.5 MB, free: 14.67 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006984/0.02834, allocations: 3.685 MB / 378.2 MB, free: 10.97 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00411/0.03245, allocations: 2.08 MB / 380.3 MB, free: 8.887 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008209/0.03327, allocations: 0.9314 MB / 381.2 MB, free: 7.953 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002853/0.03355, allocations: 217.1 kB / 381.4 MB, free: 7.738 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006882/0.03424, allocations: 0.5375 MB / 382 MB, free: 7.199 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002422/0.03448, allocations: 239.3 kB / 382.2 MB, free: 6.965 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 4.781e-05/0.03453, allocations: 36 kB / 382.2 MB, free: 6.93 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008096/0.04263, allocations: 6.746 MB / 389 MB, free: 180 kB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 9.691e-05/0.04273, allocations: 107.6 kB / 389.1 MB, free: 72 kB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001259/0.04285, allocations: 155.7 kB / 389.2 MB, free: 15.92 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00537/0.04822, allocations: 5.227 MB / 394.5 MB, free: 10.68 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.04823, allocations: 0 / 394.5 MB, free: 10.68 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.04823, allocations: 4 kB / 394.5 MB, free: 10.68 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.541e-06/0.04823, allocations: 0 / 394.5 MB, free: 10.68 MB / 330.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.001581/0.04981, allocations: 1.229 MB / 395.7 MB, free: 9.406 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.987e-05/0.04986, allocations: 8.031 kB / 395.7 MB, free: 9.398 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008986/0.05076, allocations: 303.7 kB / 396 MB, free: 9.102 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003667/0.05113, allocations: 327.2 kB / 396.3 MB, free: 8.75 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.005e-05/0.05116, allocations: 29.03 kB / 396.3 MB, free: 8.723 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.331e-05/0.05119, allocations: 32.38 kB / 396.4 MB, free: 8.691 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008834/0.05208, allocations: 0.6904 MB / 397.1 MB, free: 7.906 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.42e-05/0.05209, allocations: 192 / 397.1 MB, free: 7.906 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.082e-05/0.05212, allocations: 15.94 kB / 397.1 MB, free: 7.891 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.257e-05/0.05213, allocations: 11.94 kB / 397.1 MB, free: 7.879 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005383/0.05267, allocations: 328.1 kB / 397.4 MB, free: 7.559 MB / 330.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.001638/0.05431, allocations: 2.176 MB / 399.6 MB, free: 5.305 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006524/0.05496, allocations: 362.4 kB / 399.9 MB, free: 4.938 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.419e-05/0.05504, allocations: 67.64 kB / 400 MB, free: 4.867 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01823/0.07327, allocations: 11.01 MB / 411 MB, free: 9.84 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.665e-05/0.0733, allocations: 37.39 kB / 411.1 MB, free: 9.793 MB / 346.7 MB Notification: Performance of pre-optimization done (n=25): time 1.904e-06/0.07331, allocations: 0 / 411.1 MB, free: 9.793 MB / 346.7 MB Notification: Performance of matching and sorting (n=25): time 0.001155/0.07446, allocations: 0.5649 MB / 411.6 MB, free: 9.223 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.623e-05/0.07451, allocations: 110.8 kB / 411.7 MB, free: 9.09 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001935/0.0747, allocations: 314.2 kB / 412 MB, free: 8.766 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.158e-05/0.07472, allocations: 29.7 kB / 412.1 MB, free: 8.73 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001274/0.07485, allocations: 263 kB / 412.3 MB, free: 8.469 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.137e-05/0.0749, allocations: 87.27 kB / 412.4 MB, free: 8.383 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.728e-05/0.07498, allocations: 83.27 kB / 412.5 MB, free: 8.293 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001358/0.07511, allocations: 0.5234 MB / 413 MB, free: 7.758 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.849e-05/0.07518, allocations: 51.94 kB / 413.1 MB, free: 7.707 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001441/0.07533, allocations: 246.9 kB / 413.3 MB, free: 7.398 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001914/0.07552, allocations: 241.2 kB / 413.5 MB, free: 7.117 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.07552, allocations: 0 / 413.5 MB, free: 7.117 MB / 346.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0002901/0.07581, allocations: 281.3 kB / 413.8 MB, free: 6.836 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.637e-05/0.07583, allocations: 4 kB / 413.8 MB, free: 6.832 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.513e-06/0.07583, allocations: 4 kB / 413.8 MB, free: 6.828 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.444e-05/0.07585, allocations: 4 kB / 413.8 MB, free: 6.824 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001447/0.07599, allocations: 71.84 kB / 413.9 MB, free: 6.754 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.231e-06/0.076, allocations: 7.984 kB / 413.9 MB, free: 6.746 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001137/0.07611, allocations: 31.84 kB / 413.9 MB, free: 6.715 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.783e-05/0.07613, allocations: 19.98 kB / 414 MB, free: 6.695 MB / 346.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 0.0001134/0.07624, allocations: 184.5 kB / 414.1 MB, free: 6.504 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.919e-05/0.07629, allocations: 35.81 kB / 414.2 MB, free: 6.469 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008796/0.07717, allocations: 1.133 MB / 415.3 MB, free: 5.328 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.978e-05/0.07719, allocations: 31.94 kB / 415.3 MB, free: 5.297 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.412e-06/0.07719, allocations: 0 / 415.3 MB, free: 5.297 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.0772, allocations: 0 / 415.3 MB, free: 5.297 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004446/0.07764, allocations: 0.614 MB / 416 MB, free: 4.656 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.937e-06/0.07765, allocations: 0 / 416 MB, free: 4.656 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001176/0.07776, allocations: 51.97 kB / 416 MB, free: 4.605 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.07777, allocations: 0 / 416 MB, free: 4.605 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.337e-05/0.07778, allocations: 11.98 kB / 416 MB, free: 4.594 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.07778, allocations: 7.938 kB / 416 MB, free: 4.586 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.61e-07/0.07778, allocations: 0 / 416 MB, free: 4.586 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005394/0.07832, allocations: 0.7601 MB / 416.8 MB, free: 3.805 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.45e-05/0.07838, allocations: 95.16 kB / 416.9 MB, free: 3.711 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.224e-05/0.07841, allocations: 19.84 kB / 416.9 MB, free: 3.691 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.619e-05/0.07851, allocations: 19.98 kB / 416.9 MB, free: 3.672 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.628e-05/0.07856, allocations: 35.8 kB / 417 MB, free: 3.637 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.318e-05/0.07858, allocations: 8 kB / 417 MB, free: 3.629 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001501/0.07873, allocations: 283 kB / 417.2 MB, free: 3.352 MB / 346.7 MB Notification: Performance of sort global known variables: time 7e-08/0.07873, allocations: 0 / 417.2 MB, free: 3.352 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002019/0.08075, allocations: 1.006 MB / 418.2 MB, free: 2.344 MB / 346.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.002445/0.08319, allocations: 1.329 MB / 419.6 MB, free: 1.012 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003155/0.08351, allocations: 269.7 kB / 419.8 MB, free: 0.7461 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.08351, allocations: 0 / 419.8 MB, free: 0.7461 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001934/0.0837, allocations: 227.4 kB / 420.1 MB, free: 0.5195 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005688/0.08427, allocations: 223.6 kB / 420.3 MB, free: 316 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001476/0.08575, allocations: 1.304 MB / 421.6 MB, free: 14.96 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001055/0.08585, allocations: 185.5 kB / 421.8 MB, free: 14.77 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002451/0.0861, allocations: 260.4 kB / 422 MB, free: 14.51 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003023/0.0864, allocations: 254 kB / 422.3 MB, free: 14.26 MB / 362.7 MB Notification: Performance of SimCode: time 6.81e-07/0.0864, allocations: 0 / 422.3 MB, free: 14.26 MB / 362.7 MB Notification: Performance of Templates: time 0.175/0.2614, allocations: 45.08 MB / 467.3 MB, free: 53.7 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.807471856009215]