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.001465/0.001465, allocations: 115.8 kB / 20.43 MB, free: 1.457 MB / 14.72 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.00157/0.00157, allocations: 214.1 kB / 23.75 MB, free: 4.668 MB / 14.72 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 1.472/1.472, allocations: 230.6 MB / 257.5 MB, free: 8 MB / 206.1 MB " [Timeout remaining time 178] 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.232/0.232, allocations: 46.92 MB / 360.8 MB, free: 4.246 MB / 286.1 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.1..m_flow|SourceP1.ports.1..p|SourceP1.ports.1..h_outflow|V1.port_b.m_flow|V1.port_b.p|V1.port_b.h_outflow|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..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.1..m_flow|SourceP1.ports.1..p|SourceP1.ports.1..h_outflow|V1.port_b.m_flow|V1.port_b.p|V1.port_b.h_outflow|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..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 0.002173/0.002173, allocations: 63.91 kB / 0.4966 GB, free: 7.391 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3674/0.3695, allocations: 66.03 MB / 0.5611 GB, free: 4.391 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03809/0.4076, allocations: 28.66 MB / 0.5891 GB, free: 7.625 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0199/0.4275, allocations: 13.39 MB / 0.6022 GB, free: 10.19 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000546/0.4281, allocations: 15.81 kB / 0.6022 GB, free: 10.18 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001013/0.4291, allocations: 258.4 kB / 0.6024 GB, free: 9.922 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0113/0.4404, allocations: 3.666 MB / 0.606 GB, free: 6.258 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007309/0.4477, allocations: 2.402 MB / 0.6084 GB, free: 3.859 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001529/0.4492, allocations: 0.908 MB / 0.6093 GB, free: 2.949 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005146/0.4497, allocations: 212.9 kB / 0.6095 GB, free: 2.734 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001133/0.4509, allocations: 446.3 kB / 0.6099 GB, free: 2.297 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005664/0.4514, allocations: 286.7 kB / 0.6102 GB, free: 2.016 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 9.487e-05/0.4515, allocations: 36 kB / 0.6102 GB, free: 1.98 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01497/0.4665, allocations: 7.262 MB / 0.6173 GB, free: 10.71 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002048/0.4667, allocations: 99.66 kB / 0.6174 GB, free: 10.61 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003476/0.4671, allocations: 223 kB / 0.6176 GB, free: 10.39 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01087/0.4779, allocations: 4.427 MB / 0.6219 GB, free: 5.953 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.521e-06/0.4779, allocations: 0 / 0.6219 GB, free: 5.953 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.4779, allocations: 4 kB / 0.6219 GB, free: 5.949 MB / 462.1 MB Notification: Performance of Transformations before backend: time 8.746e-06/0.4779, allocations: 3.938 kB / 0.6219 GB, free: 5.945 MB / 462.1 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.003478/0.4814, allocations: 1.184 MB / 0.6231 GB, free: 4.727 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.047e-05/0.4815, allocations: 8.031 kB / 0.6231 GB, free: 4.719 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001734/0.4832, allocations: 224.4 kB / 0.6233 GB, free: 4.5 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006596/0.4839, allocations: 313.1 kB / 0.6236 GB, free: 4.164 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.037e-05/0.4839, allocations: 29.03 kB / 0.6236 GB, free: 4.137 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.893e-05/0.4839, allocations: 32.38 kB / 0.6237 GB, free: 4.105 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001611/0.4856, allocations: 0.5824 MB / 0.6242 GB, free: 3.484 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.421e-05/0.4856, allocations: 0 / 0.6242 GB, free: 3.484 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.84e-05/0.4856, allocations: 12 kB / 0.6242 GB, free: 3.473 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.411e-05/0.4856, allocations: 8 kB / 0.6242 GB, free: 3.465 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001662/0.4873, allocations: 0.5332 MB / 0.6248 GB, free: 2.93 MB / 462.1 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.003423/0.4907, allocations: 2.523 MB / 0.6272 GB, free: 200 kB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001635/0.4924, allocations: 446.2 kB / 0.6277 GB, free: 15.75 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004448/0.4928, allocations: 176.7 kB / 0.6278 GB, free: 15.57 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04709/0.5399, allocations: 13.16 MB / 0.6407 GB, free: 2.398 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.025e-05/0.5399, allocations: 30.56 kB / 0.6407 GB, free: 2.359 MB / 478.1 MB Notification: Performance of pre-optimization done (n=25): time 2.304e-06/0.5399, allocations: 4 kB / 0.6407 GB, free: 2.355 MB / 478.1 MB Notification: Performance of matching and sorting (n=25): time 0.00301/0.543, allocations: 0.7975 MB / 0.6415 GB, free: 1.551 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001001/0.5431, allocations: 106.8 kB / 0.6416 GB, free: 1.422 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003918/0.5434, allocations: 304.5 kB / 0.6419 GB, free: 1.121 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 4.239e-05/0.5435, allocations: 33.7 kB / 0.6419 GB, free: 1.082 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001677/0.5437, allocations: 208.5 kB / 0.6421 GB, free: 0.875 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.373e-05/0.5437, allocations: 83.22 kB / 0.6422 GB, free: 0.793 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001106/0.5438, allocations: 73.69 kB / 0.6423 GB, free: 0.7148 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001737/0.544, allocations: 346.8 kB / 0.6426 GB, free: 376 kB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000383/0.5444, allocations: 135.9 kB / 0.6427 GB, free: 240 kB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004816/0.5449, allocations: 231.9 kB / 0.6429 GB, free: 15.97 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001108/0.546, allocations: 354 kB / 0.6433 GB, free: 15.59 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.013e-06/0.546, allocations: 4 kB / 0.6433 GB, free: 15.59 MB / 494.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001034/0.547, allocations: 432.9 kB / 0.6437 GB, free: 15.16 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.056e-05/0.5471, allocations: 8 kB / 0.6437 GB, free: 15.15 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.5471, allocations: 320 / 0.6437 GB, free: 15.15 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.369e-05/0.5471, allocations: 15.94 kB / 0.6437 GB, free: 15.13 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003315/0.5474, allocations: 75.89 kB / 0.6438 GB, free: 15.06 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.271e-05/0.5474, allocations: 7.984 kB / 0.6438 GB, free: 15.05 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002647/0.5477, allocations: 39.77 kB / 0.6438 GB, free: 15.01 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.431e-05/0.5477, allocations: 19.98 kB / 0.6439 GB, free: 14.99 MB / 494.1 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 0.0001935/0.5479, allocations: 157.8 kB / 0.644 GB, free: 14.83 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.926e-05/0.548, allocations: 43.77 kB / 0.644 GB, free: 14.79 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002611/0.5506, allocations: 1.972 MB / 0.646 GB, free: 12.8 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.398e-05/0.5507, allocations: 31.89 kB / 0.646 GB, free: 12.77 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.5507, allocations: 0 / 0.646 GB, free: 12.77 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.755e-06/0.5507, allocations: 7.984 kB / 0.646 GB, free: 12.77 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001179/0.5518, allocations: 1.011 MB / 0.647 GB, free: 11.71 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/0.5519, allocations: 0 / 0.647 GB, free: 11.71 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003091/0.5522, allocations: 75.86 kB / 0.6471 GB, free: 11.63 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.71e-06/0.5522, allocations: 7.938 kB / 0.6471 GB, free: 11.62 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.32e-05/0.5522, allocations: 8 kB / 0.6471 GB, free: 11.62 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.653e-06/0.5522, allocations: 7.938 kB / 0.6471 GB, free: 11.61 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.5522, allocations: 0 / 0.6471 GB, free: 11.61 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001628/0.5538, allocations: 1.12 MB / 0.6482 GB, free: 10.47 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001571/0.554, allocations: 87.16 kB / 0.6483 GB, free: 10.38 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.075e-05/0.5541, allocations: 23.84 kB / 0.6483 GB, free: 10.36 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00026/0.5543, allocations: 27.91 kB / 0.6483 GB, free: 10.33 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.939e-05/0.5544, allocations: 31.94 kB / 0.6483 GB, free: 10.3 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.891e-05/0.5544, allocations: 12 kB / 0.6484 GB, free: 10.29 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0004592/0.5549, allocations: 335 kB / 0.6487 GB, free: 9.965 MB / 494.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5549, allocations: 0 / 0.6487 GB, free: 9.965 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003765/0.5587, allocations: 1.006 MB / 0.6497 GB, free: 8.957 MB / 494.1 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.006349/0.565, allocations: 1.165 MB / 0.6508 GB, free: 7.781 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001773/0.5668, allocations: 0.5949 MB / 0.6514 GB, free: 7.188 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.172e-06/0.5668, allocations: 0 / 0.6514 GB, free: 7.188 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000709/0.5675, allocations: 417.1 kB / 0.6518 GB, free: 6.781 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001303/0.5688, allocations: 211.1 kB / 0.652 GB, free: 6.574 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002519/0.5713, allocations: 1.566 MB / 0.6535 GB, free: 4.98 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008515/0.5722, allocations: 0.9638 MB / 0.6544 GB, free: 3.988 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0005193/0.5727, allocations: 269.6 kB / 0.6547 GB, free: 3.723 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001182/0.5728, allocations: 39.44 kB / 0.6547 GB, free: 3.684 MB / 494.1 MB Notification: Performance of SimCode: time 8.02e-07/0.5728, allocations: 4 kB / 0.6547 GB, free: 3.68 MB / 494.1 MB Notification: Performance of Templates: time 0.0645/0.6373, allocations: 40.19 MB / 0.694 GB, free: 11.56 MB / 0.5294 GB " [Timeout remaining time 659] 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.062987694051117]