Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001217/0.001217, allocations: 87.62 kB / 21.44 MB, free: 3.129 MB / 18.57 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.006675/0.006675, allocations: 160.4 kB / 24.7 MB, free: 9.43 MB / 18.57 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 0.8772/0.8772, allocations: 177.1 MB / 205 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2526/0.2526, allocations: 34.25 MB / 295.7 MB, free: 0.6797 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.1.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.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 4.007e-06/4.007e-06, allocations: 3.984 kB / 443.4 MB, free: 1.152 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.728e-05/4.129e-05, allocations: 2.281 kB / 443.4 MB, free: 1.148 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.2156/0.2157, allocations: 25.75 MB / 469.2 MB, free: 28.29 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.009045/0.2247, allocations: 11.77 MB / 481 MB, free: 20.61 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002527/0.225, allocations: 13.97 kB / 481 MB, free: 20.6 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005985/0.2255, allocations: 240 kB / 481.2 MB, free: 20.46 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006799/0.2323, allocations: 3.693 MB / 484.9 MB, free: 18.98 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00456/0.2369, allocations: 2.39 MB / 487.3 MB, free: 17.8 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008148/0.2377, allocations: 0.9096 MB / 488.2 MB, free: 17.35 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002643/0.238, allocations: 206.4 kB / 488.4 MB, free: 17.25 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005927/0.2386, allocations: 0.5449 MB / 488.9 MB, free: 17.02 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001873/0.2388, allocations: 242.8 kB / 489.2 MB, free: 16.94 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 3.642e-05/0.2388, allocations: 32.59 kB / 489.2 MB, free: 16.94 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01121/0.25, allocations: 6.912 MB / 496.1 MB, free: 15.34 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001767/0.2502, allocations: 106.2 kB / 496.2 MB, free: 15.28 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002882/0.2505, allocations: 153.1 kB / 496.4 MB, free: 15.22 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01352/0.264, allocations: 5.55 MB / 0.4902 GB, free: 13.47 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.788e-06/0.264, allocations: 0.75 kB / 0.4902 GB, free: 13.47 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.264, allocations: 0 / 0.4902 GB, free: 13.47 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.627e-05/0.264, allocations: 0.875 kB / 0.4902 GB, free: 13.47 MB / 410.7 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.004777/0.2688, allocations: 1.183 MB / 0.4913 GB, free: 12.72 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.222e-05/0.2688, allocations: 8.875 kB / 0.4913 GB, free: 12.72 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009454/0.2698, allocations: 221 kB / 0.4915 GB, free: 12.68 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004591/0.2702, allocations: 312.5 kB / 0.4918 GB, free: 12.46 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.114e-05/0.2703, allocations: 27.03 kB / 0.4919 GB, free: 12.44 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.11e-05/0.2703, allocations: 27.91 kB / 0.4919 GB, free: 12.43 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009091/0.2712, allocations: 0.7343 MB / 0.4926 GB, free: 11.89 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.034e-05/0.2712, allocations: 8.172 kB / 0.4926 GB, free: 11.88 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.936e-05/0.2713, allocations: 16.84 kB / 0.4926 GB, free: 11.87 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.388e-06/0.2713, allocations: 7.656 kB / 0.4926 GB, free: 11.87 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007964/0.2721, allocations: 0.5281 MB / 0.4932 GB, free: 11.61 MB / 410.7 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.001545/0.2736, allocations: 1.832 MB / 0.4949 GB, free: 10.07 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008592/0.2745, allocations: 450.7 kB / 0.4954 GB, free: 9.836 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002328/0.2747, allocations: 176.4 kB / 0.4955 GB, free: 9.746 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02405/0.2987, allocations: 13.2 MB / 0.5084 GB, free: 3.27 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.841e-05/0.2988, allocations: 38.56 kB / 0.5085 GB, free: 3.223 MB / 410.7 MB Notification: Performance of pre-optimization done (n=25): time 2.835e-06/0.2988, allocations: 0 / 0.5085 GB, free: 3.223 MB / 410.7 MB Notification: Performance of matching and sorting (n=25): time 0.001678/0.3005, allocations: 0.7871 MB / 0.5092 GB, free: 2.43 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.267e-05/0.3005, allocations: 110.8 kB / 0.5093 GB, free: 2.297 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002307/0.3008, allocations: 284.1 kB / 0.5096 GB, free: 2.012 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.183e-05/0.3008, allocations: 29.7 kB / 0.5096 GB, free: 1.977 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.551e-05/0.3009, allocations: 208.4 kB / 0.5098 GB, free: 1.77 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.58e-05/0.3009, allocations: 87.27 kB / 0.5099 GB, free: 1.684 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.562e-05/0.301, allocations: 71.05 kB / 0.51 GB, free: 1.609 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.149e-05/0.301, allocations: 338.8 kB / 0.5103 GB, free: 1.27 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001894/0.3012, allocations: 144.5 kB / 0.5105 GB, free: 1.129 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002416/0.3015, allocations: 283.8 kB / 0.5107 GB, free: 0.8008 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004089/0.3019, allocations: 361.3 kB / 0.5111 GB, free: 424 kB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.3019, allocations: 0 / 0.5111 GB, free: 424 kB / 410.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005178/0.3024, allocations: 417 kB / 0.5115 GB, free: 0 / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.677e-05/0.3025, allocations: 8.047 kB / 0.5115 GB, free: 15.99 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.06e-05/0.3025, allocations: 4 kB / 0.5115 GB, free: 15.98 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.512e-05/0.3025, allocations: 4 kB / 0.5115 GB, free: 15.98 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001963/0.3027, allocations: 83.78 kB / 0.5116 GB, free: 15.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.366e-05/0.3027, allocations: 7.984 kB / 0.5116 GB, free: 15.89 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002004/0.3029, allocations: 40.14 kB / 0.5116 GB, free: 15.86 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.472e-05/0.3029, allocations: 23.92 kB / 0.5116 GB, free: 15.83 MB / 426.7 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.0001553/0.3031, allocations: 164.1 kB / 0.5118 GB, free: 15.66 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.789e-05/0.3031, allocations: 33.31 kB / 0.5118 GB, free: 15.63 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001626/0.3048, allocations: 1.99 MB / 0.5138 GB, free: 13.64 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.337e-05/0.3048, allocations: 27.95 kB / 0.5138 GB, free: 13.61 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.3048, allocations: 0 / 0.5138 GB, free: 13.61 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.01e-06/0.3048, allocations: 0 / 0.5138 GB, free: 13.61 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007012/0.3055, allocations: 0.8786 MB / 0.5146 GB, free: 12.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.169e-06/0.3055, allocations: 0 / 0.5146 GB, free: 12.7 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001496/0.3056, allocations: 67.94 kB / 0.5147 GB, free: 12.63 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.538e-06/0.3056, allocations: 3.938 kB / 0.5147 GB, free: 12.63 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.658e-05/0.3057, allocations: 8 kB / 0.5147 GB, free: 12.62 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.895e-06/0.3057, allocations: 0 / 0.5147 GB, free: 12.62 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.967e-06/0.3057, allocations: 3.938 kB / 0.5147 GB, free: 12.62 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009328/0.3066, allocations: 1.122 MB / 0.5158 GB, free: 11.48 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.505e-05/0.3067, allocations: 87.16 kB / 0.5159 GB, free: 11.39 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.066e-05/0.3067, allocations: 23.83 kB / 0.5159 GB, free: 11.37 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001214/0.3068, allocations: 19.98 kB / 0.5159 GB, free: 11.35 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.805e-05/0.3069, allocations: 35.94 kB / 0.516 GB, free: 11.32 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.68e-05/0.3069, allocations: 11.98 kB / 0.516 GB, free: 11.3 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0002207/0.3072, allocations: 303.1 kB / 0.5163 GB, free: 11.01 MB / 426.7 MB Notification: Performance of sort global known variables: time 2e-07/0.3072, allocations: 0 / 0.5163 GB, free: 11.01 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004764/0.3119, allocations: 1.014 MB / 0.5173 GB, free: 9.996 MB / 426.7 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.00636/0.3183, allocations: 1.304 MB / 0.5185 GB, free: 8.684 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0009069/0.3192, allocations: 0.595 MB / 0.5191 GB, free: 8.086 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.626e-06/0.3192, allocations: 0 / 0.5191 GB, free: 8.086 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003694/0.3196, allocations: 429 kB / 0.5195 GB, free: 7.664 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006964/0.3203, allocations: 186.7 kB / 0.5197 GB, free: 7.484 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001592/0.3218, allocations: 1.555 MB / 0.5212 GB, free: 5.895 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002282/0.3221, allocations: 374.2 kB / 0.5216 GB, free: 5.504 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.053e-05/0.3222, allocations: 36.5 kB / 0.5216 GB, free: 5.469 MB / 426.7 MB Notification: Performance of SimCode: time 1.723e-06/0.3222, allocations: 0 / 0.5216 GB, free: 5.469 MB / 426.7 MB Notification: Performance of Templates: time 0.03012/0.3523, allocations: 24.27 MB / 0.5453 GB, free: 13.21 MB / 458.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & ./ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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.518051923252642]