Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale.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.PIDScale,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pidSca.y|pidNoSca.y|pla1.y|pla2.y|pidSca.u_s",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pidSca.y|pidNoSca.y|pla1.y|pla2.y|pidSca.u_s",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001321/0.001321, allocations: 106.7 kB / 16.4 MB, free: 6.016 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.001472/0.001472, allocations: 195.4 kB / 17.34 MB, free: 5.602 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.501/1.501, allocations: 222.9 MB / 241 MB, free: 15.09 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.751/2.751, allocations: 437.1 MB / 0.7112 GB, free: 4.328 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.002182/0.002182, allocations: 67.89 kB / 1.019 GB, free: 9.293 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9651/0.9673, allocations: 151.6 MB / 1.167 GB, free: 3.781 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale): time 0.003781/0.9711, allocations: 2.088 MB / 1.169 GB, free: 1.691 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.003122/0.9743, allocations: 1.607 MB / 1.171 GB, free: 68 kB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002476/0.9746, allocations: 12 kB / 1.171 GB, free: 56 kB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0003172/0.9749, allocations: 91.09 kB / 1.171 GB, free: 15.96 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.0002118/0.9752, allocations: 79.25 kB / 1.171 GB, free: 15.88 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009989/0.9762, allocations: 323.1 kB / 1.171 GB, free: 15.57 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0008128/0.977, allocations: 0.6958 MB / 1.172 GB, free: 14.88 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005239/0.9775, allocations: 325.3 kB / 1.172 GB, free: 14.55 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003013/0.9779, allocations: 263 kB / 1.173 GB, free: 14.29 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003497/0.9782, allocations: 278.6 kB / 1.173 GB, free: 14.02 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0001096/0.9783, allocations: 80 kB / 1.173 GB, free: 13.94 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001533/0.9785, allocations: 95.97 kB / 1.173 GB, free: 13.85 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0001656/0.9787, allocations: 139.5 kB / 1.173 GB, free: 13.71 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0003111/0.979, allocations: 306.4 kB / 1.174 GB, free: 13.41 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.001029/0.98, allocations: 0.8253 MB / 1.174 GB, free: 12.59 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 4.329e-06/0.98, allocations: 0 / 1.174 GB, free: 12.59 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.713e-06/0.98, allocations: 0 / 1.174 GB, free: 12.59 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 9.127e-06/0.9801, allocations: 0 / 1.174 GB, free: 12.59 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: 124 * Number of variables: 124 Notification: Performance of Generate backend data structure: time 0.001787/0.9818, allocations: 0.9221 MB / 1.175 GB, free: 11.61 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.072e-05/0.9819, allocations: 8.031 kB / 1.175 GB, free: 11.6 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001343/0.982, allocations: 72.55 kB / 1.175 GB, free: 11.53 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006309/0.9827, allocations: 412.8 kB / 1.176 GB, free: 11.09 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.752e-05/0.9828, allocations: 41.36 kB / 1.176 GB, free: 11.05 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001043/0.9829, allocations: 64.33 kB / 1.176 GB, free: 10.98 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009741/0.9838, allocations: 0.4916 MB / 1.176 GB, free: 10.48 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.564e-05/0.9839, allocations: 192 / 1.176 GB, free: 10.48 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.014e-05/0.9839, allocations: 27.94 kB / 1.176 GB, free: 10.45 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.191e-05/0.984, allocations: 12 kB / 1.176 GB, free: 10.44 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000757/0.9847, allocations: 343.8 kB / 1.177 GB, free: 10.11 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002599/0.9873, allocations: 1.555 MB / 1.178 GB, free: 8.488 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001239/0.9886, allocations: 0.8743 MB / 1.179 GB, free: 7.496 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003989/0.989, allocations: 230.6 kB / 1.179 GB, free: 7.27 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 3.738e-05/0.989, allocations: 11.98 kB / 1.179 GB, free: 7.258 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004618/0.9895, allocations: 244.8 kB / 1.18 GB, free: 7.008 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=47): time 1.843e-06/0.9895, allocations: 0 / 1.18 GB, free: 7.008 MB / 0.9044 GB Notification: Performance of matching and sorting (n=47): time 0.001137/0.9907, allocations: 0.5223 MB / 1.18 GB, free: 6.477 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.897e-05/0.9908, allocations: 111.2 kB / 1.18 GB, free: 6.344 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004969/0.9913, allocations: 389.6 kB / 1.181 GB, free: 5.953 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 6.391e-05/0.9913, allocations: 37.7 kB / 1.181 GB, free: 5.91 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002422/0.9916, allocations: 253.3 kB / 1.181 GB, free: 5.656 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001452/0.9917, allocations: 170.5 kB / 1.181 GB, free: 5.488 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001863/0.9919, allocations: 102.2 kB / 1.181 GB, free: 5.383 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.000261/0.9922, allocations: 354.8 kB / 1.181 GB, free: 5.027 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000448/0.9926, allocations: 191 kB / 1.182 GB, free: 4.836 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005354/0.9932, allocations: 276.3 kB / 1.182 GB, free: 4.535 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008969/0.9941, allocations: 439.3 kB / 1.182 GB, free: 4.074 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.9941, allocations: 0 / 1.182 GB, free: 4.074 MB / 0.9044 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001184/0.9953, allocations: 0.5715 MB / 1.183 GB, free: 3.492 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 6.397e-05/0.9954, allocations: 41.64 kB / 1.183 GB, free: 3.445 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.346e-06/0.9954, allocations: 0 / 1.183 GB, free: 3.445 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.095e-05/0.9954, allocations: 4 kB / 1.183 GB, free: 3.441 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004189/0.9958, allocations: 99.81 kB / 1.183 GB, free: 3.344 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.263e-05/0.9959, allocations: 4.219 kB / 1.183 GB, free: 3.34 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003853/0.9963, allocations: 79.69 kB / 1.183 GB, free: 3.262 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.007e-05/0.9963, allocations: 23.98 kB / 1.183 GB, free: 3.238 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004838/0.9968, allocations: 277.2 kB / 1.183 GB, free: 2.961 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004333/0.9973, allocations: 268.2 kB / 1.184 GB, free: 2.668 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006129/0.9979, allocations: 392.1 kB / 1.184 GB, free: 2.258 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.703e-06/0.9979, allocations: 3.938 kB / 1.184 GB, free: 2.254 MB / 0.9044 GB Notification: Performance of matching and sorting (n=60) (initialization_lambda0): time 0.001098/0.999, allocations: 0.5169 MB / 1.184 GB, free: 1.723 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 4.418e-05/0.999, allocations: 41.91 kB / 1.185 GB, free: 1.676 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.9991, allocations: 7.938 kB / 1.185 GB, free: 1.668 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.02e-06/0.9991, allocations: 4 kB / 1.185 GB, free: 1.664 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003412/0.9994, allocations: 91.78 kB / 1.185 GB, free: 1.574 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.514e-06/0.9994, allocations: 4 kB / 1.185 GB, free: 1.57 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003603/0.9998, allocations: 71.72 kB / 1.185 GB, free: 1.5 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.945e-05/0.9999, allocations: 20 kB / 1.185 GB, free: 1.48 MB / 0.9044 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition3,$whenCondition1,$whenCondition2,pulse.booPul.y,$PRE.pulse.booPul.y,pidNoSca.con1.y,pidSca.con1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 1 * 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.0002239/1, allocations: 220.1 kB / 1.185 GB, free: 1.258 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.205e-05/1, allocations: 51.61 kB / 1.185 GB, free: 1.207 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008735/1.001, allocations: 425.4 kB / 1.185 GB, free: 0.7773 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.913e-06/1.001, allocations: 4 kB / 1.185 GB, free: 0.7734 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/1.001, allocations: 0 / 1.185 GB, free: 0.7734 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.22e-05/1.001, allocations: 3.984 kB / 1.185 GB, free: 0.7695 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001964/1.003, allocations: 1.144 MB / 1.186 GB, free: 15.55 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.307e-06/1.003, allocations: 0 / 1.186 GB, free: 15.55 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003733/1.003, allocations: 79.89 kB / 1.187 GB, free: 15.47 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.309e-06/1.003, allocations: 0 / 1.187 GB, free: 15.47 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.081e-05/1.004, allocations: 20 kB / 1.187 GB, free: 15.45 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.67e-06/1.004, allocations: 7.938 kB / 1.187 GB, free: 15.44 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.633e-06/1.004, allocations: 7.875 kB / 1.187 GB, free: 15.43 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001208/1.005, allocations: 0.7265 MB / 1.187 GB, free: 14.68 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001228/1.005, allocations: 128.8 kB / 1.187 GB, free: 14.53 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.746e-05/1.005, allocations: 12 kB / 1.187 GB, free: 14.52 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000217/1.005, allocations: 27.97 kB / 1.187 GB, free: 14.49 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.7e-05/1.005, allocations: 39.62 kB / 1.188 GB, free: 14.45 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.846e-05/1.005, allocations: 15.98 kB / 1.188 GB, free: 14.44 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0003251/1.006, allocations: 271.2 kB / 1.188 GB, free: 14.18 MB / 0.92 GB Notification: Performance of sort global known variables: time 2.6e-07/1.006, allocations: 4 kB / 1.188 GB, free: 14.17 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0006508/1.006, allocations: 195.5 kB / 1.188 GB, free: 13.98 MB / 0.92 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: 4 ($whenCondition3,$whenCondition1,$whenCondition2,pulse.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (47): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0002512/1.007, allocations: 123.2 kB / 1.188 GB, free: 13.85 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.001566/1.008, allocations: 0.7878 MB / 1.189 GB, free: 13.04 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 5.932e-06/1.008, allocations: 4 kB / 1.189 GB, free: 13.04 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0004414/1.009, allocations: 187.7 kB / 1.189 GB, free: 12.85 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006506/1.009, allocations: 103.1 kB / 1.189 GB, free: 12.75 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001732/1.011, allocations: 0.9473 MB / 1.19 GB, free: 11.76 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005525/1.012, allocations: 0.8474 MB / 1.191 GB, free: 10.88 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.000218/1.012, allocations: 51.45 kB / 1.191 GB, free: 10.83 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001191/1.012, allocations: 51.42 kB / 1.191 GB, free: 10.78 MB / 0.92 GB Notification: Performance of SimCode: time 4.71e-07/1.012, allocations: 0 / 1.191 GB, free: 10.78 MB / 0.92 GB Notification: Performance of Templates: time 0.01486/1.027, allocations: 6.076 MB / 1.197 GB, free: 4.766 MB / 0.92 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_PIDScale.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches