Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.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.001974/0.001974, 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.002547/0.002547, allocations: 214.4 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.459/1.459, allocations: 230.6 MB / 256.8 MB, free: 8.027 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.178/3.178, allocations: 0.49 GB / 0.7958 GB, free: 33.48 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.CHPs.BaseClasses.Validation.AssertWaterFlow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|assWatMas.mWat_flow|per.mWatMin_flow|runSig.y|assWatMas.assMes.u",fileNamePrefix="Buildings_12_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow") translateModel(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|assWatMas.mWat_flow|per.mWatMin_flow|runSig.y|assWatMas.assMes.u",fileNamePrefix="Buildings_12_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow") [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.002036/0.002036, allocations: 63.36 kB / 1.155 GB, free: 25.49 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3573/0.3593, allocations: 176.1 MB / 1.327 GB, free: 1.434 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.004554/0.3639, allocations: 2.539 MB / 1.33 GB, free: 14.89 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.003065/0.3669, allocations: 1.731 MB / 1.331 GB, free: 13.15 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002188/0.3671, allocations: 7.938 kB / 1.331 GB, free: 13.14 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.001004/0.3682, allocations: 326.7 kB / 1.332 GB, free: 12.82 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0006349/0.3688, allocations: 274.8 kB / 1.332 GB, free: 12.55 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005477/0.3693, allocations: 199.5 kB / 1.332 GB, free: 12.36 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0005163/0.3699, allocations: 414.6 kB / 1.332 GB, free: 11.95 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001656/0.37, allocations: 56.81 kB / 1.333 GB, free: 11.89 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002705/0.3703, allocations: 175.3 kB / 1.333 GB, free: 11.71 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002551/0.3705, allocations: 187.1 kB / 1.333 GB, free: 11.53 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 4.811e-05/0.3706, allocations: 20 kB / 1.333 GB, free: 11.51 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002093/0.3708, allocations: 79.89 kB / 1.333 GB, free: 11.43 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001546/0.371, allocations: 139.5 kB / 1.333 GB, free: 11.3 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001999/0.3712, allocations: 198.5 kB / 1.333 GB, free: 11.1 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0006694/0.3718, allocations: 0.5132 MB / 1.334 GB, free: 10.59 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.3718, allocations: 0 / 1.334 GB, free: 10.59 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.643e-06/0.3718, allocations: 0 / 1.334 GB, free: 10.59 MB / 1.029 GB Notification: Performance of Transformations before backend: time 7.303e-06/0.3718, allocations: 0 / 1.334 GB, free: 10.59 MB / 1.029 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.001326/0.3732, allocations: 0.793 MB / 1.335 GB, free: 9.754 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.136e-05/0.3732, allocations: 12.03 kB / 1.335 GB, free: 9.742 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001173/0.3733, allocations: 64.52 kB / 1.335 GB, free: 9.68 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006016/0.3739, allocations: 383.6 kB / 1.335 GB, free: 9.277 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.148e-05/0.3739, allocations: 11.94 kB / 1.335 GB, free: 9.266 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.504e-05/0.374, allocations: 8 kB / 1.335 GB, free: 9.258 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000325/0.3743, allocations: 141.2 kB / 1.335 GB, free: 9.109 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.808e-06/0.3743, allocations: 0 / 1.335 GB, free: 9.109 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.264e-05/0.3743, allocations: 11.98 kB / 1.335 GB, free: 9.098 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.843e-06/0.3743, allocations: 3.938 kB / 1.335 GB, free: 9.094 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001771/0.3745, allocations: 63.97 kB / 1.335 GB, free: 9.031 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009512/0.3755, allocations: 0.5423 MB / 1.336 GB, free: 8.445 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003183/0.3758, allocations: 122.7 kB / 1.336 GB, free: 8.316 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001104/0.3759, allocations: 48.83 kB / 1.336 GB, free: 8.266 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.686e-05/0.3759, allocations: 7.938 kB / 1.336 GB, free: 8.258 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000251/0.3762, allocations: 115.3 kB / 1.336 GB, free: 8.133 MB / 1.029 GB Notification: Performance of pre-optimization done (n=13): time 1.493e-06/0.3762, allocations: 0 / 1.336 GB, free: 8.133 MB / 1.029 GB Notification: Performance of matching and sorting (n=13): time 0.0005495/0.3767, allocations: 243.4 kB / 1.336 GB, free: 7.891 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.092e-05/0.3768, allocations: 81.11 kB / 1.336 GB, free: 7.793 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008395/0.3776, allocations: 0.7072 MB / 1.337 GB, free: 7.074 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.851e-05/0.3776, allocations: 25.7 kB / 1.337 GB, free: 7.043 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002535/0.3779, allocations: 272.4 kB / 1.337 GB, free: 6.77 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 4.193e-05/0.3779, allocations: 35.73 kB / 1.337 GB, free: 6.734 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.529e-05/0.378, allocations: 57.69 kB / 1.337 GB, free: 6.672 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0002114/0.3783, allocations: 374.8 kB / 1.338 GB, free: 6.297 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001611/0.3784, allocations: 71.97 kB / 1.338 GB, free: 6.227 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002026/0.3786, allocations: 121.1 kB / 1.338 GB, free: 6.09 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002645/0.3789, allocations: 136.2 kB / 1.338 GB, free: 5.949 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.554e-06/0.3789, allocations: 7.922 kB / 1.338 GB, free: 5.941 MB / 1.029 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004735/0.3794, allocations: 279.3 kB / 1.338 GB, free: 5.664 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.812e-05/0.3794, allocations: 8 kB / 1.338 GB, free: 5.656 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.3794, allocations: 0 / 1.338 GB, free: 5.656 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.673e-05/0.3794, allocations: 0 / 1.338 GB, free: 5.656 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001765/0.3796, allocations: 35.92 kB / 1.338 GB, free: 5.621 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.995e-06/0.3796, allocations: 8.062 kB / 1.338 GB, free: 5.613 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001624/0.3797, allocations: 23.88 kB / 1.338 GB, free: 5.59 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.698e-05/0.3798, allocations: 8 kB / 1.338 GB, free: 5.582 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.runSig.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.mWat_flow.tab.nextTimeEvent,$whenCondition1,runSig.combiTimeTable.nextTimeEventScaled,$PRE.runSig.combiTimeTable.nextTimeEventScaled,runSig.combiTimeTable.nextTimeEvent,runSig.y,mWat_flow.tab.nextTimeEventScaled,$PRE.mWat_flow.tab.nextTimeEventScaled,mWat_flow.tab.nextTimeEvent,assWatMas.hys.y,$PRE.assWatMas.hys.y,assWatMas.assMes.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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.0002467/0.38, allocations: 220 kB / 1.339 GB, free: 5.355 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.099e-05/0.3801, allocations: 59.56 kB / 1.339 GB, free: 5.297 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000407/0.3805, allocations: 202.9 kB / 1.339 GB, free: 5.09 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.536e-06/0.3805, allocations: 4 kB / 1.339 GB, free: 5.086 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.3805, allocations: 0 / 1.339 GB, free: 5.086 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.3805, allocations: 0 / 1.339 GB, free: 5.086 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003833/0.3809, allocations: 348.4 kB / 1.339 GB, free: 4.703 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.3809, allocations: 7.875 kB / 1.339 GB, free: 4.695 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.409e-05/0.3809, allocations: 15.94 kB / 1.339 GB, free: 4.68 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.3809, allocations: 0 / 1.339 GB, free: 4.68 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.404e-05/0.381, allocations: 3.984 kB / 1.339 GB, free: 4.676 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.128e-06/0.381, allocations: 4 kB / 1.339 GB, free: 4.672 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.381, allocations: 0 / 1.339 GB, free: 4.672 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00037/0.3813, allocations: 221.7 kB / 1.339 GB, free: 4.438 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000105/0.3814, allocations: 63.48 kB / 1.34 GB, free: 4.375 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.072e-05/0.3815, allocations: 4 kB / 1.34 GB, free: 4.371 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001146/0.3816, allocations: 11.98 kB / 1.34 GB, free: 4.359 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.413e-05/0.3817, allocations: 19.97 kB / 1.34 GB, free: 4.34 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.444e-05/0.3817, allocations: 4 kB / 1.34 GB, free: 4.336 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0005627/0.3823, allocations: 483 kB / 1.34 GB, free: 3.871 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3823, allocations: 4 kB / 1.34 GB, free: 3.867 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003184/0.3826, allocations: 71.83 kB / 1.34 GB, free: 3.797 MB / 1.029 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,$whenCondition1,assWatMas.assMes.u,assWatMas.hys.y,mWat_flow.tab.nextTimeEvent,mWat_flow.tab.nextTimeEventScaled,runSig.y,runSig.combiTimeTable.nextTimeEvent,runSig.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 5 (assWatMas.hys.y,mWat_flow.tab.nextTimeEvent,runSig.combiTimeTable.nextTimeEvent,mWat_flow.tab.nextTimeEventScaled,runSig.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.001616/0.3842, allocations: 436.1 kB / 1.341 GB, free: 3.523 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003648/0.3846, allocations: 143.8 kB / 1.341 GB, free: 3.383 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.3846, allocations: 0 / 1.341 GB, free: 3.383 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001435/0.3847, allocations: 56.03 kB / 1.341 GB, free: 3.328 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004896/0.3852, allocations: 107.6 kB / 1.341 GB, free: 3.23 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001434/0.3866, allocations: 0.9009 MB / 1.342 GB, free: 2.293 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005111/0.3871, allocations: 0.8689 MB / 1.343 GB, free: 1.398 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.633e-05/0.3872, allocations: 35.42 kB / 1.343 GB, free: 1.367 MB / 1.029 GB Notification: Performance of SimCode: time 5.41e-07/0.3872, allocations: 0 / 1.343 GB, free: 1.367 MB / 1.029 GB Notification: Performance of Templates: time 0.009981/0.3972, allocations: 5.898 MB / 1.348 GB, free: 11.5 MB / 1.045 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; mkfifo Buildings_12_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe >> ../files/Buildings_12_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.sim & ./Buildings_12_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.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: 12.277514232991962]