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.001864/0.001864, allocations: 116.7 kB / 19.18 MB, free: 3.762 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.002265/0.002265, allocations: 210.6 kB / 22.13 MB, free: 0.8125 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.547/1.547, allocations: 230.2 MB / 255.2 MB, free: 15.26 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.2392/0.2392, allocations: 46.89 MB / 358.1 MB, free: 10.53 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.002255/0.002255, allocations: 84.14 kB / 0.4924 GB, free: 8.07 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1478/0.15, allocations: 65.98 MB / 0.5568 GB, free: 5.965 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03448/0.1845, allocations: 28.42 MB / 0.5845 GB, free: 9.434 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.3595/0.544, allocations: 13.34 MB / 0.5976 GB, free: 4.273 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005032/0.5445, allocations: 9.062 kB / 0.5976 GB, free: 4.273 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009415/0.5454, allocations: 252.6 kB / 0.5978 GB, free: 4.273 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01296/0.5584, allocations: 3.677 MB / 0.6014 GB, free: 4.246 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008423/0.5668, allocations: 2.373 MB / 0.6037 GB, free: 4.188 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001844/0.5686, allocations: 0.8939 MB / 0.6046 GB, free: 4.188 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005258/0.5692, allocations: 218.5 kB / 0.6048 GB, free: 4.176 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001127/0.5703, allocations: 445 kB / 0.6052 GB, free: 4.176 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005124/0.5708, allocations: 280.9 kB / 0.6055 GB, free: 4.172 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 7.81e-05/0.5709, allocations: 33.22 kB / 0.6055 GB, free: 4.172 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0216/0.5925, allocations: 7.262 MB / 0.6126 GB, free: 4.102 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002876/0.5928, allocations: 97.73 kB / 0.6127 GB, free: 4.086 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005486/0.5933, allocations: 223.8 kB / 0.6129 GB, free: 4.027 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01771/0.611, allocations: 4.425 MB / 0.6173 GB, free: 2.887 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.611, allocations: 1.062 kB / 0.6173 GB, free: 2.887 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.611, allocations: 0 / 0.6173 GB, free: 2.887 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.009e-05/0.6111, allocations: 0 / 0.6173 GB, free: 2.887 MB / 446.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.004979/0.616, allocations: 1.273 MB / 0.6185 GB, free: 2.027 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.627e-05/0.6161, allocations: 10.97 kB / 0.6185 GB, free: 2.027 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001738/0.6178, allocations: 212 kB / 0.6187 GB, free: 1.949 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006202/0.6184, allocations: 382.5 kB / 0.6191 GB, free: 1.664 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.112e-05/0.6185, allocations: 28.31 kB / 0.6191 GB, free: 1.66 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.049e-05/0.6185, allocations: 29.53 kB / 0.6191 GB, free: 1.66 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001532/0.6201, allocations: 0.5792 MB / 0.6197 GB, free: 1.402 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.673e-05/0.6201, allocations: 4.438 kB / 0.6197 GB, free: 1.402 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.619e-05/0.6201, allocations: 15.28 kB / 0.6197 GB, free: 1.402 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.377e-05/0.6201, allocations: 6.844 kB / 0.6197 GB, free: 1.402 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001569/0.6217, allocations: 0.5266 MB / 0.6202 GB, free: 1.184 MB / 446.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.003535/0.6252, allocations: 2.624 MB / 0.6228 GB, free: 14.71 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001711/0.627, allocations: 450.2 kB / 0.6232 GB, free: 14.48 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004878/0.6274, allocations: 174.9 kB / 0.6234 GB, free: 14.39 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05801/0.6855, allocations: 26.87 MB / 0.6496 GB, free: 6.16 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.144e-05/0.6855, allocations: 42.5 kB / 0.6497 GB, free: 6.109 MB / 478.1 MB Notification: Performance of pre-optimization done (n=25): time 2.925e-06/0.6855, allocations: 4 kB / 0.6497 GB, free: 6.105 MB / 478.1 MB Notification: Performance of matching and sorting (n=25): time 0.003187/0.6887, allocations: 0.7846 MB / 0.6504 GB, free: 5.316 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001086/0.6888, allocations: 114.8 kB / 0.6506 GB, free: 5.18 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004355/0.6892, allocations: 308.5 kB / 0.6509 GB, free: 4.875 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 4.602e-05/0.6893, allocations: 33.7 kB / 0.6509 GB, free: 4.836 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000179/0.6895, allocations: 200.5 kB / 0.6511 GB, free: 4.637 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001056/0.6896, allocations: 97.09 kB / 0.6512 GB, free: 4.543 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001306/0.6897, allocations: 69.69 kB / 0.6512 GB, free: 4.469 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001764/0.6899, allocations: 342.8 kB / 0.6516 GB, free: 4.125 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004162/0.6903, allocations: 141.4 kB / 0.6517 GB, free: 3.988 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005047/0.6908, allocations: 238.7 kB / 0.6519 GB, free: 3.715 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001064/0.6919, allocations: 359.3 kB / 0.6523 GB, free: 3.332 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.6919, allocations: 4 kB / 0.6523 GB, free: 3.328 MB / 478.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001109/0.693, allocations: 422.5 kB / 0.6527 GB, free: 2.91 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.128e-05/0.693, allocations: 8.312 kB / 0.6527 GB, free: 2.902 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.338e-06/0.693, allocations: 8 kB / 0.6527 GB, free: 2.895 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.124e-05/0.693, allocations: 4 kB / 0.6527 GB, free: 2.891 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003626/0.6934, allocations: 87.81 kB / 0.6528 GB, free: 2.805 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.366e-05/0.6934, allocations: 4 kB / 0.6528 GB, free: 2.801 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003356/0.6937, allocations: 47.75 kB / 0.6528 GB, free: 2.754 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.433e-05/0.6938, allocations: 12 kB / 0.6528 GB, free: 2.742 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.000251/0.694, allocations: 169.6 kB / 0.653 GB, free: 2.566 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.448e-05/0.6941, allocations: 39.77 kB / 0.653 GB, free: 2.527 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002993/0.6971, allocations: 1.887 MB / 0.6549 GB, free: 0.6328 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.648e-05/0.6972, allocations: 35.88 kB / 0.6549 GB, free: 0.5977 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/0.6972, allocations: 0 / 0.6549 GB, free: 0.5977 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.164e-06/0.6972, allocations: 4 kB / 0.6549 GB, free: 0.5938 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001565/0.6987, allocations: 1.013 MB / 0.6559 GB, free: 15.54 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.861e-06/0.6987, allocations: 0 / 0.6559 GB, free: 15.54 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003186/0.6991, allocations: 75.88 kB / 0.656 GB, free: 15.47 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.841e-06/0.6991, allocations: 0 / 0.656 GB, free: 15.47 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.635e-05/0.6991, allocations: 15.67 kB / 0.656 GB, free: 15.46 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.649e-06/0.6991, allocations: 3.938 kB / 0.656 GB, free: 15.45 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.6991, allocations: 4 kB / 0.656 GB, free: 15.45 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001719/0.7008, allocations: 1.081 MB / 0.6571 GB, free: 14.35 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002252/0.701, allocations: 172.2 kB / 0.6572 GB, free: 14.16 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.706e-05/0.7011, allocations: 19.84 kB / 0.6572 GB, free: 14.14 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002722/0.7014, allocations: 31.91 kB / 0.6573 GB, free: 14.11 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001167/0.7015, allocations: 35.95 kB / 0.6573 GB, free: 14.08 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.77e-05/0.7015, allocations: 12 kB / 0.6573 GB, free: 14.07 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0004271/0.702, allocations: 323.1 kB / 0.6576 GB, free: 13.75 MB / 494.1 MB Notification: Performance of sort global known variables: time 8e-08/0.702, allocations: 0 / 0.6576 GB, free: 13.75 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005159/0.7071, allocations: 1.006 MB / 0.6586 GB, free: 12.75 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.007156/0.7143, allocations: 1.19 MB / 0.6598 GB, free: 11.66 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001545/0.7158, allocations: 0.5751 MB / 0.6603 GB, free: 11.08 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.528e-06/0.7158, allocations: 0 / 0.6603 GB, free: 11.08 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006877/0.7165, allocations: 406.2 kB / 0.6607 GB, free: 10.69 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00138/0.7179, allocations: 216.9 kB / 0.6609 GB, free: 10.48 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002567/0.7205, allocations: 1.563 MB / 0.6625 GB, free: 8.879 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006567/0.7211, allocations: 0.956 MB / 0.6634 GB, free: 7.898 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001319/0.7212, allocations: 47.42 kB / 0.6634 GB, free: 7.852 MB / 494.1 MB Notification: Performance of SimCode: time 1.122e-06/0.7212, allocations: 0 / 0.6634 GB, free: 7.852 MB / 494.1 MB Notification: Performance of Templates: time 0.04627/0.7675, allocations: 24.15 MB / 0.687 GB, free: 15.73 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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 11.347843836061656]