Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.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.001717/0.001717, allocations: 104.3 kB / 19.7 MB, free: 2.156 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.002246/0.002246, allocations: 210.5 kB / 22.99 MB, free: 4.984 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.602/1.602, allocations: 230.6 MB / 256.8 MB, free: 7.773 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.226/3.226, allocations: 0.49 GB / 0.7959 GB, free: 35.45 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|valTab.m_flow|valLin.m_flow",fileNamePrefix="Buildings_12_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|valTab.m_flow|valLin.m_flow",fileNamePrefix="Buildings_12_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002068/0.002068, allocations: 67.61 kB / 1.155 GB, free: 25.16 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3611/0.3631, allocations: 176.1 MB / 1.327 GB, free: 0.9922 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable): time 0.01931/0.3825, allocations: 14.51 MB / 1.341 GB, free: 2.434 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.007345/0.3898, allocations: 4.101 MB / 1.345 GB, free: 14.32 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005926/0.3904, allocations: 23.75 kB / 1.345 GB, free: 14.3 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.001049/0.3914, allocations: 262.3 kB / 1.346 GB, free: 14.04 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.001759/0.3932, allocations: 0.6798 MB / 1.346 GB, free: 13.36 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.001933/0.3951, allocations: 0.724 MB / 1.347 GB, free: 12.64 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.001428/0.3966, allocations: 1.04 MB / 1.348 GB, free: 11.6 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004759/0.397, allocations: 277.1 kB / 1.348 GB, free: 11.32 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008752/0.3979, allocations: 494.1 kB / 1.349 GB, free: 10.84 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004616/0.3984, allocations: 330.5 kB / 1.349 GB, free: 10.51 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 7.421e-05/0.3984, allocations: 28 kB / 1.349 GB, free: 10.48 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009872/0.3994, allocations: 0.546 MB / 1.35 GB, free: 9.938 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 0.0001325/0.3996, allocations: 111.5 kB / 1.35 GB, free: 9.828 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0002019/0.3998, allocations: 179.1 kB / 1.35 GB, free: 9.652 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.001102/0.4009, allocations: 0.7626 MB / 1.351 GB, free: 8.887 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.4009, allocations: 0 / 1.351 GB, free: 8.887 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.693e-06/0.4009, allocations: 0 / 1.351 GB, free: 8.887 MB / 1.045 GB Notification: Performance of Transformations before backend: time 9.378e-06/0.4009, allocations: 0 / 1.351 GB, free: 8.887 MB / 1.045 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.001396/0.4023, allocations: 0.7763 MB / 1.351 GB, free: 8.074 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.118e-05/0.4023, allocations: 12.03 kB / 1.351 GB, free: 8.062 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001568/0.4025, allocations: 60.61 kB / 1.351 GB, free: 8.004 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007726/0.4033, allocations: 370.6 kB / 1.352 GB, free: 7.617 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.893e-05/0.4033, allocations: 20.44 kB / 1.352 GB, free: 7.598 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.186e-05/0.4033, allocations: 35.98 kB / 1.352 GB, free: 7.562 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004829/0.4038, allocations: 207.2 kB / 1.352 GB, free: 7.352 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.445e-05/0.4038, allocations: 3.984 kB / 1.352 GB, free: 7.348 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.457e-05/0.4039, allocations: 8 kB / 1.352 GB, free: 7.34 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.396e-06/0.4039, allocations: 4 kB / 1.352 GB, free: 7.336 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004106/0.4043, allocations: 161.6 kB / 1.352 GB, free: 7.18 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001593/0.4059, allocations: 0.7022 MB / 1.353 GB, free: 6.441 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003042/0.4062, allocations: 130.5 kB / 1.353 GB, free: 6.305 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001784/0.4064, allocations: 72.81 kB / 1.353 GB, free: 6.23 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000142/0.4065, allocations: 23.98 kB / 1.353 GB, free: 6.207 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.844e-05/0.4065, allocations: 34.56 kB / 1.353 GB, free: 6.164 MB / 1.045 GB Notification: Performance of pre-optimization done (n=14): time 1.352e-06/0.4065, allocations: 0 / 1.353 GB, free: 6.164 MB / 1.045 GB Notification: Performance of matching and sorting (n=14): time 0.0006495/0.4072, allocations: 241.2 kB / 1.353 GB, free: 5.922 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.512e-05/0.4072, allocations: 55.41 kB / 1.353 GB, free: 5.855 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005162/0.4078, allocations: 434 kB / 1.354 GB, free: 5.426 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 3.348e-05/0.4078, allocations: 29.7 kB / 1.354 GB, free: 5.391 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002109/0.408, allocations: 244.7 kB / 1.354 GB, free: 5.148 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 4.409e-05/0.408, allocations: 47.53 kB / 1.354 GB, free: 5.102 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001109/0.4081, allocations: 69.62 kB / 1.354 GB, free: 5.027 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001866/0.4083, allocations: 350.8 kB / 1.354 GB, free: 4.676 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001931/0.4085, allocations: 68.81 kB / 1.355 GB, free: 4.605 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004281/0.409, allocations: 407.3 kB / 1.355 GB, free: 4.121 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003855/0.4093, allocations: 176.4 kB / 1.355 GB, free: 3.941 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.4093, allocations: 0 / 1.355 GB, free: 3.941 MB / 1.045 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000562/0.4099, allocations: 253.2 kB / 1.355 GB, free: 3.688 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.56e-05/0.4099, allocations: 4 kB / 1.355 GB, free: 3.684 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.365e-06/0.4099, allocations: 4.094 kB / 1.355 GB, free: 3.68 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.711e-05/0.4099, allocations: 3.984 kB / 1.355 GB, free: 3.676 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002819/0.4102, allocations: 47.91 kB / 1.355 GB, free: 3.629 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.105e-06/0.4102, allocations: 4 kB / 1.355 GB, free: 3.625 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003168/0.4106, allocations: 35.86 kB / 1.355 GB, free: 3.59 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.702e-05/0.4106, allocations: 12.08 kB / 1.355 GB, free: 3.578 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003076/0.4109, allocations: 192 kB / 1.356 GB, free: 3.387 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000424/0.4113, allocations: 418.4 kB / 1.356 GB, free: 2.883 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000362/0.4117, allocations: 172.1 kB / 1.356 GB, free: 2.699 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.223e-06/0.4117, allocations: 0 / 1.356 GB, free: 2.699 MB / 1.045 GB Notification: Performance of matching and sorting (n=24) (initialization_lambda0): time 0.000545/0.4122, allocations: 246.9 kB / 1.356 GB, free: 2.453 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 8.285e-06/0.4122, allocations: 4 kB / 1.356 GB, free: 2.449 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.797e-06/0.4122, allocations: 4 kB / 1.356 GB, free: 2.445 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.875e-06/0.4122, allocations: 0 / 1.356 GB, free: 2.445 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002284/0.4125, allocations: 51.97 kB / 1.356 GB, free: 2.395 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.618e-06/0.4125, allocations: 8 kB / 1.356 GB, free: 2.387 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003233/0.4128, allocations: 27.92 kB / 1.357 GB, free: 2.359 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.434e-05/0.4128, allocations: 8 kB / 1.357 GB, free: 2.352 MB / 1.045 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 24 * 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.0001504/0.413, allocations: 208.1 kB / 1.357 GB, free: 2.141 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.798e-05/0.4131, allocations: 39.72 kB / 1.357 GB, free: 2.102 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006138/0.4137, allocations: 250.5 kB / 1.357 GB, free: 1.848 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.125e-06/0.4137, allocations: 0 / 1.357 GB, free: 1.848 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.584e-06/0.4137, allocations: 11.94 kB / 1.357 GB, free: 1.836 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.064e-06/0.4137, allocations: 7.922 kB / 1.357 GB, free: 1.828 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001041/0.4147, allocations: 0.6144 MB / 1.358 GB, free: 1.164 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/0.4147, allocations: 0 / 1.358 GB, free: 1.164 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000136/0.4149, allocations: 32.09 kB / 1.358 GB, free: 1.133 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.604e-06/0.4149, allocations: 4 kB / 1.358 GB, free: 1.129 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.451e-05/0.4149, allocations: 4 kB / 1.358 GB, free: 1.125 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.837e-06/0.4149, allocations: 4 kB / 1.358 GB, free: 1.121 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.4149, allocations: 3.938 kB / 1.358 GB, free: 1.117 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005232/0.4154, allocations: 344.7 kB / 1.358 GB, free: 0.7539 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001196/0.4155, allocations: 55.67 kB / 1.358 GB, free: 0.6992 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.292e-05/0.4156, allocations: 7.984 kB / 1.358 GB, free: 0.6914 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000202/0.4158, allocations: 15.98 kB / 1.358 GB, free: 0.6758 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.132e-05/0.4158, allocations: 15.92 kB / 1.358 GB, free: 0.6602 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.588e-05/0.4159, allocations: 11.98 kB / 1.358 GB, free: 0.6484 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0003507/0.4162, allocations: 307.1 kB / 1.358 GB, free: 360 kB / 1.045 GB Notification: Performance of sort global known variables: time 8e-08/0.4162, allocations: 0 / 1.358 GB, free: 360 kB / 1.045 GB Notification: Performance of remove unused functions: time 0.0006768/0.4169, allocations: 211.5 kB / 1.359 GB, free: 148 kB / 1.045 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.001747/0.4186, allocations: 493.6 kB / 1.359 GB, free: 15.81 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0006984/0.4193, allocations: 257.7 kB / 1.359 GB, free: 15.56 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.4193, allocations: 0 / 1.359 GB, free: 15.56 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0002104/0.4195, allocations: 84.27 kB / 1.359 GB, free: 15.48 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009435/0.4205, allocations: 180.1 kB / 1.36 GB, free: 15.31 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001301/0.4218, allocations: 0.7049 MB / 1.36 GB, free: 14.56 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002485/0.422, allocations: 235.6 kB / 1.36 GB, free: 14.31 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0002588/0.4223, allocations: 83.14 kB / 1.361 GB, free: 14.23 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.007e-05/0.4224, allocations: 35.42 kB / 1.361 GB, free: 14.19 MB / 1.061 GB Notification: Performance of SimCode: time 3.31e-07/0.4224, allocations: 3.938 kB / 1.361 GB, free: 14.19 MB / 1.061 GB Notification: Performance of Templates: time 0.0169/0.4393, allocations: 8.918 MB / 1.369 GB, free: 5.465 MB / 1.061 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe ; mkfifo Buildings_12_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe >> ../files/Buildings_12_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.sim & ./Buildings_12_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable -abortSlowSimulation -alarm=400 -s gbode -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesTable.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 9.429084054994746]