Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00757/0.00757, allocations: 107.9 kB / 21.97 MB, free: 5.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001532/0.001532, allocations: 218.2 kB / 25.29 MB, free: 3.203 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.518/1.518, allocations: 230.5 MB / 258.9 MB, free: 8.035 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2428/0.2428, allocations: 46.93 MB / 362.3 MB, free: 4.215 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-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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-beta.om_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-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002383/0.002383, allocations: 83.86 kB / 0.4982 GB, free: 7.281 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3787/0.3811, allocations: 66.08 MB / 0.5627 GB, free: 4.277 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03516/0.4163, allocations: 28.65 MB / 0.5907 GB, free: 7.527 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01786/0.4341, allocations: 13.39 MB / 0.6038 GB, free: 10.09 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004752/0.4346, allocations: 11.88 kB / 0.6038 GB, free: 10.07 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008481/0.4355, allocations: 258.3 kB / 0.604 GB, free: 9.82 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01091/0.4464, allocations: 3.673 MB / 0.6076 GB, free: 6.148 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007087/0.4535, allocations: 2.394 MB / 0.61 GB, free: 3.758 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.00148/0.4549, allocations: 0.9042 MB / 0.6109 GB, free: 2.852 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004192/0.4554, allocations: 216.8 kB / 0.6111 GB, free: 2.633 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009015/0.4563, allocations: 458.2 kB / 0.6115 GB, free: 2.184 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004103/0.4567, allocations: 278.8 kB / 0.6118 GB, free: 1.91 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 5.782e-05/0.4567, allocations: 39.98 kB / 0.6118 GB, free: 1.871 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01574/0.4725, allocations: 7.262 MB / 0.6189 GB, free: 10.6 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002432/0.4727, allocations: 99.66 kB / 0.619 GB, free: 10.5 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003947/0.4731, allocations: 223 kB / 0.6192 GB, free: 10.28 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01296/0.4861, allocations: 4.423 MB / 0.6235 GB, free: 5.848 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.973e-06/0.4861, allocations: 7.938 kB / 0.6235 GB, free: 5.84 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.4861, allocations: 0 / 0.6235 GB, free: 5.84 MB / 462.1 MB Notification: Performance of Transformations before backend: time 9.899e-06/0.4861, allocations: 0 / 0.6235 GB, free: 5.84 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.003816/0.4899, allocations: 1.192 MB / 0.6247 GB, free: 4.613 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.86e-05/0.49, allocations: 8.031 kB / 0.6247 GB, free: 4.605 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001751/0.4917, allocations: 212.5 kB / 0.6249 GB, free: 4.398 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006183/0.4923, allocations: 317.1 kB / 0.6252 GB, free: 4.059 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.558e-05/0.4924, allocations: 29.03 kB / 0.6252 GB, free: 4.031 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.616e-05/0.4924, allocations: 24.38 kB / 0.6253 GB, free: 4.008 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001572/0.494, allocations: 0.5824 MB / 0.6258 GB, free: 3.387 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.39e-05/0.494, allocations: 4 kB / 0.6258 GB, free: 3.383 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.008e-05/0.494, allocations: 16 kB / 0.6258 GB, free: 3.367 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.251e-05/0.4941, allocations: 8 kB / 0.6259 GB, free: 3.359 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001543/0.4956, allocations: 0.5293 MB / 0.6264 GB, free: 2.828 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.003385/0.499, allocations: 2.519 MB / 0.6288 GB, free: 100 kB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001536/0.5005, allocations: 450.1 kB / 0.6293 GB, free: 15.65 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004318/0.501, allocations: 173.6 kB / 0.6294 GB, free: 15.48 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04542/0.5464, allocations: 13.16 MB / 0.6423 GB, free: 2.301 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.506e-05/0.5464, allocations: 30.56 kB / 0.6423 GB, free: 2.262 MB / 478.1 MB Notification: Performance of pre-optimization done (n=25): time 2.154e-06/0.5464, allocations: 0 / 0.6423 GB, free: 2.262 MB / 478.1 MB Notification: Performance of matching and sorting (n=25): time 0.003033/0.5495, allocations: 0.7974 MB / 0.6431 GB, free: 1.457 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001067/0.5496, allocations: 110.8 kB / 0.6432 GB, free: 1.324 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005199/0.5501, allocations: 308.5 kB / 0.6435 GB, free: 1.02 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 4.462e-05/0.5501, allocations: 29.7 kB / 0.6435 GB, free: 0.9844 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002231/0.5504, allocations: 212.5 kB / 0.6437 GB, free: 0.7734 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.655e-05/0.5505, allocations: 91.2 kB / 0.6438 GB, free: 0.6836 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001293/0.5506, allocations: 65.69 kB / 0.6439 GB, free: 0.6133 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0002613/0.5508, allocations: 346.8 kB / 0.6442 GB, free: 272 kB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003813/0.5512, allocations: 139.9 kB / 0.6443 GB, free: 132 kB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000503/0.5517, allocations: 235.7 kB / 0.6445 GB, free: 15.86 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008043/0.5525, allocations: 357.1 kB / 0.6449 GB, free: 15.48 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/0.5525, allocations: 0 / 0.6449 GB, free: 15.48 MB / 494.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.00104/0.5536, allocations: 433.8 kB / 0.6453 GB, free: 15.05 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.374e-05/0.5536, allocations: 8 kB / 0.6453 GB, free: 15.04 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.825e-06/0.5536, allocations: 0 / 0.6453 GB, free: 15.04 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.355e-05/0.5536, allocations: 7.938 kB / 0.6453 GB, free: 15.03 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004086/0.554, allocations: 79.89 kB / 0.6454 GB, free: 14.95 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.081e-05/0.5541, allocations: 4 kB / 0.6454 GB, free: 14.95 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002773/0.5543, allocations: 48.03 kB / 0.6454 GB, free: 14.9 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.576e-05/0.5544, allocations: 19.98 kB / 0.6455 GB, free: 14.88 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.0002308/0.5546, allocations: 157.9 kB / 0.6456 GB, free: 14.72 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.365e-05/0.5547, allocations: 35.77 kB / 0.6456 GB, free: 14.68 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002825/0.5575, allocations: 1.975 MB / 0.6476 GB, free: 12.7 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.14e-05/0.5575, allocations: 31.89 kB / 0.6476 GB, free: 12.66 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.5576, allocations: 0 / 0.6476 GB, free: 12.66 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.5576, allocations: 0 / 0.6476 GB, free: 12.66 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001323/0.5589, allocations: 1.019 MB / 0.6486 GB, free: 11.6 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.921e-06/0.5589, allocations: 0 / 0.6486 GB, free: 11.6 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003107/0.5592, allocations: 71.86 kB / 0.6487 GB, free: 11.53 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.452e-06/0.5592, allocations: 7.938 kB / 0.6487 GB, free: 11.52 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.243e-05/0.5592, allocations: 8 kB / 0.6487 GB, free: 11.51 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.775e-06/0.5592, allocations: 11.88 kB / 0.6487 GB, free: 11.5 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.5592, allocations: 0 / 0.6487 GB, free: 11.5 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001811/0.561, allocations: 1.112 MB / 0.6498 GB, free: 10.37 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001158/0.5612, allocations: 87.16 kB / 0.6499 GB, free: 10.29 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.24e-05/0.5612, allocations: 27.84 kB / 0.6499 GB, free: 10.26 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002502/0.5615, allocations: 31.91 kB / 0.6499 GB, free: 10.23 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001011/0.5616, allocations: 31.94 kB / 0.65 GB, free: 10.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.501e-05/0.5616, allocations: 12 kB / 0.65 GB, free: 10.18 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0004549/0.5621, allocations: 327.1 kB / 0.6503 GB, free: 9.863 MB / 494.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5621, allocations: 0 / 0.6503 GB, free: 9.863 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003096/0.5652, allocations: 1.01 MB / 0.6513 GB, free: 8.852 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.004654/0.5698, allocations: 1.157 MB / 0.6524 GB, free: 7.684 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001456/0.5713, allocations: 0.5981 MB / 0.653 GB, free: 7.086 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.827e-06/0.5713, allocations: 4 kB / 0.653 GB, free: 7.082 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006832/0.572, allocations: 413.7 kB / 0.6534 GB, free: 6.68 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001226/0.5732, allocations: 224.9 kB / 0.6536 GB, free: 6.461 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00254/0.5757, allocations: 1.605 MB / 0.6552 GB, free: 4.82 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006109/0.5763, allocations: 0.9638 MB / 0.6561 GB, free: 3.828 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001615/0.5765, allocations: 43.44 kB / 0.6561 GB, free: 3.785 MB / 494.1 MB Notification: Performance of SimCode: time 8.61e-07/0.5765, allocations: 0 / 0.6561 GB, free: 3.785 MB / 494.1 MB Notification: Performance of Templates: time 0.04161/0.6181, allocations: 24.12 MB / 0.6797 GB, free: 11.68 MB / 0.5137 GB " [Timeout remaining time 659] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_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.9317797110416]