Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.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.001309/0.001309, allocations: 110.2 kB / 19.69 MB, free: 2.254 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.001457/0.001457, allocations: 212.3 kB / 23.01 MB, free: 4.566 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.463/1.463, allocations: 230.6 MB / 256.8 MB, free: 8.031 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.364/3.364, allocations: 0.505 GB / 0.8108 GB, free: 22.04 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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.TwoWayValveTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|valTab.m_flow|kv.y",fileNamePrefix="Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|valTab.m_flow|kv.y",fileNamePrefix="Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable") [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.002054/0.002054, allocations: 69.95 kB / 1.178 GB, free: 16.82 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.369/0.371, allocations: 180.2 MB / 1.354 GB, free: 7.887 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable): time 0.0237/0.3948, allocations: 17.89 MB / 1.372 GB, free: 5.93 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.008816/0.4036, allocations: 5.085 MB / 1.377 GB, free: 0.8359 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007235/0.4043, allocations: 19.81 kB / 1.377 GB, free: 0.8164 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0009876/0.4053, allocations: 266.3 kB / 1.377 GB, free: 0.5547 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.002179/0.4075, allocations: 0.6816 MB / 1.377 GB, free: 15.87 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.002303/0.4098, allocations: 0.7575 MB / 1.378 GB, free: 15.12 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.001641/0.4114, allocations: 0.978 MB / 1.379 GB, free: 14.14 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005016/0.4119, allocations: 285.6 kB / 1.379 GB, free: 13.85 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00105/0.413, allocations: 490 kB / 1.38 GB, free: 13.37 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004936/0.4134, allocations: 326.6 kB / 1.38 GB, free: 13.05 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 5.707e-05/0.4135, allocations: 28 kB / 1.38 GB, free: 13.02 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001502/0.415, allocations: 0.7565 MB / 1.381 GB, free: 12.26 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 0.0001639/0.4152, allocations: 147.4 kB / 1.381 GB, free: 12.12 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 0.0002699/0.4154, allocations: 250.6 kB / 1.381 GB, free: 11.87 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.001599/0.417, allocations: 0.8795 MB / 1.382 GB, free: 10.99 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 7.755e-06/0.417, allocations: 4 kB / 1.382 GB, free: 10.98 MB / 1.076 GB Notification: Performance of FrontEnd: time 2.524e-06/0.417, allocations: 0 / 1.382 GB, free: 10.98 MB / 1.076 GB Notification: Performance of Transformations before backend: time 1.072e-05/0.4171, allocations: 0 / 1.382 GB, free: 10.98 MB / 1.076 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001402/0.4185, allocations: 0.8289 MB / 1.383 GB, free: 10.12 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 4.147e-05/0.4185, allocations: 8.031 kB / 1.383 GB, free: 10.12 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001871/0.4187, allocations: 64.56 kB / 1.383 GB, free: 10.05 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007892/0.4195, allocations: 406.9 kB / 1.383 GB, free: 9.633 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.655e-05/0.4195, allocations: 28.44 kB / 1.384 GB, free: 9.605 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.575e-05/0.4196, allocations: 28 kB / 1.384 GB, free: 9.578 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005683/0.4202, allocations: 285.2 kB / 1.384 GB, free: 9.277 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.231e-05/0.4202, allocations: 0 / 1.384 GB, free: 9.277 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.819e-05/0.4202, allocations: 12 kB / 1.384 GB, free: 9.266 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.171e-05/0.4202, allocations: 4 kB / 1.384 GB, free: 9.262 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005058/0.4207, allocations: 193.8 kB / 1.384 GB, free: 9.07 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002038/0.4227, allocations: 1.434 MB / 1.385 GB, free: 7.539 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003311/0.4231, allocations: 154.8 kB / 1.386 GB, free: 7.379 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001848/0.4233, allocations: 76.81 kB / 1.386 GB, free: 7.301 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001329/0.4246, allocations: 0.5779 MB / 1.386 GB, free: 6.703 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.36e-05/0.4246, allocations: 34.5 kB / 1.386 GB, free: 6.66 MB / 1.076 GB Notification: Performance of pre-optimization done (n=15): time 1.593e-06/0.4246, allocations: 0 / 1.386 GB, free: 6.66 MB / 1.076 GB Notification: Performance of matching and sorting (n=15): time 0.0006377/0.4253, allocations: 250.7 kB / 1.386 GB, free: 6.41 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.81e-05/0.4253, allocations: 55.41 kB / 1.387 GB, free: 6.344 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008109/0.4261, allocations: 0.5926 MB / 1.387 GB, free: 5.742 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 2.784e-05/0.4262, allocations: 25.7 kB / 1.387 GB, free: 5.711 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002492/0.4264, allocations: 276.5 kB / 1.387 GB, free: 5.438 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 4.885e-05/0.4264, allocations: 55.52 kB / 1.387 GB, free: 5.383 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001175/0.4266, allocations: 73.92 kB / 1.388 GB, free: 5.301 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.0002301/0.4268, allocations: 358.8 kB / 1.388 GB, free: 4.941 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001939/0.427, allocations: 85.88 kB / 1.388 GB, free: 4.855 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003168/0.4273, allocations: 214.7 kB / 1.388 GB, free: 4.598 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000419/0.4277, allocations: 229.2 kB / 1.388 GB, free: 4.34 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.429e-06/0.4277, allocations: 7.984 kB / 1.388 GB, free: 4.332 MB / 1.076 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.000633/0.4284, allocations: 315.2 kB / 1.389 GB, free: 4.02 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 2.178e-05/0.4284, allocations: 7.938 kB / 1.389 GB, free: 4.012 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.012e-05/0.4284, allocations: 7.938 kB / 1.389 GB, free: 4.004 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.993e-05/0.4284, allocations: 4 kB / 1.389 GB, free: 4 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002567/0.4287, allocations: 63.89 kB / 1.389 GB, free: 3.938 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.111e-05/0.4287, allocations: 7.938 kB / 1.389 GB, free: 3.93 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003116/0.429, allocations: 43.77 kB / 1.389 GB, free: 3.887 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.641e-05/0.429, allocations: 15.98 kB / 1.389 GB, free: 3.871 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000459/0.4295, allocations: 220.7 kB / 1.389 GB, free: 3.652 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003134/0.4298, allocations: 210.5 kB / 1.389 GB, free: 3.398 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005091/0.4303, allocations: 234.3 kB / 1.389 GB, free: 3.137 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.343e-06/0.4303, allocations: 0 / 1.389 GB, free: 3.137 MB / 1.076 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0006935/0.431, allocations: 315 kB / 1.39 GB, free: 2.824 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.16e-05/0.431, allocations: 8 kB / 1.39 GB, free: 2.816 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.431, allocations: 3.938 kB / 1.39 GB, free: 2.812 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.751e-06/0.431, allocations: 4 kB / 1.39 GB, free: 2.809 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002243/0.4313, allocations: 59.91 kB / 1.39 GB, free: 2.75 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.894e-06/0.4313, allocations: 7.984 kB / 1.39 GB, free: 2.742 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003245/0.4316, allocations: 39.81 kB / 1.39 GB, free: 2.703 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.859e-05/0.4316, allocations: 16 kB / 1.39 GB, free: 2.688 MB / 1.076 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (33): * Single equations (assignments): 33 * 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.0001519/0.4318, allocations: 204.2 kB / 1.39 GB, free: 2.48 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.066e-05/0.4319, allocations: 55.61 kB / 1.39 GB, free: 2.426 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006996/0.4326, allocations: 267.8 kB / 1.39 GB, free: 2.156 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.812e-06/0.4326, allocations: 0 / 1.39 GB, free: 2.156 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.4326, allocations: 192 / 1.39 GB, free: 2.156 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.542e-06/0.4326, allocations: 3.984 kB / 1.39 GB, free: 2.152 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001116/0.4337, allocations: 0.717 MB / 1.391 GB, free: 1.375 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.578e-06/0.4337, allocations: 0 / 1.391 GB, free: 1.375 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001222/0.4338, allocations: 27.98 kB / 1.391 GB, free: 1.348 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.969e-06/0.4338, allocations: 4.125 kB / 1.391 GB, free: 1.344 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.467e-05/0.4338, allocations: 12 kB / 1.391 GB, free: 1.332 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.438e-06/0.4339, allocations: 3.938 kB / 1.391 GB, free: 1.328 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.4339, allocations: 0 / 1.391 GB, free: 1.328 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005342/0.4344, allocations: 362.5 kB / 1.391 GB, free: 0.9453 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001479/0.4345, allocations: 71.58 kB / 1.392 GB, free: 0.875 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.496e-05/0.4346, allocations: 4 kB / 1.392 GB, free: 0.8711 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000187/0.4348, allocations: 11.98 kB / 1.392 GB, free: 0.8594 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.752e-05/0.4348, allocations: 31.78 kB / 1.392 GB, free: 0.8281 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.704e-05/0.4349, allocations: 8.188 kB / 1.392 GB, free: 0.8203 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.0005005/0.4354, allocations: 422.8 kB / 1.392 GB, free: 420 kB / 1.076 GB Notification: Performance of sort global known variables: time 9e-08/0.4354, allocations: 7.938 kB / 1.392 GB, free: 412 kB / 1.076 GB Notification: Performance of remove unused functions: time 0.0007814/0.4361, allocations: 227.6 kB / 1.392 GB, free: 184 kB / 1.076 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 (17): * Single equations (assignments): 15 * 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.001666/0.4378, allocations: 477.6 kB / 1.393 GB, free: 15.83 MB / 1.092 GB Notification: Performance of simCode: created initialization part: time 0.0007478/0.4385, allocations: 302.4 kB / 1.393 GB, free: 15.54 MB / 1.092 GB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.4385, allocations: 0 / 1.393 GB, free: 15.54 MB / 1.092 GB Notification: Performance of simCode: created simulation system equations: time 0.0002067/0.4388, allocations: 91.83 kB / 1.393 GB, free: 15.45 MB / 1.092 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001192/0.4399, allocations: 252.3 kB / 1.393 GB, free: 15.21 MB / 1.092 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001686/0.4416, allocations: 0.8657 MB / 1.394 GB, free: 14.29 MB / 1.092 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005489/0.4422, allocations: 0.8467 MB / 1.395 GB, free: 13.42 MB / 1.092 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001076/0.4423, allocations: 39.42 kB / 1.395 GB, free: 13.38 MB / 1.092 GB Notification: Performance of SimCode: time 3e-07/0.4423, allocations: 4 kB / 1.395 GB, free: 13.38 MB / 1.092 GB Notification: Performance of Templates: time 0.01494/0.4572, allocations: 8.649 MB / 1.403 GB, free: 4.797 MB / 1.092 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.sim & ./Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValveTable.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.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: 13.645131850993494]