Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Templates.Components.Validation.Tanks.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.002485/0.002485, allocations: 93.47 kB / 19.44 MB, free: 340 kB / 13.93 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.003187/0.003187, allocations: 169.2 kB / 22.76 MB, free: 1.664 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 1.641/1.641, allocations: 177.1 MB / 203.1 MB, free: 5.602 MB / 186.7 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.394/3.394, allocations: 429.4 MB / 0.6729 GB, free: 4 MB / 0.6355 GB " [Timeout remaining time 176] Using package Buildings with version 14.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.Templates.Components.Validation.Tanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|intFlo.y|tan.V|sou.T|tan.sta_b.T|noTan.sta_b.T",fileNamePrefix="Buildings_latest_Buildings.Templates.Components.Validation.Tanks") translateModel(Buildings.Templates.Components.Validation.Tanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|intFlo.y|tan.V|sou.T|tan.sta_b.T|noTan.sta_b.T",fileNamePrefix="Buildings_latest_Buildings.Templates.Components.Validation.Tanks") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.663e-06/1.663e-06, allocations: 0 / 0.8774 GB, free: 6.66 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.827e-05/3.994e-05, allocations: 2.312 kB / 0.8774 GB, free: 6.656 MB / 0.8386 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/Templates/Components/Tanks/Buffer.mo:9:3-12:41:writable] Warning: Parameter noTan.V has no value, and is fixed during initialization (fixed=true), using available start value (start=0) as default value. Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Validation.Tanks): time 0.05441/0.05445, allocations: 43.11 MB / 0.9195 GB, free: 11.44 MB / 0.8855 GB Notification: Performance of NFInst.instExpressions: time 0.02209/0.07655, allocations: 11.44 MB / 0.9307 GB, free: 15.97 MB / 0.9011 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003076/0.07962, allocations: 71.38 kB / 0.9308 GB, free: 15.9 MB / 0.9011 GB Notification: Performance of NFTyping.typeComponents: time 0.001577/0.0812, allocations: 425 kB / 0.9312 GB, free: 15.48 MB / 0.9011 GB Notification: Performance of NFTyping.typeBindings: time 0.003874/0.08507, allocations: 1.259 MB / 0.9324 GB, free: 14.21 MB / 0.9011 GB Notification: Performance of NFTyping.typeClassSections: time 0.002053/0.08713, allocations: 0.7637 MB / 0.9331 GB, free: 13.45 MB / 0.9011 GB Notification: Performance of NFFlatten.flatten: time 0.003398/0.09052, allocations: 2.08 MB / 0.9352 GB, free: 11.36 MB / 0.9011 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000998/0.09152, allocations: 0.5239 MB / 0.9357 GB, free: 10.82 MB / 0.9011 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003166/0.09469, allocations: 1.267 MB / 0.9369 GB, free: 9.562 MB / 0.9011 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009187/0.09561, allocations: 0.5101 MB / 0.9374 GB, free: 9.051 MB / 0.9011 GB Notification: Performance of NFPackage.collectConstants: time 0.0001204/0.09573, allocations: 64 kB / 0.9375 GB, free: 8.988 MB / 0.9011 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001426/0.09715, allocations: 0.5182 MB / 0.938 GB, free: 8.469 MB / 0.9011 GB Notification: Performance of NFScalarize.scalarize: time 0.0002314/0.09739, allocations: 191.2 kB / 0.9382 GB, free: 8.281 MB / 0.9011 GB Notification: Performance of NFVerifyModel.verify: time 0.0004103/0.0978, allocations: 279.3 kB / 0.9384 GB, free: 8.008 MB / 0.9011 GB Notification: Performance of NFConvertDAE.convert: time 0.002172/0.09997, allocations: 1.281 MB / 0.9397 GB, free: 6.723 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.09997, allocations: 0 / 0.9397 GB, free: 6.723 MB / 0.9011 GB Notification: Performance of FrontEnd: time 1.954e-06/0.09997, allocations: 0 / 0.9397 GB, free: 6.723 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 1.164e-05/0.09999, allocations: 0 / 0.9397 GB, free: 6.723 MB / 0.9011 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 124 * Number of variables: 124 Notification: Performance of Generate backend data structure: time 0.002017/0.102, allocations: 1.157 MB / 0.9408 GB, free: 5.527 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 3.915e-05/0.102, allocations: 8.031 kB / 0.9408 GB, free: 5.52 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003296/0.1024, allocations: 132.4 kB / 0.9409 GB, free: 5.391 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00127/0.1036, allocations: 0.6463 MB / 0.9416 GB, free: 4.719 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.418e-05/0.1037, allocations: 37.38 kB / 0.9416 GB, free: 4.684 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001066/0.1038, allocations: 52.38 kB / 0.9417 GB, free: 4.633 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001152/0.1049, allocations: 0.6669 MB / 0.9423 GB, free: 3.906 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.35e-05/0.105, allocations: 3.938 kB / 0.9423 GB, free: 3.902 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.712e-05/0.105, allocations: 24 kB / 0.9423 GB, free: 3.879 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.585e-05/0.1051, allocations: 15.98 kB / 0.9424 GB, free: 3.863 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006784/0.1057, allocations: 339.7 kB / 0.9427 GB, free: 3.527 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003678/0.1094, allocations: 2.624 MB / 0.9452 GB, free: 0.8242 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007697/0.1102, allocations: 227 kB / 0.9455 GB, free: 0.5898 MB / 0.9011 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002002/0.1104, allocations: 87.66 kB / 0.9455 GB, free: 0.5 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001921/0.1123, allocations: 0.7886 MB / 0.9463 GB, free: 15.69 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.352e-05/0.1124, allocations: 37.39 kB / 0.9463 GB, free: 15.64 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=20): time 2.675e-06/0.1124, allocations: 4 kB / 0.9463 GB, free: 15.64 MB / 0.9167 GB Notification: Performance of matching and sorting (n=20): time 0.0007173/0.1131, allocations: 265.2 kB / 0.9466 GB, free: 15.38 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.96e-05/0.1131, allocations: 59.41 kB / 0.9467 GB, free: 15.3 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009237/0.1141, allocations: 0.6353 MB / 0.9473 GB, free: 14.65 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 3.975e-05/0.1141, allocations: 29.7 kB / 0.9473 GB, free: 14.62 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004375/0.1145, allocations: 434.6 kB / 0.9477 GB, free: 14.19 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001085/0.1147, allocations: 87.31 kB / 0.9478 GB, free: 14.1 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001563/0.1148, allocations: 95.3 kB / 0.9479 GB, free: 14 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0003809/0.1152, allocations: 0.5703 MB / 0.9485 GB, free: 13.42 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001658/0.1154, allocations: 71.73 kB / 0.9485 GB, free: 13.35 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006113/0.116, allocations: 388 kB / 0.9489 GB, free: 12.86 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005558/0.1165, allocations: 378.8 kB / 0.9493 GB, free: 12.4 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.1165, allocations: 3.938 kB / 0.9493 GB, free: 12.39 MB / 0.9167 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0006971/0.1172, allocations: 373.8 kB / 0.9496 GB, free: 12.02 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 2.234e-05/0.1172, allocations: 10.34 kB / 0.9496 GB, free: 12.02 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.181e-05/0.1173, allocations: 4 kB / 0.9496 GB, free: 12.01 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.735e-05/0.1173, allocations: 8.625 kB / 0.9496 GB, free: 12 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002764/0.1176, allocations: 79.83 kB / 0.9497 GB, free: 11.93 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.747e-05/0.1176, allocations: 15.94 kB / 0.9497 GB, free: 11.91 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002782/0.1179, allocations: 35.78 kB / 0.9498 GB, free: 11.88 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.975e-05/0.1179, allocations: 27.97 kB / 0.9498 GB, free: 11.85 MB / 0.9167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 1 (intFlo.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (42): * Single equations (assignments): 42 * 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.0002922/0.1182, allocations: 236.5 kB / 0.95 GB, free: 11.61 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001136/0.1183, allocations: 59.67 kB / 0.9501 GB, free: 11.55 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000588/0.1189, allocations: 270.6 kB / 0.9503 GB, free: 11.28 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.2e-05/0.1189, allocations: 3.984 kB / 0.9503 GB, free: 11.27 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.585e-05/0.1189, allocations: 7.938 kB / 0.9503 GB, free: 11.27 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004842/0.1194, allocations: 426.7 kB / 0.9507 GB, free: 10.78 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001543/0.121, allocations: 0.9299 MB / 0.9517 GB, free: 9.793 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.907e-06/0.121, allocations: 7.984 kB / 0.9517 GB, free: 9.785 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001939/0.1212, allocations: 43.92 kB / 0.9517 GB, free: 9.742 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.312e-06/0.1212, allocations: 4 kB / 0.9517 GB, free: 9.738 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.517e-05/0.1212, allocations: 7.984 kB / 0.9517 GB, free: 9.73 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.208e-06/0.1212, allocations: 7.984 kB / 0.9517 GB, free: 9.723 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.1212, allocations: 3.938 kB / 0.9517 GB, free: 9.719 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007761/0.122, allocations: 0.5142 MB / 0.9522 GB, free: 9.168 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001928/0.1222, allocations: 79.56 kB / 0.9523 GB, free: 9.09 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.394e-05/0.1222, allocations: 8 kB / 0.9523 GB, free: 9.082 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002396/0.1225, allocations: 11.94 kB / 0.9523 GB, free: 9.07 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.058e-05/0.1225, allocations: 19.97 kB / 0.9523 GB, free: 9.051 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.848e-05/0.1225, allocations: 11.98 kB / 0.9524 GB, free: 9.039 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0004719/0.123, allocations: 398.8 kB / 0.9527 GB, free: 8.652 MB / 0.9167 GB Notification: Performance of sort global known variables: time 8.1e-08/0.123, allocations: 0 / 0.9527 GB, free: 8.652 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0007879/0.1238, allocations: 235.4 kB / 0.953 GB, free: 8.422 MB / 0.9167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (tan.vol.dynBal.U,intFlo.y) * 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 (23): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.0005673/0.1244, allocations: 298.6 kB / 0.9532 GB, free: 8.117 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0005222/0.1249, allocations: 233.2 kB / 0.9535 GB, free: 7.887 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.1249, allocations: 0 / 0.9535 GB, free: 7.887 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.0002055/0.1251, allocations: 114.8 kB / 0.9536 GB, free: 7.773 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001397/0.1265, allocations: 285.7 kB / 0.9538 GB, free: 7.5 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0018/0.1283, allocations: 1.005 MB / 0.9548 GB, free: 6.445 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003501/0.1287, allocations: 307.4 kB / 0.9551 GB, free: 6.117 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0003319/0.129, allocations: 100.5 kB / 0.9552 GB, free: 6.016 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001057/0.1291, allocations: 44.48 kB / 0.9553 GB, free: 5.973 MB / 0.9167 GB Notification: Performance of SimCode: time 6.32e-07/0.1291, allocations: 0 / 0.9553 GB, free: 5.973 MB / 0.9167 GB Notification: Performance of Templates: time 0.02176/0.1509, allocations: 10.81 MB / 0.9658 GB, free: 11.39 MB / 0.9323 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Templates.Components.Validation.Tanks.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Templates.Components.Validation.Tanks.pipe ; mkfifo Buildings_latest_Buildings.Templates.Components.Validation.Tanks.pipe ; head -c 1048576 < Buildings_latest_Buildings.Templates.Components.Validation.Tanks.pipe >> ../files/Buildings_latest_Buildings.Templates.Components.Validation.Tanks.sim & ./Buildings_latest_Buildings.Templates.Components.Validation.Tanks -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Templates.Components.Validation.Tanks.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Templates.Components.Validation.Tanks_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Templates_Components_Validation_Tanks.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Templates.Components.Validation.Tanks.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.131239903043024]