Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.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.PIDWithResetScale,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pidSca.y|pidNoSca.y|pla1.y|pla2.y|pidSca.u_s|pidSca.trigger",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pidSca.y|pidNoSca.y|pla1.y|pla2.y|pidSca.u_s|pidSca.trigger",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.361/2.361, allocations: 393.5 MB / 408.4 MB, free: 11.04 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.001134/0.001134, allocations: 178.9 kB / 0.4902 GB, free: 2.227 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.664/1.664, allocations: 223.1 MB / 0.7992 GB, free: 14.7 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.001019/0.001019, allocations: 98.61 kB / 0.9396 GB, free: 1.859 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004303/0.0004303, allocations: 10.09 kB / 1.09 GB, free: 216.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3164/0.3168, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1957/0.5126, allocations: 152.1 MB / 1.378 GB, free: 1.363 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002654/0.5129, allocations: 75.97 kB / 1.378 GB, free: 1.289 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.03113/0.5441, allocations: 10.83 MB / 1.388 GB, free: 6.445 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.994e-06/0.5441, allocations: 0 / 1.388 GB, free: 6.445 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 3.841e-05/0.5441, allocations: 12.19 kB / 1.388 GB, free: 6.434 MB / 0.8855 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 131 * Number of variables: 131 Notification: Performance of Generate backend data structure: time 0.001773/0.5459, allocations: 0.889 MB / 1.389 GB, free: 5.48 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.405e-05/0.546, allocations: 12.56 kB / 1.389 GB, free: 5.469 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002206/0.5462, allocations: 79.11 kB / 1.389 GB, free: 5.391 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006538/0.5469, allocations: 404.9 kB / 1.39 GB, free: 4.953 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.642e-05/0.5469, allocations: 53.3 kB / 1.39 GB, free: 4.898 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001084/0.547, allocations: 60 kB / 1.39 GB, free: 4.84 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009412/0.548, allocations: 0.5191 MB / 1.39 GB, free: 4.305 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.422e-05/0.548, allocations: 4 kB / 1.39 GB, free: 4.301 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.704e-05/0.5481, allocations: 27.98 kB / 1.39 GB, free: 4.273 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.365e-05/0.5481, allocations: 12 kB / 1.39 GB, free: 4.262 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007609/0.5489, allocations: 381 kB / 1.391 GB, free: 3.891 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0029/0.5518, allocations: 1.709 MB / 1.392 GB, free: 2.125 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001037/0.5528, allocations: 0.9033 MB / 1.393 GB, free: 1.098 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 4.401e-05/0.5529, allocations: 12.38 kB / 1.393 GB, free: 1.086 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005607/0.5535, allocations: 281.2 kB / 1.394 GB, free: 0.7969 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=53): time 2.094e-06/0.5535, allocations: 0 / 1.394 GB, free: 0.7969 MB / 0.8855 GB Notification: Performance of matching and sorting (n=53): time 0.001162/0.5546, allocations: 0.5923 MB / 1.394 GB, free: 200 kB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.979e-05/0.5547, allocations: 119.2 kB / 1.394 GB, free: 56 kB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004365/0.5552, allocations: 348.9 kB / 1.395 GB, free: 15.71 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 7.89e-05/0.5553, allocations: 45.69 kB / 1.395 GB, free: 15.66 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002163/0.5555, allocations: 249.1 kB / 1.395 GB, free: 15.41 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001447/0.5556, allocations: 173.5 kB / 1.395 GB, free: 15.23 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.703e-05/0.5557, allocations: 16 kB / 1.395 GB, free: 15.22 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0001564/0.5559, allocations: 362.8 kB / 1.395 GB, free: 14.86 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000513/0.5564, allocations: 217 kB / 1.396 GB, free: 14.64 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005494/0.5569, allocations: 303.4 kB / 1.396 GB, free: 14.31 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005378/0.5575, allocations: 297.5 kB / 1.396 GB, free: 14.02 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.001e-06/0.5575, allocations: 0 / 1.396 GB, free: 14.02 MB / 0.9011 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001296/0.5588, allocations: 0.6844 MB / 1.397 GB, free: 13.31 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003323/0.5592, allocations: 0.6763 MB / 1.398 GB, free: 12.57 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.013e-05/0.5592, allocations: 4 kB / 1.398 GB, free: 12.57 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.97e-05/0.5592, allocations: 4 kB / 1.398 GB, free: 12.57 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000433/0.5596, allocations: 107.8 kB / 1.398 GB, free: 12.46 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.269e-05/0.5597, allocations: 4 kB / 1.398 GB, free: 12.46 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005793/0.5602, allocations: 131.5 kB / 1.398 GB, free: 12.33 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.586e-05/0.5603, allocations: 23.98 kB / 1.398 GB, free: 12.3 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 1.304e-05/0.5603, allocations: 9.984 kB / 1.398 GB, free: 12.3 MB / 0.9011 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001076/0.5614, allocations: 0.5741 MB / 1.398 GB, free: 11.71 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.337e-05/0.5614, allocations: 4 kB / 1.398 GB, free: 11.71 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.676e-06/0.5615, allocations: 12.09 kB / 1.398 GB, free: 11.7 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003391/0.5618, allocations: 83.89 kB / 1.398 GB, free: 11.61 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.513e-06/0.5618, allocations: 4 kB / 1.398 GB, free: 11.61 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005482/0.5624, allocations: 119.5 kB / 1.399 GB, free: 11.49 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.678e-05/0.5625, allocations: 31.98 kB / 1.399 GB, free: 11.46 MB / 0.9011 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition6,$whenCondition5,$PRE.booPul.y,booPul.y,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,$PRE.pulse.booPul.y,pulse.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 2 * 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 0.0004293/0.5629, allocations: 253.9 kB / 1.399 GB, free: 11.2 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001001/0.563, allocations: 55.39 kB / 1.399 GB, free: 11.15 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001008/0.564, allocations: 493.4 kB / 1.399 GB, free: 10.66 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.144e-05/0.564, allocations: 8.141 kB / 1.399 GB, free: 10.66 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.564, allocations: 0 / 1.399 GB, free: 10.66 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.224e-05/0.5641, allocations: 7.969 kB / 1.399 GB, free: 10.65 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002317/0.5664, allocations: 1.23 MB / 1.401 GB, free: 9.336 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.39e-06/0.5664, allocations: 0 / 1.401 GB, free: 9.336 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004049/0.5668, allocations: 95.77 kB / 1.401 GB, free: 9.242 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.718e-06/0.5669, allocations: 4 kB / 1.401 GB, free: 9.238 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.297e-05/0.5669, allocations: 15.98 kB / 1.401 GB, free: 9.223 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.436e-06/0.5669, allocations: 4 kB / 1.401 GB, free: 9.219 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.5669, allocations: 0 / 1.401 GB, free: 9.219 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00161/0.5685, allocations: 0.8833 MB / 1.402 GB, free: 8.266 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001623/0.5687, allocations: 124.5 kB / 1.402 GB, free: 8.125 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.331e-05/0.5688, allocations: 16 kB / 1.402 GB, free: 8.109 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002625/0.5691, allocations: 35.97 kB / 1.402 GB, free: 8.074 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.684e-05/0.5692, allocations: 36.34 kB / 1.402 GB, free: 8.039 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.54e-05/0.5692, allocations: 16.12 kB / 1.402 GB, free: 8.023 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.0003985/0.5696, allocations: 279.2 kB / 1.402 GB, free: 7.754 MB / 0.9011 GB Notification: Performance of sort global known variables: time 1.41e-07/0.5696, allocations: 0 / 1.402 GB, free: 7.754 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.00105/0.5707, allocations: 239.2 kB / 1.402 GB, free: 7.52 MB / 0.9011 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (pidSca.I.y,pidSca.D.x,pla1.y,pidNoSca.I.y,pidNoSca.D.x,pla2.y) * Number of discrete variables: 8 ($whenCondition6,$whenCondition5,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,pulse.booPul.y,booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0004557/0.5711, allocations: 147.8 kB / 1.402 GB, free: 7.363 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.002305/0.5735, allocations: 1.009 MB / 1.403 GB, free: 6.305 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 4.939e-06/0.5735, allocations: 0 / 1.403 GB, free: 6.305 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0004313/0.5739, allocations: 227.3 kB / 1.404 GB, free: 6.086 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005787/0.5745, allocations: 92.52 kB / 1.404 GB, free: 6 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002227/0.5768, allocations: 1.172 MB / 1.405 GB, free: 4.789 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000574/0.5773, allocations: 0.8751 MB / 1.406 GB, free: 3.883 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0002844/0.5776, allocations: 64.09 kB / 1.406 GB, free: 3.816 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001227/0.5778, allocations: 39.42 kB / 1.406 GB, free: 3.781 MB / 0.9011 GB Notification: Performance of SimCode: time 3.2e-07/0.5778, allocations: 4 kB / 1.406 GB, free: 3.777 MB / 0.9011 GB Notification: Performance of Templates: time 0.01331/0.5911, allocations: 6.748 MB / 1.412 GB, free: 13.09 MB / 0.9167 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Continuous_Validation_PIDWithResetScale.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches