Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001548/0.001548, allocations: 80.41 kB / 20.23 MB, free: 4.199 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.001698/0.001698, allocations: 161.7 kB / 23.54 MB, free: 0.8906 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.573/1.573, allocations: 177.1 MB / 203.9 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 2.819/2.819, allocations: 359 MB / 0.6048 GB, free: 10.97 MB / 0.573 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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_11_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_11_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.224e-06/2.224e-06, allocations: 0.7656 kB / 0.7864 GB, free: 12.81 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.86e-05/4.083e-05, allocations: 5.641 kB / 0.7864 GB, free: 12.81 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.005196/0.005237, allocations: 2.43 MB / 0.7888 GB, free: 10.38 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.003906/0.009143, allocations: 1.619 MB / 0.7903 GB, free: 8.762 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004119/0.009555, allocations: 4 kB / 0.7903 GB, free: 8.758 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.001494/0.01105, allocations: 333.6 kB / 0.7907 GB, free: 8.438 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 0.001034/0.01208, allocations: 267.1 kB / 0.7909 GB, free: 8.18 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006967/0.01278, allocations: 208.7 kB / 0.7911 GB, free: 7.977 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0008094/0.01359, allocations: 424 kB / 0.7915 GB, free: 7.562 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001879/0.01378, allocations: 44.84 kB / 0.7916 GB, free: 7.523 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004649/0.01424, allocations: 215.4 kB / 0.7918 GB, free: 7.312 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002622/0.0145, allocations: 151.5 kB / 0.7919 GB, free: 7.164 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 5.224e-05/0.01456, allocations: 21.5 kB / 0.7919 GB, free: 7.145 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002367/0.01479, allocations: 87.81 kB / 0.792 GB, free: 7.059 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 0.0001844/0.01498, allocations: 135.5 kB / 0.7921 GB, free: 6.926 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 0.0001586/0.01514, allocations: 99.58 kB / 0.7922 GB, free: 6.828 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0007865/0.01592, allocations: 0.4915 MB / 0.7927 GB, free: 6.336 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 6.182e-06/0.01593, allocations: 0 / 0.7927 GB, free: 6.336 MB / 0.7448 GB Notification: Performance of FrontEnd: time 2.314e-06/0.01593, allocations: 0 / 0.7927 GB, free: 6.336 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 9.217e-06/0.01594, allocations: 0.5312 kB / 0.7927 GB, free: 6.336 MB / 0.7448 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.00161/0.01755, allocations: 0.7867 MB / 0.7935 GB, free: 5.512 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 6.117e-05/0.01761, allocations: 16.02 kB / 0.7935 GB, free: 5.496 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001739/0.01778, allocations: 65.31 kB / 0.7936 GB, free: 5.434 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007276/0.01851, allocations: 391 kB / 0.7939 GB, free: 5.027 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.331e-05/0.01855, allocations: 12.55 kB / 0.794 GB, free: 5.016 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.145e-05/0.01858, allocations: 13.75 kB / 0.794 GB, free: 5.004 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003691/0.01895, allocations: 149.1 kB / 0.7941 GB, free: 4.848 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.117e-05/0.01896, allocations: 0 / 0.7941 GB, free: 4.848 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.788e-05/0.01898, allocations: 9.141 kB / 0.7941 GB, free: 4.84 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.778e-06/0.01899, allocations: 4 kB / 0.7941 GB, free: 4.836 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002278/0.01922, allocations: 67.97 kB / 0.7942 GB, free: 4.77 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001387/0.02061, allocations: 0.5009 MB / 0.7947 GB, free: 4.238 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003723/0.02098, allocations: 124 kB / 0.7948 GB, free: 4.109 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001459/0.02113, allocations: 49.78 kB / 0.7948 GB, free: 4.059 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 2.23e-05/0.02115, allocations: 0 / 0.7948 GB, free: 4.059 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00033/0.02148, allocations: 146.3 kB / 0.795 GB, free: 3.898 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=13): time 1.382e-06/0.02148, allocations: 0 / 0.795 GB, free: 3.898 MB / 0.7448 GB Notification: Performance of matching and sorting (n=13): time 0.0006889/0.02217, allocations: 252.3 kB / 0.7952 GB, free: 3.648 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.517e-05/0.02224, allocations: 51.41 kB / 0.7953 GB, free: 3.586 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009867/0.02322, allocations: 0.7073 MB / 0.796 GB, free: 2.871 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 3.594e-05/0.02326, allocations: 32.02 kB / 0.796 GB, free: 2.836 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002963/0.02355, allocations: 272.5 kB / 0.7962 GB, free: 2.566 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 4.762e-05/0.0236, allocations: 31.75 kB / 0.7963 GB, free: 2.535 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001119/0.02371, allocations: 61.64 kB / 0.7963 GB, free: 2.469 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0002601/0.02397, allocations: 378.7 kB / 0.7967 GB, free: 2.09 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001745/0.02415, allocations: 75.41 kB / 0.7968 GB, free: 2.02 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002752/0.02442, allocations: 181.8 kB / 0.7969 GB, free: 1.816 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002944/0.02472, allocations: 140.3 kB / 0.7971 GB, free: 1.672 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.02472, allocations: 4 kB / 0.7971 GB, free: 1.668 MB / 0.7448 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005607/0.02528, allocations: 281.1 kB / 0.7974 GB, free: 1.387 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.0253, allocations: 6.406 kB / 0.7974 GB, free: 1.383 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.02531, allocations: 0 / 0.7974 GB, free: 1.383 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.855e-05/0.02534, allocations: 8.484 kB / 0.7974 GB, free: 1.375 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001748/0.02551, allocations: 35.92 kB / 0.7974 GB, free: 1.34 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.517e-05/0.02553, allocations: 8.5 kB / 0.7974 GB, free: 1.332 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001684/0.02569, allocations: 20.44 kB / 0.7974 GB, free: 1.312 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.435e-05/0.02573, allocations: 13.34 kB / 0.7974 GB, free: 1.301 MB / 0.7448 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.000295/0.02602, allocations: 211.7 kB / 0.7976 GB, free: 1.086 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.11e-05/0.02611, allocations: 64.17 kB / 0.7977 GB, free: 1.023 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005125/0.02663, allocations: 226.8 kB / 0.7979 GB, free: 0.793 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.342e-06/0.02663, allocations: 4 kB / 0.7979 GB, free: 0.7891 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.258e-05/0.02665, allocations: 8.578 kB / 0.7979 GB, free: 0.7812 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.317e-06/0.02665, allocations: 3.938 kB / 0.7979 GB, free: 0.7773 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004166/0.02707, allocations: 289.8 kB / 0.7982 GB, free: 476 kB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.02707, allocations: 0 / 0.7982 GB, free: 476 kB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.541e-05/0.02712, allocations: 17.92 kB / 0.7982 GB, free: 460 kB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.514e-06/0.02712, allocations: 0 / 0.7982 GB, free: 460 kB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.584e-05/0.02714, allocations: 4 kB / 0.7982 GB, free: 456 kB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.02714, allocations: 0 / 0.7982 GB, free: 456 kB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.02714, allocations: 4 kB / 0.7982 GB, free: 452 kB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004683/0.02761, allocations: 247.8 kB / 0.7985 GB, free: 188 kB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000102/0.02771, allocations: 59.55 kB / 0.7985 GB, free: 128 kB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.19e-05/0.02777, allocations: 7.938 kB / 0.7985 GB, free: 120 kB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001352/0.0279, allocations: 15.98 kB / 0.7986 GB, free: 104 kB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.25e-05/0.02798, allocations: 19.97 kB / 0.7986 GB, free: 84 kB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.126e-05/0.028, allocations: 11.94 kB / 0.7986 GB, free: 72 kB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.0006699/0.02867, allocations: 483 kB / 0.799 GB, free: 15.6 MB / 0.7605 GB Notification: Performance of sort global known variables: time 7e-08/0.02867, allocations: 0 / 0.799 GB, free: 15.6 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.000377/0.02905, allocations: 68.8 kB / 0.7991 GB, free: 15.54 MB / 0.7605 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 (15): * Single equations (assignments): 11 * 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.002119/0.03117, allocations: 461.4 kB / 0.7995 GB, free: 15.27 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.0004275/0.0316, allocations: 156.4 kB / 0.7997 GB, free: 15.12 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.0316, allocations: 0 / 0.7997 GB, free: 15.12 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.000165/0.03176, allocations: 55.92 kB / 0.7998 GB, free: 15.06 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005622/0.03233, allocations: 99.8 kB / 0.7998 GB, free: 14.97 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001656/0.03398, allocations: 0.8698 MB / 0.8007 GB, free: 14.06 MB / 0.7605 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003463/0.03433, allocations: 258.7 kB / 0.8009 GB, free: 13.79 MB / 0.7605 GB Notification: Performance of simCode: alias equations: time 0.0001561/0.03449, allocations: 50.94 kB / 0.801 GB, free: 13.74 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.943e-05/0.03458, allocations: 36.48 kB / 0.801 GB, free: 13.7 MB / 0.7605 GB Notification: Performance of SimCode: time 6.31e-07/0.03459, allocations: 0 / 0.801 GB, free: 13.7 MB / 0.7605 GB Notification: Performance of Templates: time 0.01174/0.04633, allocations: 4.617 MB / 0.8055 GB, free: 9.18 MB / 0.7605 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; mkfifo Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe >> ../files/Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.sim & ./Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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: 8.456902817939408]