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.001415/0.001415, allocations: 117 kB / 19.12 MB, free: 3.922 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.001478/0.001478, allocations: 218.5 kB / 22.08 MB, free: 0.9688 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.479/1.479, allocations: 227.5 MB / 252.3 MB, free: 276 kB / 190.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.2378/0.2378, allocations: 46.16 MB / 351.8 MB, free: 14.33 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.002313/0.002313, allocations: 81.8 kB / 490.9 MB, free: 28.07 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1503/0.1526, allocations: 62.45 MB / 0.5403 GB, free: 4.281 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03842/0.1911, allocations: 28.26 MB / 0.5679 GB, free: 7.902 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01846/0.2096, allocations: 13.29 MB / 0.5809 GB, free: 10.57 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005216/0.2101, allocations: 7.938 kB / 0.5809 GB, free: 10.56 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008848/0.2111, allocations: 250.4 kB / 0.5812 GB, free: 10.31 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01101/0.2221, allocations: 3.681 MB / 0.5848 GB, free: 6.633 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00755/0.2297, allocations: 2.37 MB / 0.5871 GB, free: 4.266 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001773/0.2315, allocations: 0.8886 MB / 0.5879 GB, free: 3.375 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004952/0.232, allocations: 252.7 kB / 0.5882 GB, free: 3.125 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009498/0.2329, allocations: 438.2 kB / 0.5886 GB, free: 2.695 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003875/0.2333, allocations: 266.9 kB / 0.5888 GB, free: 2.434 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 6.499e-05/0.2334, allocations: 36 kB / 0.5889 GB, free: 2.398 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01554/0.249, allocations: 7.231 MB / 0.5959 GB, free: 11.16 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002215/0.2492, allocations: 99.72 kB / 0.596 GB, free: 11.06 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003798/0.2496, allocations: 222.9 kB / 0.5963 GB, free: 10.84 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01256/0.2622, allocations: 4.427 MB / 0.6006 GB, free: 6.406 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.638e-06/0.2622, allocations: 4 kB / 0.6006 GB, free: 6.402 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.2623, allocations: 0 / 0.6006 GB, free: 6.402 MB / 462.1 MB Notification: Performance of Transformations before backend: time 9.528e-06/0.2623, allocations: 0 / 0.6006 GB, free: 6.402 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.003849/0.2661, allocations: 1.267 MB / 0.6018 GB, free: 5.082 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.841e-05/0.2662, allocations: 12.03 kB / 0.6018 GB, free: 5.07 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001758/0.268, allocations: 212.4 kB / 0.602 GB, free: 4.863 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006895/0.2687, allocations: 379.5 kB / 0.6024 GB, free: 4.453 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.165e-05/0.2687, allocations: 25.03 kB / 0.6024 GB, free: 4.43 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.046e-05/0.2688, allocations: 28.38 kB / 0.6024 GB, free: 4.402 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001643/0.2704, allocations: 0.59 MB / 0.603 GB, free: 3.77 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.464e-05/0.2704, allocations: 0 / 0.603 GB, free: 3.77 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.591e-05/0.2705, allocations: 12 kB / 0.603 GB, free: 3.758 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.428e-06/0.2705, allocations: 8 kB / 0.603 GB, free: 3.75 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001678/0.2722, allocations: 0.5328 MB / 0.6036 GB, free: 3.219 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.003499/0.2757, allocations: 2.629 MB / 0.6061 GB, free: 360 kB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3237/0.5994, allocations: 453.2 kB / 0.6066 GB, free: 62.06 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005264/0.6, allocations: 187.2 kB / 0.6067 GB, free: 62.05 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05092/0.6509, allocations: 26.88 MB / 0.633 GB, free: 43.61 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.916e-05/0.651, allocations: 39.91 kB / 0.633 GB, free: 43.56 MB / 462.1 MB Notification: Performance of pre-optimization done (n=25): time 2.665e-06/0.651, allocations: 0 / 0.633 GB, free: 43.56 MB / 462.1 MB Notification: Performance of matching and sorting (n=25): time 0.00283/0.6539, allocations: 0.7867 MB / 0.6338 GB, free: 43.19 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.845e-05/0.6539, allocations: 110.4 kB / 0.6339 GB, free: 43.06 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003528/0.6543, allocations: 306.3 kB / 0.6342 GB, free: 42.86 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 2.424e-05/0.6543, allocations: 31.08 kB / 0.6342 GB, free: 42.83 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000136/0.6545, allocations: 215.7 kB / 0.6344 GB, free: 42.68 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.323e-05/0.6545, allocations: 81.09 kB / 0.6345 GB, free: 42.62 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001123/0.6547, allocations: 73.33 kB / 0.6346 GB, free: 42.57 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 8.751e-05/0.6547, allocations: 347.5 kB / 0.6349 GB, free: 42.23 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000378/0.6551, allocations: 135.7 kB / 0.635 GB, free: 42.16 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004461/0.6556, allocations: 235.2 kB / 0.6353 GB, free: 41.98 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007985/0.6564, allocations: 359.6 kB / 0.6356 GB, free: 41.75 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.6564, allocations: 3.219 kB / 0.6356 GB, free: 41.75 MB / 462.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009813/0.6574, allocations: 423.9 kB / 0.636 GB, free: 41.54 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.19e-05/0.6574, allocations: 8.781 kB / 0.636 GB, free: 41.54 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.358e-06/0.6574, allocations: 10.64 kB / 0.636 GB, free: 41.53 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.354e-05/0.6575, allocations: 6.953 kB / 0.636 GB, free: 41.53 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003265/0.6578, allocations: 76.05 kB / 0.6361 GB, free: 41.51 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.186e-05/0.6578, allocations: 5.031 kB / 0.6361 GB, free: 41.51 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002723/0.6581, allocations: 51.38 kB / 0.6362 GB, free: 41.48 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.503e-05/0.6581, allocations: 18.88 kB / 0.6362 GB, free: 41.48 MB / 462.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.00016/0.6583, allocations: 164.9 kB / 0.6363 GB, free: 41.33 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8e-05/0.6584, allocations: 32.78 kB / 0.6364 GB, free: 41.31 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002296/0.6607, allocations: 1.895 MB / 0.6382 GB, free: 40.25 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.538e-05/0.6607, allocations: 28.2 kB / 0.6382 GB, free: 40.23 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/0.6608, allocations: 3.812 kB / 0.6382 GB, free: 40.23 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.6608, allocations: 3.719 kB / 0.6382 GB, free: 40.23 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009132/0.6617, allocations: 1.026 MB / 0.6393 GB, free: 39.51 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.6617, allocations: 0 / 0.6393 GB, free: 39.51 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002957/0.662, allocations: 74.06 kB / 0.6393 GB, free: 39.48 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.813e-06/0.662, allocations: 2.094 kB / 0.6393 GB, free: 39.48 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.472e-05/0.662, allocations: 14.48 kB / 0.6393 GB, free: 39.47 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.977e-06/0.6621, allocations: 2.156 kB / 0.6393 GB, free: 39.47 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.6621, allocations: 1.281 kB / 0.6393 GB, free: 39.47 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001309/0.6634, allocations: 1.079 MB / 0.6404 GB, free: 38.84 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000113/0.6635, allocations: 170.7 kB / 0.6406 GB, free: 38.7 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.571e-05/0.6636, allocations: 26.48 kB / 0.6406 GB, free: 38.68 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002335/0.6638, allocations: 23.66 kB / 0.6406 GB, free: 38.67 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001054/0.6639, allocations: 35.66 kB / 0.6406 GB, free: 38.65 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.436e-05/0.664, allocations: 15.44 kB / 0.6407 GB, free: 38.64 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0002873/0.6642, allocations: 327.1 kB / 0.641 GB, free: 38.45 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.6643, allocations: 0 / 0.641 GB, free: 38.45 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002697/0.667, allocations: 1.011 MB / 0.642 GB, free: 38.3 MB / 462.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.003806/0.6708, allocations: 1.176 MB / 0.6431 GB, free: 37.93 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001098/0.6719, allocations: 0.5932 MB / 0.6437 GB, free: 37.65 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.6719, allocations: 0 / 0.6437 GB, free: 37.65 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005495/0.6725, allocations: 0.5019 MB / 0.6442 GB, free: 37.37 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001069/0.6735, allocations: 226.8 kB / 0.6444 GB, free: 37.27 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001806/0.6753, allocations: 1.566 MB / 0.6459 GB, free: 36.28 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002957/0.6757, allocations: 0.9599 MB / 0.6469 GB, free: 35.29 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001008/0.6758, allocations: 43.44 kB / 0.6469 GB, free: 35.25 MB / 462.1 MB Notification: Performance of SimCode: time 4.21e-07/0.6758, allocations: 3.938 kB / 0.6469 GB, free: 35.24 MB / 462.1 MB Notification: Performance of Templates: time 0.02965/0.7054, allocations: 24.11 MB / 0.6704 GB, free: 11.17 MB / 462.1 MB " [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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 11.133333715959452]