Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assWatMas.mWat_flow|per.mWatMin_flow|runSig.y|assWatMas.assMes.u",fileNamePrefix="Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow") translateModel(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assWatMas.mWat_flow|per.mWatMin_flow|runSig.y|assWatMas.assMes.u",fileNamePrefix="Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 1.946/1.946, allocations: 390.4 MB / 397.7 MB, free: 11.24 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001176/0.001175, allocations: 185.2 kB / 490.8 MB, free: 1.941 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.221/1.221, allocations: 221.3 MB / 0.7863 GB, free: 13.63 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008952/0.0008951, allocations: 84.73 kB / 0.9264 GB, free: 14.16 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 8.065e-06/8.085e-06, allocations: 4 kB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2268/0.2268, allocations: 143 MB / 1.212 GB, free: 40.05 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6407/0.8675, allocations: 156 MB / 1.364 GB, free: 17.15 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002699/0.8678, allocations: 88.14 kB / 1.364 GB, free: 17.15 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.03859/0.9064, allocations: 13.64 MB / 1.377 GB, free: 15.93 MB / 0.823 GB Notification: Performance of Transformations before backend: time 3.446e-05/0.9065, allocations: 7.969 kB / 1.377 GB, free: 15.93 MB / 0.823 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.001/0.9075, allocations: 0.6904 MB / 1.378 GB, free: 31.37 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.041e-05/0.9076, allocations: 9.031 kB / 1.378 GB, free: 31.37 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001126/0.9077, allocations: 58.53 kB / 1.378 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007434/0.9084, allocations: 435.2 kB / 1.378 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.35e-05/0.9085, allocations: 4.047 kB / 1.378 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.826e-05/0.9085, allocations: 7.156 kB / 1.378 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001633/0.9087, allocations: 69.14 kB / 1.379 GB, free: 31.06 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002261/0.9089, allocations: 125.1 kB / 1.379 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.097e-05/0.9089, allocations: 3.906 kB / 1.379 GB, free: 31.01 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.973e-05/0.909, allocations: 5.469 kB / 1.379 GB, free: 31.01 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.074e-06/0.909, allocations: 5.969 kB / 1.379 GB, free: 31 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009014/0.9099, allocations: 0.5559 MB / 1.379 GB, free: 30.76 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001992/0.9101, allocations: 112.9 kB / 1.379 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.823e-05/0.9102, allocations: 46.58 kB / 1.379 GB, free: 30.72 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.883e-05/0.9102, allocations: 2.281 kB / 1.379 GB, free: 30.72 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001501/0.9104, allocations: 97.62 kB / 1.379 GB, free: 30.67 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=13): time 1.533e-06/0.9104, allocations: 4.938 kB / 1.379 GB, free: 30.67 MB / 0.8386 GB Notification: Performance of matching and sorting (n=13): time 0.0003342/0.9107, allocations: 167 kB / 1.38 GB, free: 30.6 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.784e-05/0.9107, allocations: 83.72 kB / 1.38 GB, free: 30.5 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007431/0.9115, allocations: 0.585 MB / 1.38 GB, free: 30.32 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.581e-05/0.9115, allocations: 27.8 kB / 1.38 GB, free: 30.29 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 9.26e-05/0.9116, allocations: 155.3 kB / 1.38 GB, free: 30.18 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.58e-05/0.9117, allocations: 32.55 kB / 1.38 GB, free: 30.17 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.255e-05/0.9117, allocations: 0 / 1.38 GB, free: 30.17 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001794/0.9119, allocations: 375.9 kB / 1.381 GB, free: 29.83 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001242/0.912, allocations: 77.73 kB / 1.381 GB, free: 29.82 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001466/0.9122, allocations: 123.4 kB / 1.381 GB, free: 29.77 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002512/0.9124, allocations: 91.91 kB / 1.381 GB, free: 29.75 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.9124, allocations: 0 / 1.381 GB, free: 29.75 MB / 0.8386 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004868/0.9129, allocations: 277.3 kB / 1.381 GB, free: 29.66 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.473e-05/0.9129, allocations: 6.5 kB / 1.381 GB, free: 29.66 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.913, allocations: 3.984 kB / 1.381 GB, free: 29.65 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.68e-05/0.913, allocations: 2.812 kB / 1.381 GB, free: 29.65 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001662/0.9131, allocations: 35.98 kB / 1.381 GB, free: 29.64 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.302e-06/0.9132, allocations: 5.516 kB / 1.381 GB, free: 29.64 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001834/0.9133, allocations: 28.73 kB / 1.381 GB, free: 29.62 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.535e-05/0.9134, allocations: 14.03 kB / 1.381 GB, free: 29.62 MB / 0.8386 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 ($whenCondition2,$PRE.runSig.combiTimeTable.nextTimeEvent,$whenCondition1,$PRE.mWat_flow.tab.nextTimeEvent,assWatMas.runSig,assWatMas.assMes.u,$PRE.assWatMas.hys.y,assWatMas.hys.y,mWat_flow.tab.nextTimeEvent,$PRE.mWat_flow.tab.nextTimeEventScaled,mWat_flow.tab.nextTimeEventScaled,runSig.combiTimeTable.nextTimeEvent,$PRE.runSig.combiTimeTable.nextTimeEventScaled,runSig.combiTimeTable.nextTimeEventScaled) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.747e-05/0.9135, allocations: 118.6 kB / 1.382 GB, free: 29.5 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.516e-05/0.9136, allocations: 61.11 kB / 1.382 GB, free: 29.47 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000343/0.9139, allocations: 185.6 kB / 1.382 GB, free: 29.4 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.9139, allocations: 1.25 kB / 1.382 GB, free: 29.4 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.9139, allocations: 5.031 kB / 1.382 GB, free: 29.39 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.379e-06/0.9139, allocations: 4 kB / 1.382 GB, free: 29.39 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003537/0.9143, allocations: 353.2 kB / 1.382 GB, free: 29.16 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.9143, allocations: 0 / 1.382 GB, free: 29.16 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.318e-05/0.9144, allocations: 9.188 kB / 1.382 GB, free: 29.16 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.9144, allocations: 1.219 kB / 1.382 GB, free: 29.16 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.573e-05/0.9144, allocations: 5.328 kB / 1.382 GB, free: 29.16 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.384e-06/0.9144, allocations: 1.344 kB / 1.382 GB, free: 29.16 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.9144, allocations: 0 / 1.382 GB, free: 29.16 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002555/0.9147, allocations: 206.1 kB / 1.382 GB, free: 29.05 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001118/0.9148, allocations: 135.3 kB / 1.383 GB, free: 28.92 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.875e-05/0.9149, allocations: 6.547 kB / 1.383 GB, free: 28.92 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001537/0.915, allocations: 16.84 kB / 1.383 GB, free: 28.91 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.723e-05/0.9151, allocations: 22.41 kB / 1.383 GB, free: 28.9 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.356e-05/0.9151, allocations: 9.156 kB / 1.383 GB, free: 28.89 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.0004903/0.9156, allocations: 441.2 kB / 1.383 GB, free: 28.75 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003707/0.916, allocations: 74.02 kB / 1.383 GB, free: 28.74 MB / 0.8386 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.runSig,assWatMas.assMes.u,assWatMas.hys.y,mWat_flow.tab.nextTimeEvent,mWat_flow.tab.nextTimeEventScaled,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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007715/0.9168, allocations: 360.2 kB / 1.383 GB, free: 28.56 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002827/0.9171, allocations: 154.5 kB / 1.384 GB, free: 28.54 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.9171, allocations: 0 / 1.384 GB, free: 28.54 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 9.461e-05/0.9172, allocations: 61.55 kB / 1.384 GB, free: 28.54 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004445/0.9176, allocations: 85.19 kB / 1.384 GB, free: 28.51 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001122/0.9188, allocations: 0.6053 MB / 1.384 GB, free: 28.24 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005514/0.9193, allocations: 0.906 MB / 1.385 GB, free: 27.45 MB / 0.8386 GB Notification: Performance of SimCode: time 3.21e-07/0.9193, allocations: 0 / 1.385 GB, free: 27.45 MB / 0.8386 GB Notification: Performance of Templates: time 0.008889/0.9282, allocations: 3.963 MB / 1.389 GB, free: 25.49 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.makefile (rm -f Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; mkfifo Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe >> ../files/Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.sim & ./Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow.csv","../files/Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches