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.001426/0.001426, allocations: 85.64 kB / 20.68 MB, free: 1.023 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.001634/0.001634, allocations: 166.8 kB / 23.96 MB, free: 4.145 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.35/1.35, allocations: 177.1 MB / 204.3 MB, free: 9.176 MB / 190.1 MB " [Timeout remaining time 179] 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.1902/0.1902, allocations: 32.81 MB / 293.5 MB, free: 24 kB / 270.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: Performance of FrontEnd - loaded program: time 1.393e-06/1.393e-06, allocations: 0 / 440.1 MB, free: 8.164 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.983e-05/2.122e-05, allocations: 2.281 kB / 440.1 MB, free: 8.16 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.1836/0.1836, allocations: 25.75 MB / 465.8 MB, free: 7.086 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01266/0.1962, allocations: 11.78 MB / 477.6 MB, free: 15.39 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003376/0.1966, allocations: 13.47 kB / 477.6 MB, free: 15.38 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007336/0.1973, allocations: 241.3 kB / 477.9 MB, free: 15.24 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01026/0.2076, allocations: 3.696 MB / 481.6 MB, free: 12.76 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007108/0.2147, allocations: 2.39 MB / 484 MB, free: 11.02 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001351/0.216, allocations: 0.9102 MB / 484.9 MB, free: 10.48 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003821/0.2164, allocations: 213.4 kB / 485.1 MB, free: 10.33 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009006/0.2173, allocations: 0.5416 MB / 485.6 MB, free: 9.996 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003249/0.2176, allocations: 237.4 kB / 485.8 MB, free: 9.875 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.717e-05/0.2177, allocations: 33 kB / 485.9 MB, free: 9.875 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01327/0.231, allocations: 6.925 MB / 492.8 MB, free: 5.543 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001878/0.2311, allocations: 95.66 kB / 492.9 MB, free: 5.449 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003126/0.2315, allocations: 155.7 kB / 493 MB, free: 5.297 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01118/0.2426, allocations: 5.55 MB / 498.6 MB, free: 15.73 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.713e-06/0.2427, allocations: 4 kB / 498.6 MB, free: 15.73 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.2427, allocations: 0 / 498.6 MB, free: 15.73 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.315e-05/0.2427, allocations: 0 / 498.6 MB, free: 15.73 MB / 398.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.002809/0.2455, allocations: 1.176 MB / 499.8 MB, free: 14.52 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.331e-05/0.2455, allocations: 12.03 kB / 499.8 MB, free: 14.51 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001721/0.2472, allocations: 212.4 kB / 500 MB, free: 14.3 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005344/0.2478, allocations: 316.5 kB / 0.4886 GB, free: 13.96 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.385e-05/0.2478, allocations: 28.97 kB / 0.4886 GB, free: 13.93 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.711e-05/0.2479, allocations: 32.84 kB / 0.4886 GB, free: 13.91 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001658/0.2495, allocations: 0.7258 MB / 0.4893 GB, free: 13.1 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.301e-05/0.2496, allocations: 4.375 kB / 0.4894 GB, free: 13.1 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.097e-05/0.2496, allocations: 19.94 kB / 0.4894 GB, free: 13.08 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.678e-06/0.2496, allocations: 8 kB / 0.4894 GB, free: 13.07 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001611/0.2512, allocations: 0.5215 MB / 0.4899 GB, free: 12.55 MB / 398.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.002794/0.254, allocations: 1.849 MB / 0.4917 GB, free: 10.63 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00157/0.2556, allocations: 434.8 kB / 0.4921 GB, free: 10.2 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004537/0.256, allocations: 180.7 kB / 0.4923 GB, free: 10.02 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0471/0.3031, allocations: 13.19 MB / 0.5052 GB, free: 12.81 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.581e-05/0.3032, allocations: 38.56 kB / 0.5052 GB, free: 12.76 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 2.134e-06/0.3032, allocations: 0 / 0.5052 GB, free: 12.76 MB / 414.1 MB Notification: Performance of matching and sorting (n=25): time 0.002882/0.3061, allocations: 0.7839 MB / 0.506 GB, free: 11.97 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.924e-05/0.3062, allocations: 110.8 kB / 0.5061 GB, free: 11.84 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003117/0.3065, allocations: 288 kB / 0.5063 GB, free: 11.55 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.416e-05/0.3065, allocations: 29.7 kB / 0.5064 GB, free: 11.52 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001565/0.3067, allocations: 216.4 kB / 0.5066 GB, free: 11.3 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.562e-05/0.3067, allocations: 87.27 kB / 0.5067 GB, free: 11.21 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001182/0.3069, allocations: 65.64 kB / 0.5067 GB, free: 11.14 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001522/0.307, allocations: 342.8 kB / 0.5071 GB, free: 10.8 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004031/0.3074, allocations: 143.9 kB / 0.5072 GB, free: 10.66 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004988/0.3079, allocations: 283.8 kB / 0.5075 GB, free: 10.33 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008504/0.3088, allocations: 369.2 kB / 0.5078 GB, free: 9.938 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.3088, allocations: 0 / 0.5078 GB, free: 9.938 MB / 414.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.00101/0.3098, allocations: 417 kB / 0.5082 GB, free: 9.523 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.3098, allocations: 11.98 kB / 0.5082 GB, free: 9.512 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.3098, allocations: 4 kB / 0.5082 GB, free: 9.508 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.795e-05/0.3098, allocations: 4 kB / 0.5082 GB, free: 9.504 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003279/0.3102, allocations: 75.89 kB / 0.5083 GB, free: 9.43 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.438e-06/0.3102, allocations: 7.938 kB / 0.5083 GB, free: 9.422 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002513/0.3104, allocations: 48.06 kB / 0.5084 GB, free: 9.375 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.598e-05/0.3104, allocations: 19.98 kB / 0.5084 GB, free: 9.355 MB / 414.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.000185/0.3106, allocations: 157.7 kB / 0.5085 GB, free: 9.191 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.704e-05/0.3107, allocations: 31.81 kB / 0.5086 GB, free: 9.16 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002575/0.3133, allocations: 1.98 MB / 0.5105 GB, free: 7.172 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.218e-05/0.3133, allocations: 31.94 kB / 0.5105 GB, free: 7.141 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.3133, allocations: 0.6875 kB / 0.5105 GB, free: 7.141 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.3133, allocations: 0 / 0.5105 GB, free: 7.141 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009168/0.3142, allocations: 0.8757 MB / 0.5114 GB, free: 6.23 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.317e-06/0.3142, allocations: 4 kB / 0.5114 GB, free: 6.227 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003069/0.3146, allocations: 64.81 kB / 0.5114 GB, free: 6.164 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.736e-06/0.3146, allocations: 0 / 0.5114 GB, free: 6.164 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.843e-05/0.3146, allocations: 12 kB / 0.5114 GB, free: 6.152 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.3146, allocations: 0 / 0.5114 GB, free: 6.152 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.3146, allocations: 0 / 0.5114 GB, free: 6.152 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001557/0.3161, allocations: 1.119 MB / 0.5125 GB, free: 5.02 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.388e-05/0.3162, allocations: 87.14 kB / 0.5126 GB, free: 4.934 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.571e-05/0.3163, allocations: 25.03 kB / 0.5126 GB, free: 4.91 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002533/0.3166, allocations: 31.91 kB / 0.5127 GB, free: 4.879 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.494e-05/0.3167, allocations: 31.94 kB / 0.5127 GB, free: 4.848 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.014e-05/0.3167, allocations: 12 kB / 0.5127 GB, free: 4.836 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003347/0.317, allocations: 307.1 kB / 0.513 GB, free: 4.535 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.317, allocations: 0 / 0.513 GB, free: 4.535 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002569/0.3196, allocations: 1.006 MB / 0.514 GB, free: 3.527 MB / 414.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.004139/0.3237, allocations: 1.317 MB / 0.5153 GB, free: 2.203 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001286/0.325, allocations: 0.591 MB / 0.5159 GB, free: 1.609 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.327e-06/0.325, allocations: 0 / 0.5159 GB, free: 1.609 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006674/0.3257, allocations: 421 kB / 0.5163 GB, free: 1.195 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001094/0.3268, allocations: 203.8 kB / 0.5165 GB, free: 1.008 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002229/0.329, allocations: 1.514 MB / 0.5179 GB, free: 15.46 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003458/0.3294, allocations: 374.2 kB / 0.5183 GB, free: 15.07 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004244/0.3298, allocations: 270.1 kB / 0.5185 GB, free: 14.8 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001097/0.3299, allocations: 36.5 kB / 0.5186 GB, free: 14.77 MB / 430.1 MB Notification: Performance of SimCode: time 7.71e-07/0.3299, allocations: 0 / 0.5186 GB, free: 14.77 MB / 430.1 MB Notification: Performance of Templates: time 0.05535/0.3852, allocations: 39.22 MB / 0.5569 GB, free: 7.703 MB / 462.1 MB " [Timeout remaining time 660] 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins/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: 6.966803155839443]