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.156/2.156, allocations: 387.4 MB / 394.9 MB, free: 13.44 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.001004/0.001004, allocations: 180.8 kB / 487.4 MB, free: 5.066 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.584/1.584, allocations: 221.5 MB / 0.7824 GB, free: 0.9531 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009575/0.0009578, allocations: 95.8 kB / 0.9219 GB, free: 2.188 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.901e-05/2.902e-05, allocations: 8 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3227/0.3228, allocations: 142.4 MB / 1.206 GB, free: 43.92 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.072/1.395, allocations: 150.6 MB / 1.353 GB, free: 18.42 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002871/1.396, allocations: 80.02 kB / 1.353 GB, free: 18.42 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.02902/1.425, allocations: 10.73 MB / 1.364 GB, free: 33.5 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.134e-06/1.425, allocations: 4 kB / 1.364 GB, free: 33.5 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 7.03e-05/1.425, allocations: 15.72 kB / 1.364 GB, free: 33.5 MB / 0.8386 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.00193/1.427, allocations: 0.8096 MB / 1.364 GB, free: 32.92 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.672e-05/1.427, allocations: 11.56 kB / 1.364 GB, free: 32.92 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003787/1.427, allocations: 76.17 kB / 1.364 GB, free: 32.89 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008625/1.428, allocations: 400.7 kB / 1.365 GB, free: 32.63 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.321e-05/1.428, allocations: 19.31 kB / 1.365 GB, free: 32.63 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001522/1.428, allocations: 38.28 kB / 1.365 GB, free: 32.63 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006341/1.429, allocations: 295.7 kB / 1.365 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007464/1.43, allocations: 424 kB / 1.366 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.954e-05/1.43, allocations: 3.984 kB / 1.366 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.058e-05/1.43, allocations: 3.875 kB / 1.366 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.262e-05/1.43, allocations: 11.69 kB / 1.366 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00283/1.433, allocations: 1.59 MB / 1.367 GB, free: 32.01 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000615/1.433, allocations: 0.8262 MB / 1.368 GB, free: 31.4 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002598/1.434, allocations: 205.4 kB / 1.368 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 4.752e-05/1.434, allocations: 8.344 kB / 1.368 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004114/1.434, allocations: 239.2 kB / 1.368 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=53): time 2.795e-06/1.434, allocations: 0 / 1.368 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of matching and sorting (n=53): time 0.0006087/1.435, allocations: 361.2 kB / 1.369 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.106e-05/1.435, allocations: 111 kB / 1.369 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003343/1.435, allocations: 288.8 kB / 1.369 GB, free: 31.03 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 5.968e-05/1.435, allocations: 35.59 kB / 1.369 GB, free: 31 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002004/1.435, allocations: 264 kB / 1.369 GB, free: 30.85 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001166/1.435, allocations: 168 kB / 1.37 GB, free: 30.74 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.351e-05/1.435, allocations: 0 / 1.37 GB, free: 30.74 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001718/1.436, allocations: 357.3 kB / 1.37 GB, free: 30.43 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000263/1.436, allocations: 163.2 kB / 1.37 GB, free: 30.43 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002953/1.436, allocations: 264.4 kB / 1.37 GB, free: 30.33 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005185/1.437, allocations: 204.3 kB / 1.37 GB, free: 30.32 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/1.437, allocations: 0 / 1.37 GB, free: 30.32 MB / 0.8386 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0009954/1.438, allocations: 0.5267 MB / 1.371 GB, free: 30.24 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003347/1.438, allocations: 0.6818 MB / 1.372 GB, free: 29.53 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.033e-05/1.438, allocations: 0 / 1.372 GB, free: 29.53 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.514e-05/1.438, allocations: 11.69 kB / 1.372 GB, free: 29.53 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004202/1.439, allocations: 92.98 kB / 1.372 GB, free: 29.52 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.478e-05/1.439, allocations: 10.31 kB / 1.372 GB, free: 29.52 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005684/1.439, allocations: 119.8 kB / 1.372 GB, free: 29.5 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.115e-05/1.439, allocations: 29.03 kB / 1.372 GB, free: 29.5 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.148e-05/1.439, allocations: 7.875 kB / 1.372 GB, free: 29.49 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008836/1.44, allocations: 468.2 kB / 1.372 GB, free: 29.48 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/1.44, allocations: 0 / 1.372 GB, free: 29.48 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.608e-06/1.44, allocations: 7.828 kB / 1.372 GB, free: 29.48 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003129/1.441, allocations: 85.45 kB / 1.372 GB, free: 29.47 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.753e-06/1.441, allocations: 7.203 kB / 1.372 GB, free: 29.47 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004953/1.441, allocations: 104.9 kB / 1.373 GB, free: 29.45 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.144e-05/1.441, allocations: 28.06 kB / 1.373 GB, free: 29.45 MB / 0.8386 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 () * 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.0001737/1.441, allocations: 117.6 kB / 1.373 GB, free: 29.34 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.713e-05/1.441, allocations: 48.58 kB / 1.373 GB, free: 29.31 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006048/1.442, allocations: 379.3 kB / 1.373 GB, free: 29.26 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.164e-06/1.442, allocations: 7.859 kB / 1.373 GB, free: 29.25 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.363e-06/1.442, allocations: 0 / 1.373 GB, free: 29.25 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.235e-06/1.442, allocations: 7.281 kB / 1.373 GB, free: 29.25 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001408/1.443, allocations: 1.056 MB / 1.374 GB, free: 28.88 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.447e-06/1.443, allocations: 0 / 1.374 GB, free: 28.88 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003606/1.444, allocations: 95.41 kB / 1.374 GB, free: 28.87 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.468e-06/1.444, allocations: 3.781 kB / 1.374 GB, free: 28.87 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.052e-05/1.444, allocations: 6.5 kB / 1.374 GB, free: 28.87 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.388e-06/1.444, allocations: 3.812 kB / 1.374 GB, free: 28.87 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/1.444, allocations: 8 kB / 1.374 GB, free: 28.87 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007915/1.445, allocations: 0.7455 MB / 1.375 GB, free: 28.54 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 8.712e-05/1.445, allocations: 128 kB / 1.375 GB, free: 28.41 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.546e-05/1.445, allocations: 10.53 kB / 1.375 GB, free: 28.41 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002264/1.445, allocations: 24.75 kB / 1.375 GB, free: 28.41 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.765e-05/1.445, allocations: 39.06 kB / 1.375 GB, free: 28.4 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.851e-05/1.445, allocations: 17.7 kB / 1.375 GB, free: 28.4 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0002445/1.445, allocations: 223.6 kB / 1.375 GB, free: 28.32 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.2e-07/1.445, allocations: 0 / 1.375 GB, free: 28.32 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0007355/1.446, allocations: 212.4 kB / 1.376 GB, free: 28.27 MB / 0.8386 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 () * 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.0002483/1.446, allocations: 134.1 kB / 1.376 GB, free: 28.17 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.001132/1.448, allocations: 0.9109 MB / 1.377 GB, free: 27.89 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 4.018e-06/1.448, allocations: 0 / 1.377 GB, free: 27.89 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002326/1.448, allocations: 179.7 kB / 1.377 GB, free: 27.88 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005449/1.448, allocations: 74.62 kB / 1.377 GB, free: 27.87 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0013/1.45, allocations: 0.7167 MB / 1.378 GB, free: 27.56 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005411/1.45, allocations: 0.8775 MB / 1.378 GB, free: 26.85 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0003276/1.451, allocations: 72.61 kB / 1.379 GB, free: 26.83 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.844e-05/1.451, allocations: 36.3 kB / 1.379 GB, free: 26.82 MB / 0.8386 GB Notification: Performance of SimCode: time 5.01e-07/1.451, allocations: 0 / 1.379 GB, free: 26.82 MB / 0.8386 GB Notification: Performance of Templates: time 0.01251/1.463, allocations: 6.493 MB / 1.385 GB, free: 24.82 MB / 0.8386 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