Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.0009912/0.0009912, allocations: 98.72 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001137/0.001137, allocations: 180.4 kB / 16.92 MB, free: 6.918 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.387/1.387, allocations: 223.3 MB / 241 MB, free: 5.246 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.703/2.703, allocations: 462.6 MB / 0.7371 GB, free: 15.61 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003845/0.0003845, allocations: 19.34 kB / 0.9035 GB, free: 36.43 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3305/0.3309, allocations: 159.6 MB / 1.059 GB, free: 4.992 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale): time 0.002572/0.3335, allocations: 1.792 MB / 1.061 GB, free: 3.199 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002633/0.3362, allocations: 1.692 MB / 1.063 GB, free: 1.492 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000232/0.3364, allocations: 8 kB / 1.063 GB, free: 1.484 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0002192/0.3367, allocations: 63.38 kB / 1.063 GB, free: 1.422 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001861/0.3369, allocations: 55.58 kB / 1.063 GB, free: 1.367 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008189/0.3377, allocations: 377.3 kB / 1.063 GB, free: 1.004 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0006427/0.3383, allocations: 0.7036 MB / 1.064 GB, free: 308 kB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005472/0.3389, allocations: 353.8 kB / 1.064 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002262/0.3391, allocations: 206.9 kB / 1.064 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00025/0.3394, allocations: 226.6 kB / 1.065 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.84e-05/0.3395, allocations: 24 kB / 1.065 GB, free: 15.5 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001003/0.3396, allocations: 35.98 kB / 1.065 GB, free: 15.46 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 8.836e-05/0.3397, allocations: 87.48 kB / 1.065 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.000236/0.3399, allocations: 284 kB / 1.065 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0005718/0.3405, allocations: 0.6625 MB / 1.066 GB, free: 14.43 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.3405, allocations: 0 / 1.066 GB, free: 14.43 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.864e-06/0.3405, allocations: 8 kB / 1.066 GB, free: 14.42 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.947e-06/0.3405, allocations: 0 / 1.066 GB, free: 14.42 MB / 0.8262 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.001521/0.342, allocations: 0.8702 MB / 1.067 GB, free: 13.48 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.09e-05/0.3421, allocations: 11.97 kB / 1.067 GB, free: 13.47 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001289/0.3422, allocations: 72.19 kB / 1.067 GB, free: 13.4 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005065/0.3427, allocations: 417.9 kB / 1.067 GB, free: 12.95 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.075e-05/0.3428, allocations: 53.66 kB / 1.067 GB, free: 12.9 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001139/0.3429, allocations: 64.31 kB / 1.067 GB, free: 12.84 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009183/0.3438, allocations: 0.5275 MB / 1.068 GB, free: 12.3 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.602e-05/0.3439, allocations: 192 / 1.068 GB, free: 12.3 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.972e-05/0.3439, allocations: 35.86 kB / 1.068 GB, free: 12.26 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.273e-05/0.344, allocations: 12 kB / 1.068 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007395/0.3447, allocations: 389 kB / 1.068 GB, free: 11.87 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002486/0.3472, allocations: 1.693 MB / 1.07 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001027/0.3482, allocations: 0.9003 MB / 1.071 GB, free: 9.094 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000422/0.3487, allocations: 272.8 kB / 1.071 GB, free: 8.824 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.619e-05/0.3487, allocations: 8.422 kB / 1.071 GB, free: 8.816 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005401/0.3493, allocations: 285.2 kB / 1.071 GB, free: 8.527 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=53): time 2.023e-06/0.3493, allocations: 0 / 1.071 GB, free: 8.527 MB / 0.8262 GB Notification: Performance of matching and sorting (n=53): time 0.001201/0.3505, allocations: 0.6 MB / 1.072 GB, free: 7.922 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.565e-05/0.3506, allocations: 115.2 kB / 1.072 GB, free: 7.781 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004366/0.351, allocations: 397.7 kB / 1.072 GB, free: 7.379 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 6.017e-05/0.3511, allocations: 41.7 kB / 1.072 GB, free: 7.332 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001906/0.3513, allocations: 261.1 kB / 1.073 GB, free: 7.074 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.000123/0.3514, allocations: 173.5 kB / 1.073 GB, free: 6.902 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.096e-05/0.3515, allocations: 53.69 kB / 1.073 GB, free: 6.844 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001508/0.3517, allocations: 366.7 kB / 1.073 GB, free: 6.477 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004838/0.3522, allocations: 213 kB / 1.073 GB, free: 6.266 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005444/0.3527, allocations: 323.3 kB / 1.074 GB, free: 5.922 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008499/0.3536, allocations: 0.5072 MB / 1.074 GB, free: 5.379 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.3536, allocations: 0 / 1.074 GB, free: 5.379 MB / 0.8262 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001288/0.3549, allocations: 0.6922 MB / 1.075 GB, free: 4.668 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001247/0.355, allocations: 199.7 kB / 1.075 GB, free: 4.434 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.355, allocations: 0 / 1.075 GB, free: 4.434 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.443e-05/0.355, allocations: 4 kB / 1.075 GB, free: 4.43 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004214/0.3555, allocations: 103.8 kB / 1.075 GB, free: 4.328 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.063e-05/0.3555, allocations: 7.938 kB / 1.075 GB, free: 4.32 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006101/0.3561, allocations: 146.1 kB / 1.075 GB, free: 4.18 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.315e-05/0.3562, allocations: 23.98 kB / 1.075 GB, free: 4.156 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 7.714e-06/0.3562, allocations: 5.406 kB / 1.075 GB, free: 4.152 MB / 0.8262 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00102/0.3572, allocations: 0.5818 MB / 1.076 GB, free: 3.559 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.049e-06/0.3572, allocations: 4 kB / 1.076 GB, free: 3.555 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.001e-06/0.3572, allocations: 4 kB / 1.076 GB, free: 3.551 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003164/0.3576, allocations: 83.89 kB / 1.076 GB, free: 3.469 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.615e-06/0.3576, allocations: 7.938 kB / 1.076 GB, free: 3.461 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005629/0.3581, allocations: 123.6 kB / 1.076 GB, free: 3.34 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.663e-05/0.3582, allocations: 31.98 kB / 1.076 GB, free: 3.309 MB / 0.8262 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.0002728/0.3585, allocations: 261 kB / 1.076 GB, free: 3.043 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.183e-05/0.3586, allocations: 47.44 kB / 1.076 GB, free: 2.996 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008876/0.3594, allocations: 489.5 kB / 1.077 GB, free: 2.512 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.965e-06/0.3595, allocations: 8 kB / 1.077 GB, free: 2.504 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.3595, allocations: 0 / 1.077 GB, free: 2.504 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.085e-06/0.3595, allocations: 7.922 kB / 1.077 GB, free: 2.496 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001777/0.3613, allocations: 1.237 MB / 1.078 GB, free: 1.184 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.3613, allocations: 0 / 1.078 GB, free: 1.184 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003756/0.3617, allocations: 95.77 kB / 1.078 GB, free: 1.09 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.442e-06/0.3617, allocations: 8.188 kB / 1.078 GB, free: 1.082 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.534e-05/0.3617, allocations: 20 kB / 1.078 GB, free: 1.062 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.729e-06/0.3618, allocations: 0 / 1.078 GB, free: 1.062 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.729e-06/0.3618, allocations: 4 kB / 1.078 GB, free: 1.059 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001234/0.363, allocations: 0.8107 MB / 1.079 GB, free: 216 kB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001038/0.3631, allocations: 132.5 kB / 1.079 GB, free: 64 kB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.637e-05/0.3632, allocations: 15.98 kB / 1.079 GB, free: 48 kB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002415/0.3634, allocations: 35.98 kB / 1.079 GB, free: 12 kB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.586e-05/0.3635, allocations: 36.41 kB / 1.079 GB, free: 15.97 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.923e-05/0.3636, allocations: 19.94 kB / 1.079 GB, free: 15.95 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0003023/0.3639, allocations: 287.1 kB / 1.079 GB, free: 15.68 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.7e-07/0.3639, allocations: 0 / 1.079 GB, free: 15.68 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0006457/0.3645, allocations: 223.2 kB / 1.08 GB, free: 15.46 MB / 0.8419 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002091/0.3648, allocations: 127.2 kB / 1.08 GB, free: 15.33 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001679/0.3664, allocations: 1.021 MB / 1.081 GB, free: 14.26 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.3665, allocations: 0 / 1.081 GB, free: 14.26 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0004014/0.3669, allocations: 243.3 kB / 1.081 GB, free: 14.02 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007408/0.3676, allocations: 101.4 kB / 1.081 GB, free: 13.92 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001738/0.3694, allocations: 1.264 MB / 1.082 GB, free: 12.61 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004362/0.3698, allocations: 0.8596 MB / 1.083 GB, free: 11.72 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001431/0.37, allocations: 47.42 kB / 1.083 GB, free: 11.67 MB / 0.8419 GB Notification: Performance of SimCode: time 4.61e-07/0.37, allocations: 0 / 1.083 GB, free: 11.67 MB / 0.8419 GB Notification: Performance of Templates: time 0.00986/0.3798, allocations: 6.44 MB / 1.09 GB, free: 5.258 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_PIDWithResetScale.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches