Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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.001518/0.001518, allocations: 109.1 kB / 21.19 MB, free: 0.7617 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.001642/0.001642, allocations: 217 kB / 24.5 MB, free: 4.133 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.365/1.365, allocations: 230.5 MB / 258.1 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2108/0.2108, allocations: 46.92 MB / 361.5 MB, free: 4.18 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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_trunk_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_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002361/0.002361, allocations: 79.88 kB / 0.4974 GB, free: 7.258 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2828/0.2852, allocations: 66.08 MB / 0.562 GB, free: 4.215 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03326/0.3184, allocations: 28.66 MB / 0.5899 GB, free: 7.461 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01742/0.3359, allocations: 13.38 MB / 0.603 GB, free: 10.03 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004668/0.3363, allocations: 15.81 kB / 0.603 GB, free: 10.02 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009034/0.3372, allocations: 258.4 kB / 0.6033 GB, free: 9.762 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009649/0.3469, allocations: 3.677 MB / 0.6069 GB, free: 6.086 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006537/0.3534, allocations: 2.395 MB / 0.6092 GB, free: 3.691 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001354/0.3548, allocations: 0.908 MB / 0.6101 GB, free: 2.781 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004896/0.3553, allocations: 208.9 kB / 0.6103 GB, free: 2.57 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009696/0.3562, allocations: 462.2 kB / 0.6107 GB, free: 2.117 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005001/0.3567, allocations: 270.9 kB / 0.611 GB, free: 1.852 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 8.68e-05/0.3568, allocations: 36 kB / 0.611 GB, free: 1.816 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01432/0.3711, allocations: 7.266 MB / 0.6181 GB, free: 10.54 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002032/0.3713, allocations: 99.66 kB / 0.6182 GB, free: 10.44 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003841/0.3717, allocations: 230.9 kB / 0.6184 GB, free: 10.21 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009533/0.3813, allocations: 4.427 MB / 0.6228 GB, free: 5.777 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.3813, allocations: 3.938 kB / 0.6228 GB, free: 5.773 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.3813, allocations: 0 / 0.6228 GB, free: 5.773 MB / 462.1 MB Notification: Performance of Transformations before backend: time 9.177e-06/0.3813, allocations: 0 / 0.6228 GB, free: 5.773 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.002937/0.3842, allocations: 1.184 MB / 0.6239 GB, free: 4.555 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.421e-05/0.3842, allocations: 12.03 kB / 0.6239 GB, free: 4.543 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001654/0.3859, allocations: 220.4 kB / 0.6241 GB, free: 4.328 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006032/0.3865, allocations: 317.1 kB / 0.6244 GB, free: 3.988 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.734e-05/0.3865, allocations: 29.03 kB / 0.6245 GB, free: 3.961 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.147e-05/0.3866, allocations: 24.38 kB / 0.6245 GB, free: 3.938 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001463/0.388, allocations: 0.5824 MB / 0.6251 GB, free: 3.316 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.217e-05/0.388, allocations: 0 / 0.6251 GB, free: 3.316 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.896e-05/0.3881, allocations: 12 kB / 0.6251 GB, free: 3.305 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.528e-06/0.3881, allocations: 11.94 kB / 0.6251 GB, free: 3.293 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001532/0.3896, allocations: 0.5293 MB / 0.6256 GB, free: 2.762 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.003141/0.3928, allocations: 2.523 MB / 0.6281 GB, free: 28 kB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001481/0.3943, allocations: 446.1 kB / 0.6285 GB, free: 15.58 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004076/0.3947, allocations: 169.8 kB / 0.6287 GB, free: 15.41 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04409/0.4388, allocations: 13.16 MB / 0.6415 GB, free: 2.238 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.738e-05/0.4388, allocations: 38.55 kB / 0.6415 GB, free: 2.191 MB / 478.1 MB Notification: Performance of pre-optimization done (n=25): time 2.124e-06/0.4388, allocations: 0 / 0.6415 GB, free: 2.191 MB / 478.1 MB Notification: Performance of matching and sorting (n=25): time 0.002866/0.4417, allocations: 0.7974 MB / 0.6423 GB, free: 1.387 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.911e-05/0.4418, allocations: 106.8 kB / 0.6424 GB, free: 1.258 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003811/0.4421, allocations: 304.5 kB / 0.6427 GB, free: 0.957 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 4.115e-05/0.4422, allocations: 33.7 kB / 0.6427 GB, free: 0.918 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001676/0.4423, allocations: 212.5 kB / 0.6429 GB, free: 0.707 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.467e-05/0.4424, allocations: 87.2 kB / 0.643 GB, free: 0.6211 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001108/0.4426, allocations: 69.69 kB / 0.6431 GB, free: 0.5469 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.00016/0.4427, allocations: 342.8 kB / 0.6434 GB, free: 208 kB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003715/0.4431, allocations: 135.9 kB / 0.6435 GB, free: 72 kB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005142/0.4436, allocations: 239.8 kB / 0.6438 GB, free: 15.79 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007919/0.4444, allocations: 349.1 kB / 0.6441 GB, free: 15.42 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.042e-06/0.4444, allocations: 4 kB / 0.6441 GB, free: 15.41 MB / 494.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001022/0.4454, allocations: 430.1 kB / 0.6445 GB, free: 14.99 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.142e-05/0.4454, allocations: 12.03 kB / 0.6445 GB, free: 14.98 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.652e-06/0.4454, allocations: 0 / 0.6445 GB, free: 14.98 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.92e-05/0.4455, allocations: 7.938 kB / 0.6445 GB, free: 14.97 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003133/0.4458, allocations: 83.88 kB / 0.6446 GB, free: 14.89 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.287e-06/0.4458, allocations: 4 kB / 0.6446 GB, free: 14.88 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002596/0.446, allocations: 39.77 kB / 0.6447 GB, free: 14.84 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.417e-05/0.4461, allocations: 19.98 kB / 0.6447 GB, free: 14.82 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.000197/0.4463, allocations: 161.8 kB / 0.6448 GB, free: 14.66 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.904e-05/0.4464, allocations: 39.77 kB / 0.6449 GB, free: 14.62 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002581/0.4489, allocations: 1.967 MB / 0.6468 GB, free: 12.63 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.073e-05/0.449, allocations: 31.89 kB / 0.6468 GB, free: 12.6 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.067e-06/0.449, allocations: 0 / 0.6468 GB, free: 12.6 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.456e-06/0.449, allocations: 7.984 kB / 0.6468 GB, free: 12.59 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001086/0.4501, allocations: 1.015 MB / 0.6478 GB, free: 11.54 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.04e-06/0.4501, allocations: 3.938 kB / 0.6478 GB, free: 11.53 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002862/0.4504, allocations: 71.88 kB / 0.6479 GB, free: 11.46 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.071e-06/0.4504, allocations: 4 kB / 0.6479 GB, free: 11.46 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.162e-05/0.4504, allocations: 8 kB / 0.6479 GB, free: 11.45 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.322e-06/0.4504, allocations: 11.88 kB / 0.6479 GB, free: 11.44 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.4504, allocations: 0 / 0.6479 GB, free: 11.44 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001531/0.4519, allocations: 1.112 MB / 0.649 GB, free: 10.31 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001268/0.4521, allocations: 87.16 kB / 0.6491 GB, free: 10.22 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.267e-05/0.4521, allocations: 27.83 kB / 0.6491 GB, free: 10.2 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000267/0.4524, allocations: 27.91 kB / 0.6491 GB, free: 10.17 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.509e-05/0.4525, allocations: 35.94 kB / 0.6492 GB, free: 10.13 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.587e-05/0.4525, allocations: 19.92 kB / 0.6492 GB, free: 10.11 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.000372/0.4529, allocations: 323.1 kB / 0.6495 GB, free: 9.797 MB / 494.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4529, allocations: 0 / 0.6495 GB, free: 9.797 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0026/0.4555, allocations: 1.01 MB / 0.6505 GB, free: 8.785 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.004465/0.46, allocations: 1.164 MB / 0.6516 GB, free: 7.613 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001307/0.4613, allocations: 0.6029 MB / 0.6522 GB, free: 7.012 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.4613, allocations: 0 / 0.6522 GB, free: 7.012 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006456/0.4619, allocations: 417.1 kB / 0.6526 GB, free: 6.605 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001115/0.463, allocations: 210.6 kB / 0.6528 GB, free: 6.402 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002367/0.4654, allocations: 1.601 MB / 0.6544 GB, free: 4.766 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000608/0.466, allocations: 0.9638 MB / 0.6553 GB, free: 3.773 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001259/0.4661, allocations: 43.44 kB / 0.6554 GB, free: 3.73 MB / 494.1 MB Notification: Performance of SimCode: time 7.01e-07/0.4661, allocations: 0 / 0.6554 GB, free: 3.73 MB / 494.1 MB Notification: Performance of Templates: time 0.03683/0.503, allocations: 24.12 MB / 0.6789 GB, free: 11.61 MB / 0.5137 GB " [Timeout remaining time 659] make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_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_trunk_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: 9.37564969691448]