Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_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_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.419/2.419, allocations: 390.3 MB / 405.3 MB, free: 13.54 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.00145/0.00145, allocations: 176.2 kB / 498.1 MB, free: 5.746 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.505/1.505, allocations: 223.2 MB / 0.7948 GB, free: 17.91 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.0009189/0.0009188, allocations: 92.27 kB / 0.9346 GB, free: 6.207 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0005397/0.00054, allocations: 10.47 kB / 1.084 GB, free: 221.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3461/0.3467, allocations: 142.3 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.206/0.5527, allocations: 151.3 MB / 1.371 GB, free: 10.78 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003129/0.5531, allocations: 83.94 kB / 1.371 GB, free: 10.7 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.0299/0.583, allocations: 10.82 MB / 1.381 GB, free: 15.86 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.743e-06/0.583, allocations: 0 / 1.381 GB, free: 15.86 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 3.967e-05/0.5831, allocations: 12 kB / 1.381 GB, free: 15.84 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.00206/0.5851, allocations: 0.8945 MB / 1.382 GB, free: 14.89 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.574e-05/0.5852, allocations: 12.03 kB / 1.382 GB, free: 14.88 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000328/0.5855, allocations: 71.2 kB / 1.382 GB, free: 14.8 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001035/0.5866, allocations: 405.1 kB / 1.383 GB, free: 14.37 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.056e-05/0.5867, allocations: 49.31 kB / 1.383 GB, free: 14.32 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000178/0.5869, allocations: 60 kB / 1.383 GB, free: 14.26 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001139/0.588, allocations: 0.5269 MB / 1.383 GB, free: 13.71 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.786e-05/0.588, allocations: 0 / 1.383 GB, free: 13.71 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.485e-05/0.5881, allocations: 24 kB / 1.383 GB, free: 13.69 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.598e-05/0.5881, allocations: 15.94 kB / 1.383 GB, free: 13.68 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008675/0.589, allocations: 377 kB / 1.384 GB, free: 13.31 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003285/0.5923, allocations: 1.712 MB / 1.385 GB, free: 11.54 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001131/0.5935, allocations: 0.901 MB / 1.386 GB, free: 10.52 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 5.394e-05/0.5935, allocations: 12.38 kB / 1.386 GB, free: 10.5 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005873/0.5941, allocations: 281.2 kB / 1.386 GB, free: 10.21 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=53): time 2.715e-06/0.5941, allocations: 0 / 1.386 GB, free: 10.21 MB / 0.8855 GB Notification: Performance of matching and sorting (n=53): time 0.001223/0.5954, allocations: 0.5962 MB / 1.387 GB, free: 9.617 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.135e-05/0.5955, allocations: 111.2 kB / 1.387 GB, free: 9.48 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004734/0.596, allocations: 356.8 kB / 1.388 GB, free: 9.129 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 8.454e-05/0.596, allocations: 41.7 kB / 1.388 GB, free: 9.082 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002396/0.5963, allocations: 265 kB / 1.388 GB, free: 8.816 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001611/0.5965, allocations: 169.5 kB / 1.388 GB, free: 8.648 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.954e-05/0.5965, allocations: 16 kB / 1.388 GB, free: 8.633 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001943/0.5967, allocations: 358.8 kB / 1.388 GB, free: 8.273 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000497/0.5972, allocations: 209 kB / 1.389 GB, free: 8.066 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005381/0.5978, allocations: 311.4 kB / 1.389 GB, free: 7.73 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005532/0.5983, allocations: 293.3 kB / 1.389 GB, free: 7.434 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.5983, allocations: 0 / 1.389 GB, free: 7.434 MB / 0.8855 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001298/0.5997, allocations: 0.6766 MB / 1.39 GB, free: 6.738 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003538/0.6, allocations: 0.6763 MB / 1.39 GB, free: 6 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.313e-05/0.6, allocations: 7.938 kB / 1.39 GB, free: 5.992 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.874e-05/0.6001, allocations: 4.094 kB / 1.39 GB, free: 5.988 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004314/0.6005, allocations: 107.8 kB / 1.391 GB, free: 5.883 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.452e-05/0.6005, allocations: 8 kB / 1.391 GB, free: 5.875 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006262/0.6012, allocations: 139.4 kB / 1.391 GB, free: 5.738 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.579e-05/0.6013, allocations: 27.98 kB / 1.391 GB, free: 5.711 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.457e-05/0.6013, allocations: 8.891 kB / 1.391 GB, free: 5.703 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001015/0.6023, allocations: 0.5703 MB / 1.391 GB, free: 5.121 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.152e-05/0.6023, allocations: 11.98 kB / 1.391 GB, free: 5.109 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.865e-06/0.6023, allocations: 4 kB / 1.391 GB, free: 5.105 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003245/0.6027, allocations: 83.91 kB / 1.391 GB, free: 5.023 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.876e-06/0.6027, allocations: 7.938 kB / 1.391 GB, free: 5.016 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005462/0.6032, allocations: 111.6 kB / 1.391 GB, free: 4.906 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.481e-05/0.6033, allocations: 27.98 kB / 1.392 GB, free: 4.879 MB / 0.8855 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.0003526/0.6037, allocations: 265 kB / 1.392 GB, free: 4.609 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.174e-05/0.6038, allocations: 55.28 kB / 1.392 GB, free: 4.555 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009588/0.6047, allocations: 489.5 kB / 1.392 GB, free: 4.07 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.163e-06/0.6047, allocations: 4 kB / 1.392 GB, free: 4.066 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.123e-06/0.6048, allocations: 0 / 1.392 GB, free: 4.066 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/0.6048, allocations: 0 / 1.392 GB, free: 4.066 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001947/0.6067, allocations: 1.226 MB / 1.393 GB, free: 2.766 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.773e-06/0.6067, allocations: 4 kB / 1.393 GB, free: 2.762 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003757/0.6071, allocations: 95.81 kB / 1.394 GB, free: 2.668 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.022e-05/0.6071, allocations: 4 kB / 1.394 GB, free: 2.664 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.986e-05/0.6072, allocations: 12 kB / 1.394 GB, free: 2.652 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.713e-06/0.6072, allocations: 4 kB / 1.394 GB, free: 2.648 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.6072, allocations: 4.188 kB / 1.394 GB, free: 2.645 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001313/0.6085, allocations: 0.8715 MB / 1.394 GB, free: 1.699 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00015/0.6087, allocations: 132.5 kB / 1.395 GB, free: 1.551 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.535e-05/0.6088, allocations: 11.98 kB / 1.395 GB, free: 1.539 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002456/0.609, allocations: 31.98 kB / 1.395 GB, free: 1.508 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.521e-05/0.6091, allocations: 36.34 kB / 1.395 GB, free: 1.473 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.685e-05/0.6092, allocations: 20 kB / 1.395 GB, free: 1.453 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0003492/0.6095, allocations: 291.1 kB / 1.395 GB, free: 1.172 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6095, allocations: 0 / 1.395 GB, free: 1.172 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.000801/0.6103, allocations: 231.2 kB / 1.395 GB, free: 0.9453 MB / 0.8855 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.0003296/0.6107, allocations: 146.8 kB / 1.395 GB, free: 0.7891 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.00189/0.6126, allocations: 1.017 MB / 1.396 GB, free: 15.72 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 6.522e-06/0.6126, allocations: 0 / 1.396 GB, free: 15.72 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0004574/0.613, allocations: 231.2 kB / 1.397 GB, free: 15.5 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005939/0.6137, allocations: 93.42 kB / 1.397 GB, free: 15.41 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002037/0.6157, allocations: 1.176 MB / 1.398 GB, free: 14.2 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005571/0.6163, allocations: 0.8752 MB / 1.399 GB, free: 13.29 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0003023/0.6166, allocations: 60.38 kB / 1.399 GB, free: 13.23 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001549/0.6168, allocations: 47.42 kB / 1.399 GB, free: 13.18 MB / 0.9011 GB Notification: Performance of SimCode: time 1.413e-06/0.6168, allocations: 0 / 1.399 GB, free: 13.18 MB / 0.9011 GB Notification: Performance of Templates: time 0.01531/0.6321, allocations: 6.739 MB / 1.405 GB, free: 6.504 MB / 0.9011 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_PIDWithResetScale.csv","../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches