Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Reals.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_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale") translateModel(Buildings.Controls.OBC.CDL.Reals.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_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001639/0.001639, allocations: 115.2 kB / 16.42 MB, free: 6.488 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001844/0.001844, allocations: 185.7 kB / 17.35 MB, free: 5.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.469/1.469, allocations: 222.9 MB / 241.1 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.528/2.528, allocations: 437 MB / 0.7112 GB, free: 4.434 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001336/0.001336, allocations: 59.91 kB / 1.019 GB, free: 9.383 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9226/0.9239, allocations: 151.6 MB / 1.167 GB, free: 3.848 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale): time 0.003551/0.9275, allocations: 2.184 MB / 1.169 GB, free: 1.664 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.002546/0.9301, allocations: 1.689 MB / 1.171 GB, free: 15.96 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002095/0.9303, allocations: 19.94 kB / 1.171 GB, free: 15.94 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.0002698/0.9306, allocations: 90.94 kB / 1.171 GB, free: 15.85 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.0002057/0.9308, allocations: 83.19 kB / 1.171 GB, free: 15.77 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009816/0.9318, allocations: 429.3 kB / 1.172 GB, free: 15.35 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0008334/0.9327, allocations: 0.7895 MB / 1.173 GB, free: 14.56 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006018/0.9333, allocations: 377.8 kB / 1.173 GB, free: 14.18 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003895/0.9337, allocations: 298.9 kB / 1.173 GB, free: 13.88 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003948/0.9341, allocations: 326.4 kB / 1.173 GB, free: 13.56 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0001268/0.9342, allocations: 88 kB / 1.174 GB, free: 13.48 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001736/0.9344, allocations: 99.98 kB / 1.174 GB, free: 13.38 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0001516/0.9345, allocations: 155.5 kB / 1.174 GB, free: 13.23 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.000344/0.9349, allocations: 330.3 kB / 1.174 GB, free: 12.9 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.001011/0.9359, allocations: 0.9203 MB / 1.175 GB, free: 11.98 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 7.715e-06/0.9359, allocations: 0 / 1.175 GB, free: 11.98 MB / 0.9044 GB Notification: Performance of FrontEnd: time 2.364e-06/0.9359, allocations: 0 / 1.175 GB, free: 11.98 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 1.177e-05/0.936, allocations: 4 kB / 1.175 GB, free: 11.98 MB / 0.9044 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.001714/0.9377, allocations: 0.9694 MB / 1.176 GB, free: 10.95 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.444e-05/0.9377, allocations: 12.86 kB / 1.176 GB, free: 10.93 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001405/0.9379, allocations: 80.09 kB / 1.176 GB, free: 10.86 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005111/0.9384, allocations: 417.9 kB / 1.176 GB, free: 10.41 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.627e-05/0.9384, allocations: 49.67 kB / 1.176 GB, free: 10.36 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.218e-05/0.9385, allocations: 64.38 kB / 1.177 GB, free: 10.3 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000841/0.9394, allocations: 0.5236 MB / 1.177 GB, free: 9.762 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.344e-05/0.9394, allocations: 192 / 1.177 GB, free: 9.762 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.272e-05/0.9395, allocations: 23.94 kB / 1.177 GB, free: 9.738 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.49e-05/0.9395, allocations: 16 kB / 1.177 GB, free: 9.723 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007186/0.9402, allocations: 365 kB / 1.177 GB, free: 9.367 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002537/0.9428, allocations: 1.654 MB / 1.179 GB, free: 7.648 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009596/0.9437, allocations: 0.8961 MB / 1.18 GB, free: 6.637 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003925/0.9441, allocations: 246.7 kB / 1.18 GB, free: 6.391 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 3.936e-05/0.9442, allocations: 8.375 kB / 1.18 GB, free: 6.383 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004811/0.9447, allocations: 273.3 kB / 1.18 GB, free: 6.105 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=53): time 2.404e-06/0.9447, allocations: 0 / 1.18 GB, free: 6.105 MB / 0.9044 GB Notification: Performance of matching and sorting (n=53): time 0.001134/0.9458, allocations: 0.5766 MB / 1.181 GB, free: 5.523 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.854e-05/0.9459, allocations: 111.2 kB / 1.181 GB, free: 5.391 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004581/0.9464, allocations: 409.5 kB / 1.182 GB, free: 4.984 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 6.114e-05/0.9464, allocations: 41.7 kB / 1.182 GB, free: 4.938 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001979/0.9466, allocations: 265 kB / 1.182 GB, free: 4.672 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001522/0.9468, allocations: 173.5 kB / 1.182 GB, free: 4.5 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001894/0.947, allocations: 110.2 kB / 1.182 GB, free: 4.387 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.000141/0.9471, allocations: 362.7 kB / 1.182 GB, free: 4.023 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000464/0.9476, allocations: 215 kB / 1.183 GB, free: 3.809 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005052/0.9481, allocations: 307.4 kB / 1.183 GB, free: 3.473 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007844/0.9489, allocations: 499.4 kB / 1.183 GB, free: 2.953 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.03e-06/0.9489, allocations: 8 kB / 1.183 GB, free: 2.945 MB / 0.9044 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001175/0.9501, allocations: 0.6689 MB / 1.184 GB, free: 2.262 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 5.866e-05/0.9502, allocations: 67.39 kB / 1.184 GB, free: 2.184 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.9502, allocations: 0 / 1.184 GB, free: 2.184 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.671e-05/0.9502, allocations: 4 kB / 1.184 GB, free: 2.18 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004015/0.9506, allocations: 104 kB / 1.184 GB, free: 2.078 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.378e-05/0.9507, allocations: 4 kB / 1.184 GB, free: 2.074 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005231/0.9512, allocations: 103.4 kB / 1.184 GB, free: 1.973 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.176e-05/0.9512, allocations: 31.98 kB / 1.184 GB, free: 1.941 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004869/0.9517, allocations: 321.1 kB / 1.185 GB, free: 1.625 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004011/0.9521, allocations: 283.3 kB / 1.185 GB, free: 1.312 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005785/0.9527, allocations: 451.6 kB / 1.185 GB, free: 0.8398 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.934e-06/0.9527, allocations: 0 / 1.185 GB, free: 0.8398 MB / 0.9044 GB Notification: Performance of matching and sorting (n=65) (initialization_lambda0): time 0.0009744/0.9537, allocations: 0.6297 MB / 1.186 GB, free: 192 kB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 4.27e-05/0.9538, allocations: 63.56 kB / 1.186 GB, free: 116 kB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.172e-06/0.9538, allocations: 7.984 kB / 1.186 GB, free: 108 kB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.977e-06/0.9538, allocations: 7.938 kB / 1.186 GB, free: 100 kB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003209/0.9541, allocations: 83.91 kB / 1.186 GB, free: 16 kB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.232e-06/0.9541, allocations: 4 kB / 1.186 GB, free: 12 kB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004971/0.9546, allocations: 95.77 kB / 1.186 GB, free: 15.91 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.97e-05/0.9547, allocations: 28 kB / 1.186 GB, free: 15.89 MB / 0.92 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,booPul.y,$PRE.booPul.y,$whenCondition5,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,pulse.booPul.y,$PRE.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001694/0.9549, allocations: 226.2 kB / 1.186 GB, free: 15.66 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.003e-05/0.9549, allocations: 47.34 kB / 1.187 GB, free: 15.61 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008298/0.9558, allocations: 473.5 kB / 1.187 GB, free: 15.15 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.776e-06/0.9558, allocations: 3.984 kB / 1.187 GB, free: 15.14 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.9558, allocations: 8 kB / 1.187 GB, free: 15.14 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 9.214e-05/0.9559, allocations: 128.4 kB / 1.187 GB, free: 14.99 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.714e-05/0.956, allocations: 15.94 kB / 1.187 GB, free: 14.98 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001876/0.9562, allocations: 23.98 kB / 1.187 GB, free: 14.95 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.958e-05/0.9562, allocations: 28.39 kB / 1.187 GB, free: 14.93 MB / 0.92 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001027/0.9573, allocations: 0.5544 MB / 1.188 GB, free: 14.36 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001164/0.9584, allocations: 0.8376 MB / 1.189 GB, free: 13.5 MB / 0.92 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003236/0.9588, allocations: 203.4 kB / 1.189 GB, free: 13.31 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0002846/0.9591, allocations: 291.1 kB / 1.189 GB, free: 13.03 MB / 0.92 GB Notification: Performance of Backend: time 7.41e-07/0.9591, allocations: 0 / 1.189 GB, free: 13.03 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.001708/0.9608, allocations: 0.9618 MB / 1.19 GB, free: 12.01 MB / 0.92 GB Notification: Performance of SimCode: time 0.001585/0.9624, allocations: 1.33 MB / 1.191 GB, free: 10.63 MB / 0.92 GB Notification: Performance of Templates: time 0.01538/0.9778, allocations: 9.122 MB / 1.2 GB, free: 1.578 MB / 0.92 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_PIDWithResetScale.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches