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.001371/0.001371, allocations: 103.6 kB / 21.18 MB, free: 0.6445 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.0015/0.0015, allocations: 211.5 kB / 24.48 MB, free: 3.938 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.546/1.546, allocations: 230.6 MB / 258.2 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] 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.2237/0.2237, allocations: 44.94 MB / 359.6 MB, free: 6.027 MB / 286.1 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.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.0.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.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002399/0.002399, allocations: 71.89 kB / 0.4943 GB, free: 10 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3814/0.3838, allocations: 65.46 MB / 0.5582 GB, free: 7.465 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03481/0.4186, allocations: 25.9 MB / 0.5835 GB, free: 13.47 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01798/0.4366, allocations: 11.76 MB / 0.595 GB, free: 1.664 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004533/0.437, allocations: 15.81 kB / 0.595 GB, free: 1.648 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000858/0.4379, allocations: 230.5 kB / 0.5952 GB, free: 1.422 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01106/0.4489, allocations: 3.642 MB / 0.5988 GB, free: 13.78 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007956/0.4569, allocations: 2.355 MB / 0.6011 GB, free: 11.43 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001555/0.4584, allocations: 0.908 MB / 0.602 GB, free: 10.52 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004339/0.4589, allocations: 220.9 kB / 0.6022 GB, free: 10.3 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008837/0.4598, allocations: 434.2 kB / 0.6026 GB, free: 9.871 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004132/0.4602, allocations: 270.9 kB / 0.6028 GB, free: 9.605 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 6.441e-05/0.4602, allocations: 32 kB / 0.6029 GB, free: 9.574 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01595/0.4762, allocations: 6.895 MB / 0.6096 GB, free: 2.672 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002733/0.4765, allocations: 107.6 kB / 0.6097 GB, free: 2.566 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003549/0.4768, allocations: 179.2 kB / 0.6099 GB, free: 2.391 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01274/0.4896, allocations: 4.423 MB / 0.6142 GB, free: 13.95 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.673e-06/0.4896, allocations: 0 / 0.6142 GB, free: 13.95 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.4896, allocations: 0 / 0.6142 GB, free: 13.95 MB / 462.1 MB Notification: Performance of Transformations before backend: time 9.608e-06/0.4896, allocations: 4 kB / 0.6142 GB, free: 13.95 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.00369/0.4933, allocations: 1.182 MB / 0.6153 GB, free: 12.73 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.477e-05/0.4933, allocations: 8.031 kB / 0.6154 GB, free: 12.73 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00179/0.4951, allocations: 216.5 kB / 0.6156 GB, free: 12.52 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007115/0.4958, allocations: 317.2 kB / 0.6159 GB, free: 12.18 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.444e-05/0.4959, allocations: 32.97 kB / 0.6159 GB, free: 12.14 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.445e-05/0.4959, allocations: 24.38 kB / 0.6159 GB, free: 12.12 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001706/0.4976, allocations: 0.7369 MB / 0.6166 GB, free: 11.31 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.729e-05/0.4976, allocations: 4 kB / 0.6166 GB, free: 11.3 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.087e-05/0.4977, allocations: 12 kB / 0.6167 GB, free: 11.29 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.372e-05/0.4977, allocations: 8 kB / 0.6167 GB, free: 11.29 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001595/0.4993, allocations: 0.5214 MB / 0.6172 GB, free: 10.76 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.003148/0.5024, allocations: 1.86 MB / 0.619 GB, free: 8.832 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001588/0.504, allocations: 442.1 kB / 0.6194 GB, free: 8.391 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004409/0.5045, allocations: 176.7 kB / 0.6196 GB, free: 8.215 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04854/0.553, allocations: 13.2 MB / 0.6325 GB, free: 10.99 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.162e-05/0.553, allocations: 34.56 kB / 0.6325 GB, free: 10.95 MB / 478.1 MB Notification: Performance of pre-optimization done (n=25): time 1.943e-06/0.553, allocations: 4 kB / 0.6325 GB, free: 10.95 MB / 478.1 MB Notification: Performance of matching and sorting (n=25): time 0.002954/0.556, allocations: 0.7819 MB / 0.6333 GB, free: 10.16 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.635e-05/0.5561, allocations: 118.6 kB / 0.6334 GB, free: 10.02 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003555/0.5564, allocations: 272.2 kB / 0.6336 GB, free: 9.742 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 4.003e-05/0.5565, allocations: 37.7 kB / 0.6337 GB, free: 9.699 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001769/0.5567, allocations: 208.4 kB / 0.6339 GB, free: 9.492 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.733e-05/0.5567, allocations: 91.2 kB / 0.634 GB, free: 9.402 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001164/0.5569, allocations: 69.69 kB / 0.634 GB, free: 9.328 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001732/0.557, allocations: 338.8 kB / 0.6344 GB, free: 8.988 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004081/0.5574, allocations: 139.9 kB / 0.6345 GB, free: 8.852 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005162/0.558, allocations: 279.3 kB / 0.6348 GB, free: 8.527 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008347/0.5588, allocations: 357.9 kB / 0.6351 GB, free: 8.145 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.5588, allocations: 4 kB / 0.6351 GB, free: 8.141 MB / 478.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001048/0.5598, allocations: 421 kB / 0.6355 GB, free: 7.723 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.431e-05/0.5599, allocations: 10.81 kB / 0.6355 GB, free: 7.715 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.5599, allocations: 320 / 0.6355 GB, free: 7.715 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.163e-05/0.5599, allocations: 8 kB / 0.6355 GB, free: 7.707 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003459/0.5602, allocations: 87.83 kB / 0.6356 GB, free: 7.621 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.654e-05/0.5603, allocations: 15.91 kB / 0.6356 GB, free: 7.605 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002663/0.5605, allocations: 39.77 kB / 0.6357 GB, free: 7.566 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.898e-05/0.5606, allocations: 23.98 kB / 0.6357 GB, free: 7.543 MB / 478.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.0002166/0.5608, allocations: 157.8 kB / 0.6358 GB, free: 7.379 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.861e-05/0.5609, allocations: 31.81 kB / 0.6359 GB, free: 7.348 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002719/0.5636, allocations: 1.983 MB / 0.6378 GB, free: 5.363 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.043e-05/0.5636, allocations: 27.95 kB / 0.6378 GB, free: 5.336 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.456e-06/0.5636, allocations: 7.938 kB / 0.6378 GB, free: 5.328 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.5636, allocations: 0 / 0.6378 GB, free: 5.328 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001078/0.5647, allocations: 0.8633 MB / 0.6387 GB, free: 4.43 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.811e-06/0.5647, allocations: 0 / 0.6387 GB, free: 4.43 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003139/0.565, allocations: 67.94 kB / 0.6387 GB, free: 4.363 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.073e-06/0.565, allocations: 8 kB / 0.6387 GB, free: 4.355 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.118e-05/0.5651, allocations: 4 kB / 0.6388 GB, free: 4.352 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.522e-06/0.5651, allocations: 4 kB / 0.6388 GB, free: 4.348 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.5651, allocations: 3.938 kB / 0.6388 GB, free: 4.344 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001687/0.5667, allocations: 1.112 MB / 0.6398 GB, free: 3.215 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001189/0.5669, allocations: 91.09 kB / 0.6399 GB, free: 3.125 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.457e-05/0.5669, allocations: 27.83 kB / 0.64 GB, free: 3.098 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000261/0.5672, allocations: 23.98 kB / 0.64 GB, free: 3.074 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001017/0.5673, allocations: 35.88 kB / 0.64 GB, free: 3.039 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.099e-05/0.5673, allocations: 15.98 kB / 0.64 GB, free: 3.023 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.000376/0.5677, allocations: 299.1 kB / 0.6403 GB, free: 2.73 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.5677, allocations: 0 / 0.6403 GB, free: 2.73 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003246/0.571, allocations: 1.01 MB / 0.6413 GB, free: 1.719 MB / 478.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.00438/0.5753, allocations: 1.177 MB / 0.6425 GB, free: 0.5312 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00144/0.5768, allocations: 0.5943 MB / 0.643 GB, free: 15.94 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.5768, allocations: 0 / 0.643 GB, free: 15.94 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007253/0.5775, allocations: 417.6 kB / 0.6434 GB, free: 15.53 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001141/0.5786, allocations: 192.3 kB / 0.6436 GB, free: 15.34 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002546/0.5812, allocations: 1.587 MB / 0.6452 GB, free: 13.72 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003732/0.5816, allocations: 370.1 kB / 0.6455 GB, free: 13.33 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00013/0.5817, allocations: 43.44 kB / 0.6456 GB, free: 13.29 MB / 494.1 MB Notification: Performance of SimCode: time 1.092e-06/0.5817, allocations: 0 / 0.6456 GB, free: 13.29 MB / 494.1 MB Notification: Performance of Templates: time 0.0406/0.6223, allocations: 24.13 MB / 0.6691 GB, free: 5.16 MB / 0.4981 GB " [Timeout remaining time 659] 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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: 10.958133154083043]