Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDInitialDerivativeOutput.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.Controls.OBC.CDL.Continuous.Validation.PIDInitialDerivativeOutput,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|limPID.y|limPD.y|limPID.D.y|limPD.D.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDInitialDerivativeOutput") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.PIDInitialDerivativeOutput,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|limPID.y|limPD.y|limPID.D.y|limPD.D.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDInitialDerivativeOutput") [: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.738/1.738, allocations: 390.4 MB / 397.7 MB, free: 11.27 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.0009109/0.0009112, allocations: 183.7 kB / 490.8 MB, free: 1.965 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.089/1.089, allocations: 221.4 MB / 0.7863 GB, free: 13.68 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.0007971/0.0007973, allocations: 88.67 kB / 0.9264 GB, free: 14.22 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 8.215e-06/8.305e-06, allocations: 8 kB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1707/0.1707, allocations: 143 MB / 1.212 GB, free: 40.13 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4664/0.6372, allocations: 150.4 MB / 1.358 GB, free: 17.49 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000177/0.6374, allocations: 76.03 kB / 1.359 GB, free: 17.49 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.01479/0.6522, allocations: 6.37 MB / 1.365 GB, free: 17.11 MB / 0.823 GB Notification: Performance of Transformations before backend: time 1.838e-05/0.6522, allocations: 12.75 kB / 1.365 GB, free: 17.11 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: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.0007699/0.653, allocations: 0.6084 MB / 1.365 GB, free: 32.65 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.108e-05/0.653, allocations: 11.17 kB / 1.365 GB, free: 32.65 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.85e-05/0.6531, allocations: 49.59 kB / 1.365 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003321/0.6535, allocations: 329 kB / 1.366 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.73e-05/0.6535, allocations: 11.88 kB / 1.366 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.795e-05/0.6535, allocations: 21.78 kB / 1.366 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003448/0.6539, allocations: 218.4 kB / 1.366 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004118/0.6543, allocations: 308.1 kB / 1.366 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.209e-05/0.6543, allocations: 5.5 kB / 1.366 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.415e-05/0.6544, allocations: 1.453 kB / 1.366 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.878e-06/0.6544, allocations: 8.812 kB / 1.366 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001287/0.6557, allocations: 1.162 MB / 1.367 GB, free: 31.81 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003005/0.656, allocations: 198.9 kB / 1.368 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001522/0.6561, allocations: 124.4 kB / 1.368 GB, free: 31.76 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.516e-05/0.6562, allocations: 5.109 kB / 1.368 GB, free: 31.76 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001637/0.6563, allocations: 157 kB / 1.368 GB, free: 31.7 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=28): time 1.192e-06/0.6563, allocations: 4 kB / 1.368 GB, free: 31.69 MB / 0.8386 GB Notification: Performance of matching and sorting (n=28): time 0.0003244/0.6567, allocations: 213.5 kB / 1.368 GB, free: 31.64 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.846e-05/0.6567, allocations: 137.2 kB / 1.368 GB, free: 31.48 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002168/0.6569, allocations: 255.1 kB / 1.368 GB, free: 31.37 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.828e-05/0.657, allocations: 25.7 kB / 1.368 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.197e-05/0.657, allocations: 191 kB / 1.369 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 4.199e-05/0.6571, allocations: 91.39 kB / 1.369 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.13e-05/0.6571, allocations: 0 / 1.369 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 8.891e-05/0.6572, allocations: 342.8 kB / 1.369 GB, free: 30.83 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001213/0.6573, allocations: 90.59 kB / 1.369 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001443/0.6575, allocations: 158.5 kB / 1.369 GB, free: 30.75 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001408/0.6576, allocations: 115.1 kB / 1.369 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.6576, allocations: 0 / 1.369 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0003686/0.658, allocations: 280.4 kB / 1.37 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001063/0.6581, allocations: 444.2 kB / 1.37 GB, free: 30.23 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.6581, allocations: 1.281 kB / 1.37 GB, free: 30.23 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.337e-05/0.6581, allocations: 6.438 kB / 1.37 GB, free: 30.22 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003236/0.6585, allocations: 84.33 kB / 1.37 GB, free: 30.21 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.701e-06/0.6585, allocations: 3.953 kB / 1.37 GB, free: 30.21 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002177/0.6587, allocations: 47.58 kB / 1.37 GB, free: 30.2 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.076e-05/0.6587, allocations: 8.688 kB / 1.37 GB, free: 30.2 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 5.461e-06/0.6587, allocations: 3.406 kB / 1.37 GB, free: 30.2 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002935/0.659, allocations: 228.6 kB / 1.37 GB, free: 30.18 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.074e-06/0.659, allocations: 1.344 kB / 1.37 GB, free: 30.18 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.647e-06/0.6591, allocations: 2.531 kB / 1.37 GB, free: 30.18 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002358/0.6593, allocations: 62 kB / 1.371 GB, free: 30.17 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.487e-06/0.6593, allocations: 7.078 kB / 1.371 GB, free: 30.17 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001619/0.6595, allocations: 31.45 kB / 1.371 GB, free: 30.16 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.581e-05/0.6595, allocations: 11.03 kB / 1.371 GB, free: 30.16 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 37 * 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 6.983e-05/0.6596, allocations: 111.8 kB / 1.371 GB, free: 30.04 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.596e-05/0.6596, allocations: 29.88 kB / 1.371 GB, free: 30.03 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003334/0.6599, allocations: 234.4 kB / 1.371 GB, free: 29.98 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.66, allocations: 3.531 kB / 1.371 GB, free: 29.98 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.66, allocations: 5.281 kB / 1.371 GB, free: 29.97 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.049e-06/0.66, allocations: 1.688 kB / 1.371 GB, free: 29.97 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001109/0.6611, allocations: 0.9489 MB / 1.372 GB, free: 29.49 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.6611, allocations: 4.062 kB / 1.372 GB, free: 29.49 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002438/0.6614, allocations: 68.38 kB / 1.372 GB, free: 29.48 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.831e-06/0.6614, allocations: 5.281 kB / 1.372 GB, free: 29.48 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.925e-05/0.6614, allocations: 10.28 kB / 1.372 GB, free: 29.48 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.019e-06/0.6614, allocations: 8.906 kB / 1.372 GB, free: 29.47 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.6614, allocations: 4.5 kB / 1.372 GB, free: 29.47 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005108/0.6619, allocations: 0.736 MB / 1.373 GB, free: 28.89 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 4.995e-05/0.662, allocations: 113.5 kB / 1.373 GB, free: 28.79 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.063e-05/0.662, allocations: 6.203 kB / 1.373 GB, free: 28.79 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002402/0.6623, allocations: 31.48 kB / 1.373 GB, free: 28.78 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.946e-05/0.6623, allocations: 22.03 kB / 1.373 GB, free: 28.77 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.725e-05/0.6623, allocations: 11.47 kB / 1.373 GB, free: 28.77 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.0001526/0.6625, allocations: 198.8 kB / 1.373 GB, free: 28.7 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0004423/0.6629, allocations: 121.3 kB / 1.373 GB, free: 28.66 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 3 (limPID.I.y,limPID.D.x,limPD.D.x) * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 28 * 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 Backend phase and start with SimCode phase: time 0.0001247/0.6631, allocations: 125.7 kB / 1.373 GB, free: 28.56 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0004535/0.6635, allocations: 350 kB / 1.374 GB, free: 28.54 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.6635, allocations: 3.938 kB / 1.374 GB, free: 28.54 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001207/0.6637, allocations: 105.7 kB / 1.374 GB, free: 28.53 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004101/0.6641, allocations: 57.95 kB / 1.374 GB, free: 28.52 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00101/0.6651, allocations: 0.5719 MB / 1.374 GB, free: 28.21 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003818/0.6655, allocations: 0.8415 MB / 1.375 GB, free: 27.5 MB / 0.8386 GB Notification: Performance of SimCode: time 2.5e-07/0.6655, allocations: 0 / 1.375 GB, free: 27.5 MB / 0.8386 GB Notification: Performance of Templates: time 0.007798/0.6733, allocations: 4.301 MB / 1.379 GB, free: 27.23 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDInitialDerivativeOutput.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDInitialDerivativeOutput.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDInitialDerivativeOutput.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDInitialDerivativeOutput.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDInitialDerivativeOutput.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDInitialDerivativeOutput -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDInitialDerivativeOutput.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDInitialDerivativeOutput_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Continuous_Validation_PIDInitialDerivativeOutput.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDInitialDerivativeOutput.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches