Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDInitialState.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.PIDInitialState,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|limPID.I.y|limPID.D.y|limPI.I.y|limPID.D.u",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDInitialState") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.PIDInitialState,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|limPID.I.y|limPID.D.y|limPI.I.y|limPID.D.u",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDInitialState") [: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.719/1.719, allocations: 390.4 MB / 397.7 MB, free: 11.23 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.001/0.001, allocations: 189.2 kB / 490.8 MB, free: 1.922 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.082/1.082, allocations: 221.3 MB / 0.7863 GB, free: 13.64 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.0008676/0.0008676, allocations: 91.92 kB / 0.9264 GB, free: 14.18 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 7.875e-06/8.125e-06, allocations: 4 kB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1647/0.1647, allocations: 143 MB / 1.212 GB, free: 40.05 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4512/0.616, allocations: 150.4 MB / 1.358 GB, free: 17.19 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001664/0.6162, allocations: 71.02 kB / 1.359 GB, free: 17.19 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.01368/0.6299, allocations: 6.102 MB / 1.364 GB, free: 16.82 MB / 0.823 GB Notification: Performance of Transformations before backend: time 1.788e-05/0.6299, allocations: 12.62 kB / 1.364 GB, free: 16.82 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.000679/0.6306, allocations: 0.6205 MB / 1.365 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 2.85e-05/0.6306, allocations: 8.5 kB / 1.365 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.56e-05/0.6307, allocations: 51.62 kB / 1.365 GB, free: 32.33 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003399/0.6311, allocations: 329.1 kB / 1.365 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.721e-05/0.6311, allocations: 12.34 kB / 1.365 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.697e-05/0.6312, allocations: 24.72 kB / 1.366 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003592/0.6315, allocations: 225.6 kB / 1.366 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004325/0.632, allocations: 320.4 kB / 1.366 GB, free: 32.02 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.315e-05/0.632, allocations: 1.312 kB / 1.366 GB, free: 32.02 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.645e-05/0.632, allocations: 7.875 kB / 1.366 GB, free: 32.01 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.144e-05/0.632, allocations: 17.12 kB / 1.366 GB, free: 32 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001407/0.6334, allocations: 1.196 MB / 1.367 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003142/0.6338, allocations: 195.1 kB / 1.367 GB, free: 31.47 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001512/0.6339, allocations: 128 kB / 1.368 GB, free: 31.46 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.77e-05/0.634, allocations: 4.062 kB / 1.368 GB, free: 31.46 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001639/0.6341, allocations: 161.2 kB / 1.368 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=28): time 1.252e-06/0.6341, allocations: 0 / 1.368 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of matching and sorting (n=28): time 0.000329/0.6345, allocations: 212.3 kB / 1.368 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.71e-05/0.6345, allocations: 133.4 kB / 1.368 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002294/0.6347, allocations: 256 kB / 1.368 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.856e-05/0.6348, allocations: 25.7 kB / 1.368 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.966e-05/0.6348, allocations: 208.1 kB / 1.368 GB, free: 30.89 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 4.134e-05/0.6349, allocations: 87.53 kB / 1.369 GB, free: 30.84 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.073e-05/0.6349, allocations: 4 kB / 1.369 GB, free: 30.83 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001085/0.635, allocations: 341.8 kB / 1.369 GB, free: 30.52 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001186/0.6352, allocations: 76.19 kB / 1.369 GB, free: 30.52 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000137/0.6353, allocations: 161.1 kB / 1.369 GB, free: 30.43 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001357/0.6354, allocations: 106.2 kB / 1.369 GB, free: 30.42 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.6354, allocations: 1.156 kB / 1.369 GB, free: 30.42 MB / 0.8386 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0003555/0.6358, allocations: 270.6 kB / 1.369 GB, free: 30.36 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001606/0.636, allocations: 0.5315 MB / 1.37 GB, free: 29.81 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/0.636, allocations: 2.922 kB / 1.37 GB, free: 29.81 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.286e-05/0.636, allocations: 4.062 kB / 1.37 GB, free: 29.81 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002861/0.6363, allocations: 72.5 kB / 1.37 GB, free: 29.8 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.132e-06/0.6363, allocations: 6.531 kB / 1.37 GB, free: 29.8 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002026/0.6365, allocations: 47.97 kB / 1.37 GB, free: 29.79 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.97e-05/0.6365, allocations: 8.625 kB / 1.37 GB, free: 29.79 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 5.169e-06/0.6365, allocations: 4.344 kB / 1.37 GB, free: 29.79 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000272/0.6368, allocations: 211.3 kB / 1.37 GB, free: 29.77 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.885e-06/0.6368, allocations: 2.438 kB / 1.37 GB, free: 29.77 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.498e-06/0.6368, allocations: 5.594 kB / 1.37 GB, free: 29.77 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002056/0.6371, allocations: 58.28 kB / 1.37 GB, free: 29.76 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.106e-06/0.6371, allocations: 3.094 kB / 1.37 GB, free: 29.76 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001614/0.6372, allocations: 27.8 kB / 1.37 GB, free: 29.75 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.613e-05/0.6373, allocations: 15.22 kB / 1.37 GB, free: 29.75 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition1,$whenCondition2) * 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 8.646e-05/0.6373, allocations: 109.8 kB / 1.371 GB, free: 29.64 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.84e-05/0.6374, allocations: 29.56 kB / 1.371 GB, free: 29.62 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00023/0.6376, allocations: 157.4 kB / 1.371 GB, free: 29.58 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.6376, allocations: 15.81 kB / 1.371 GB, free: 29.57 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.6376, allocations: 1.266 kB / 1.371 GB, free: 29.57 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.6377, allocations: 2.703 kB / 1.371 GB, free: 29.57 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009686/0.6386, allocations: 0.9065 MB / 1.372 GB, free: 29.11 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.6386, allocations: 2.125 kB / 1.372 GB, free: 29.11 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002384/0.6389, allocations: 63.08 kB / 1.372 GB, free: 29.1 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.81e-06/0.6389, allocations: 5.75 kB / 1.372 GB, free: 29.1 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.947e-05/0.6389, allocations: 7.938 kB / 1.372 GB, free: 29.1 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.949e-06/0.6389, allocations: 14.41 kB / 1.372 GB, free: 29.09 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.6389, allocations: 3.344 kB / 1.372 GB, free: 29.09 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005101/0.6395, allocations: 0.7 MB / 1.372 GB, free: 28.56 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 5.221e-05/0.6395, allocations: 118.6 kB / 1.373 GB, free: 28.44 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.023e-05/0.6396, allocations: 5.188 kB / 1.373 GB, free: 28.44 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002376/0.6398, allocations: 23.06 kB / 1.373 GB, free: 28.44 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.048e-05/0.6398, allocations: 21.56 kB / 1.373 GB, free: 28.44 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.801e-05/0.6399, allocations: 15.36 kB / 1.373 GB, free: 28.44 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.0001619/0.64, allocations: 196.4 kB / 1.373 GB, free: 28.36 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0004543/0.6405, allocations: 133 kB / 1.373 GB, free: 28.32 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 3 (limPI.I.y,limPID.I.y,limPID.D.x) * Number of discrete variables: 2 ($whenCondition2,$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.0001179/0.6406, allocations: 109.2 kB / 1.373 GB, free: 28.23 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0004424/0.6411, allocations: 343.4 kB / 1.373 GB, free: 28.21 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.6411, allocations: 3.75 kB / 1.373 GB, free: 28.21 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001226/0.6412, allocations: 96.98 kB / 1.373 GB, free: 28.2 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003952/0.6416, allocations: 61.56 kB / 1.373 GB, free: 28.18 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009684/0.6426, allocations: 0.5469 MB / 1.374 GB, free: 27.9 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004745/0.6431, allocations: 0.8516 MB / 1.375 GB, free: 27.18 MB / 0.8386 GB Notification: Performance of SimCode: time 3e-07/0.6431, allocations: 0 / 1.375 GB, free: 27.18 MB / 0.8386 GB Notification: Performance of Templates: time 0.008163/0.6512, allocations: 4.18 MB / 1.379 GB, free: 26.91 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDInitialState.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDInitialState.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDInitialState.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDInitialState.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDInitialState.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDInitialState -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDInitialState.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDInitialState_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Continuous_Validation_PIDInitialState.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDInitialState.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches