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.001021/0.001021, allocations: 87.03 kB / 15.06 MB, free: 1.09 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.001299/0.001299, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.601/1.601, allocations: 223.3 MB / 240 MB, free: 5.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 3.073/3.073, allocations: 462.6 MB / 0.736 GB, free: 15.74 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003948/0.0003948, allocations: 11.47 kB / 0.9022 GB, free: 36.65 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3711/0.3715, allocations: 159.6 MB / 1.058 GB, free: 5.309 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale): time 0.002591/0.3741, allocations: 1.649 MB / 1.06 GB, free: 3.66 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002638/0.3768, allocations: 1.649 MB / 1.061 GB, free: 1.996 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003883/0.3772, allocations: 15.94 kB / 1.061 GB, free: 1.98 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0002449/0.3775, allocations: 59.38 kB / 1.061 GB, free: 1.922 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002392/0.3777, allocations: 51.58 kB / 1.061 GB, free: 1.871 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009735/0.3787, allocations: 319.3 kB / 1.062 GB, free: 1.566 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0006969/0.3794, allocations: 0.6608 MB / 1.062 GB, free: 0.9062 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004065/0.3798, allocations: 252.7 kB / 1.063 GB, free: 0.6523 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002358/0.3801, allocations: 203 kB / 1.063 GB, free: 464 kB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002623/0.3803, allocations: 214.8 kB / 1.063 GB, free: 248 kB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 6.045e-05/0.3804, allocations: 24 kB / 1.063 GB, free: 224 kB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001136/0.3805, allocations: 43.98 kB / 1.063 GB, free: 180 kB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 8.371e-05/0.3806, allocations: 83.55 kB / 1.063 GB, free: 96 kB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001501/0.3808, allocations: 113.5 kB / 1.063 GB, free: 15.97 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0006324/0.3814, allocations: 0.6742 MB / 1.064 GB, free: 15.3 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.653e-06/0.3814, allocations: 0 / 1.064 GB, free: 15.3 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.194e-06/0.3814, allocations: 0 / 1.064 GB, free: 15.3 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.076e-05/0.3814, allocations: 0 / 1.064 GB, free: 15.3 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.001517/0.383, allocations: 0.8778 MB / 1.065 GB, free: 14.36 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.943e-05/0.383, allocations: 8.031 kB / 1.065 GB, free: 14.35 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001335/0.3832, allocations: 71.25 kB / 1.065 GB, free: 14.28 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005618/0.3837, allocations: 400.9 kB / 1.065 GB, free: 13.85 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.976e-05/0.3838, allocations: 53.3 kB / 1.065 GB, free: 13.8 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001109/0.3839, allocations: 67.95 kB / 1.065 GB, free: 13.73 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009358/0.3848, allocations: 0.523 MB / 1.066 GB, free: 13.19 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.366e-05/0.3849, allocations: 0 / 1.066 GB, free: 13.19 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.722e-05/0.3849, allocations: 24 kB / 1.066 GB, free: 13.17 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.53e-05/0.3849, allocations: 12 kB / 1.066 GB, free: 13.16 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007228/0.3857, allocations: 381 kB / 1.066 GB, free: 12.79 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002466/0.3881, allocations: 1.704 MB / 1.068 GB, free: 11.02 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001052/0.3892, allocations: 0.9035 MB / 1.069 GB, free: 9.992 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004074/0.3896, allocations: 255.2 kB / 1.069 GB, free: 9.738 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 4.323e-05/0.3897, allocations: 8.438 kB / 1.069 GB, free: 9.73 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005705/0.3903, allocations: 289.2 kB / 1.069 GB, free: 9.438 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=53): time 2.605e-06/0.3903, allocations: 0 / 1.069 GB, free: 9.438 MB / 0.8262 GB Notification: Performance of matching and sorting (n=53): time 0.001116/0.3914, allocations: 0.6 MB / 1.07 GB, free: 8.828 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.106e-05/0.3915, allocations: 115.2 kB / 1.07 GB, free: 8.691 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004309/0.3919, allocations: 397.7 kB / 1.07 GB, free: 8.293 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 5.265e-05/0.392, allocations: 41.64 kB / 1.07 GB, free: 8.246 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001955/0.3922, allocations: 257.1 kB / 1.071 GB, free: 7.988 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001233/0.3923, allocations: 173.5 kB / 1.071 GB, free: 7.816 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.762e-05/0.3924, allocations: 12 kB / 1.071 GB, free: 7.805 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0002726/0.3926, allocations: 362.8 kB / 1.071 GB, free: 7.441 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004403/0.3931, allocations: 213 kB / 1.071 GB, free: 7.234 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004981/0.3936, allocations: 319.3 kB / 1.072 GB, free: 6.891 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005282/0.3941, allocations: 289.4 kB / 1.072 GB, free: 6.594 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.3941, allocations: 0 / 1.072 GB, free: 6.594 MB / 0.8262 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001213/0.3954, allocations: 0.6806 MB / 1.073 GB, free: 5.902 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001425/0.3955, allocations: 199.7 kB / 1.073 GB, free: 5.664 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.3955, allocations: 4 kB / 1.073 GB, free: 5.66 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.762e-05/0.3956, allocations: 4 kB / 1.073 GB, free: 5.656 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004126/0.396, allocations: 107.8 kB / 1.073 GB, free: 5.551 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.48e-05/0.396, allocations: 4 kB / 1.073 GB, free: 5.547 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005768/0.3966, allocations: 141.7 kB / 1.073 GB, free: 5.41 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.508e-05/0.3967, allocations: 31.97 kB / 1.073 GB, free: 5.379 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.487e-05/0.3967, allocations: 5.562 kB / 1.073 GB, free: 5.375 MB / 0.8262 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001134/0.3978, allocations: 0.5818 MB / 1.074 GB, free: 4.785 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.877e-06/0.3979, allocations: 0 / 1.074 GB, free: 4.785 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.065e-05/0.3979, allocations: 4 kB / 1.074 GB, free: 4.781 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000364/0.3982, allocations: 91.83 kB / 1.074 GB, free: 4.691 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.315e-05/0.3983, allocations: 4 kB / 1.074 GB, free: 4.688 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005147/0.3988, allocations: 127.6 kB / 1.074 GB, free: 4.562 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.585e-05/0.3989, allocations: 27.98 kB / 1.074 GB, free: 4.535 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,$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.0003983/0.3993, allocations: 262.7 kB / 1.074 GB, free: 4.27 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.075e-05/0.3994, allocations: 47.44 kB / 1.074 GB, free: 4.223 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009392/0.4003, allocations: 485.6 kB / 1.075 GB, free: 3.746 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.069e-05/0.4003, allocations: 7.984 kB / 1.075 GB, free: 3.738 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.047e-05/0.4003, allocations: 0 / 1.075 GB, free: 3.738 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/0.4003, allocations: 7.891 kB / 1.075 GB, free: 3.73 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002157/0.4025, allocations: 1.241 MB / 1.076 GB, free: 2.41 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.803e-06/0.4025, allocations: 4 kB / 1.076 GB, free: 2.406 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003584/0.4029, allocations: 83.89 kB / 1.076 GB, free: 2.324 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.387e-06/0.4029, allocations: 7.938 kB / 1.076 GB, free: 2.316 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.832e-05/0.403, allocations: 16.17 kB / 1.076 GB, free: 2.301 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.583e-06/0.403, allocations: 8 kB / 1.076 GB, free: 2.293 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.403, allocations: 0 / 1.076 GB, free: 2.293 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001236/0.4042, allocations: 0.8032 MB / 1.077 GB, free: 1.445 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000144/0.4044, allocations: 144.3 kB / 1.077 GB, free: 1.285 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.323e-05/0.4044, allocations: 12 kB / 1.077 GB, free: 1.273 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002359/0.4047, allocations: 31.97 kB / 1.077 GB, free: 1.242 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.979e-05/0.4048, allocations: 40.33 kB / 1.077 GB, free: 1.203 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.594e-05/0.4048, allocations: 20 kB / 1.077 GB, free: 1.184 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0003596/0.4052, allocations: 279.2 kB / 1.077 GB, free: 0.9141 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.9e-07/0.4052, allocations: 0 / 1.077 GB, free: 0.9141 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0009453/0.4061, allocations: 227.2 kB / 1.078 GB, free: 0.6914 MB / 0.8262 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.0002904/0.4064, allocations: 127.1 kB / 1.078 GB, free: 0.5586 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001817/0.4083, allocations: 1.021 MB / 1.079 GB, free: 15.49 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.4083, allocations: 0 / 1.079 GB, free: 15.49 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003789/0.4087, allocations: 218.4 kB / 1.079 GB, free: 15.28 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006983/0.4094, allocations: 109.9 kB / 1.079 GB, free: 15.17 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001922/0.4113, allocations: 1.172 MB / 1.08 GB, free: 13.96 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005375/0.4119, allocations: 0.8635 MB / 1.081 GB, free: 13.07 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002596/0.4121, allocations: 52.16 kB / 1.081 GB, free: 13.01 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001205/0.4123, allocations: 47.42 kB / 1.081 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of SimCode: time 8.52e-07/0.4123, allocations: 4 kB / 1.081 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of Templates: time 0.01381/0.4261, allocations: 6.756 MB / 1.088 GB, free: 6.285 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/jenkins/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