Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.PIDScale,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pidSca.y|pidNoSca.y|pla1.y|pla2.y|pidSca.u_s",fileNamePrefix="Buildings_latest_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_latest_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.001384/0.001384, allocations: 111.7 kB / 16.42 MB, free: 6.496 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.001373/0.001373, allocations: 188.3 kB / 17.35 MB, free: 5.758 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.412/1.412, allocations: 222.9 MB / 241.1 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.913/2.913, allocations: 472.7 MB / 0.746 GB, free: 488 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001438/0.001439, allocations: 63.91 kB / 1.07 GB, free: 9.516 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9024/0.9038, allocations: 159.9 MB / 1.226 GB, free: 13.51 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale): time 0.003734/0.9076, allocations: 2.079 MB / 1.228 GB, free: 11.43 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.002428/0.91, allocations: 1.598 MB / 1.23 GB, free: 9.812 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003702/0.9104, allocations: 11.94 kB / 1.23 GB, free: 9.801 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0002972/0.9107, allocations: 79.06 kB / 1.23 GB, free: 9.723 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0002995/0.9111, allocations: 91.19 kB / 1.23 GB, free: 9.633 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008344/0.9119, allocations: 322.4 kB / 1.23 GB, free: 9.32 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0007518/0.9127, allocations: 0.6957 MB / 1.231 GB, free: 8.621 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004684/0.9132, allocations: 337.3 kB / 1.231 GB, free: 8.289 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003717/0.9135, allocations: 259 kB / 1.232 GB, free: 8.035 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003764/0.9139, allocations: 282.6 kB / 1.232 GB, free: 7.758 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 0.0002058/0.9141, allocations: 76 kB / 1.232 GB, free: 7.684 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002164/0.9144, allocations: 95.92 kB / 1.232 GB, free: 7.59 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0001626/0.9145, allocations: 139.5 kB / 1.232 GB, free: 7.453 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0003176/0.9149, allocations: 298.4 kB / 1.233 GB, free: 7.16 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.001065/0.9159, allocations: 0.8331 MB / 1.233 GB, free: 6.328 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.9159, allocations: 0 / 1.233 GB, free: 6.328 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.974e-06/0.916, allocations: 0 / 1.233 GB, free: 6.328 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 3.632e-05/0.916, allocations: 0 / 1.233 GB, free: 6.328 MB / 0.9512 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.002223/0.9182, allocations: 0.926 MB / 1.234 GB, free: 5.344 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.554e-05/0.9183, allocations: 11.97 kB / 1.234 GB, free: 5.332 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001628/0.9185, allocations: 76.45 kB / 1.234 GB, free: 5.258 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005927/0.9191, allocations: 408.9 kB / 1.235 GB, free: 4.816 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.193e-05/0.9191, allocations: 45.38 kB / 1.235 GB, free: 4.77 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.142e-05/0.9192, allocations: 64.33 kB / 1.235 GB, free: 4.707 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008113/0.92, allocations: 495.5 kB / 1.235 GB, free: 4.211 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.481e-05/0.9201, allocations: 192 / 1.235 GB, free: 4.211 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.149e-05/0.9201, allocations: 23.94 kB / 1.235 GB, free: 4.188 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.235e-05/0.9201, allocations: 12 kB / 1.235 GB, free: 4.176 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006762/0.9208, allocations: 355.8 kB / 1.236 GB, free: 3.828 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002237/0.9231, allocations: 1.547 MB / 1.237 GB, free: 2.223 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009443/0.924, allocations: 0.8768 MB / 1.238 GB, free: 1.23 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003881/0.9244, allocations: 225.3 kB / 1.238 GB, free: 1.008 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 3.962e-05/0.9245, allocations: 11.98 kB / 1.238 GB, free: 0.9961 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004173/0.9249, allocations: 244.9 kB / 1.239 GB, free: 0.7422 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=47): time 2.154e-06/0.9249, allocations: 0 / 1.239 GB, free: 0.7422 MB / 0.9512 GB Notification: Performance of matching and sorting (n=47): time 0.001051/0.926, allocations: 0.5261 MB / 1.239 GB, free: 216 kB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.802e-05/0.926, allocations: 111.2 kB / 1.239 GB, free: 80 kB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000439/0.9265, allocations: 385.7 kB / 1.24 GB, free: 15.69 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 4.721e-05/0.9265, allocations: 41.69 kB / 1.24 GB, free: 15.64 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001834/0.9267, allocations: 257.3 kB / 1.24 GB, free: 15.38 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001155/0.9268, allocations: 162.5 kB / 1.24 GB, free: 15.23 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001608/0.927, allocations: 102.2 kB / 1.24 GB, free: 15.12 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001321/0.9271, allocations: 358.8 kB / 1.24 GB, free: 14.76 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004137/0.9276, allocations: 187 kB / 1.241 GB, free: 14.57 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004683/0.928, allocations: 284.2 kB / 1.241 GB, free: 14.26 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007437/0.9288, allocations: 428.1 kB / 1.241 GB, free: 13.81 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.9288, allocations: 0 / 1.241 GB, free: 13.81 MB / 0.9669 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001125/0.9299, allocations: 0.5755 MB / 1.242 GB, free: 13.23 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 4.985e-05/0.93, allocations: 41.64 kB / 1.242 GB, free: 13.18 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.083e-06/0.93, allocations: 0 / 1.242 GB, free: 13.18 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.058e-05/0.93, allocations: 4 kB / 1.242 GB, free: 13.18 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004291/0.9305, allocations: 99.81 kB / 1.242 GB, free: 13.08 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.096e-05/0.9305, allocations: 4 kB / 1.242 GB, free: 13.07 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003889/0.9309, allocations: 83.8 kB / 1.242 GB, free: 12.99 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.881e-05/0.931, allocations: 20 kB / 1.242 GB, free: 12.97 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004398/0.9314, allocations: 285.2 kB / 1.242 GB, free: 12.69 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000372/0.9318, allocations: 256.3 kB / 1.243 GB, free: 12.41 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005628/0.9324, allocations: 395.3 kB / 1.243 GB, free: 11.99 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.984e-06/0.9324, allocations: 4 kB / 1.243 GB, free: 11.98 MB / 0.9669 GB Notification: Performance of matching and sorting (n=60) (initialization_lambda0): time 0.0008878/0.9333, allocations: 0.5208 MB / 1.243 GB, free: 11.45 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 3.382e-05/0.9333, allocations: 41.69 kB / 1.244 GB, free: 11.4 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.426e-06/0.9333, allocations: 0 / 1.244 GB, free: 11.4 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.344e-06/0.9333, allocations: 11.88 kB / 1.244 GB, free: 11.39 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000335/0.9337, allocations: 83.91 kB / 1.244 GB, free: 11.31 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.403e-06/0.9337, allocations: 12.16 kB / 1.244 GB, free: 11.3 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000349/0.934, allocations: 71.72 kB / 1.244 GB, free: 11.23 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.652e-05/0.9341, allocations: 20 kB / 1.244 GB, free: 11.21 MB / 0.9669 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.0001577/0.9343, allocations: 215.1 kB / 1.244 GB, free: 10.99 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.939e-05/0.9343, allocations: 55.61 kB / 1.244 GB, free: 10.94 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007889/0.9351, allocations: 437.3 kB / 1.244 GB, free: 10.5 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.215e-06/0.9351, allocations: 0 / 1.244 GB, free: 10.5 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.9352, allocations: 3.938 kB / 1.244 GB, free: 10.5 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 9.237e-05/0.9353, allocations: 124.8 kB / 1.245 GB, free: 10.36 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.595e-05/0.9353, allocations: 12 kB / 1.245 GB, free: 10.35 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001858/0.9355, allocations: 23.97 kB / 1.245 GB, free: 10.32 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.811e-05/0.9356, allocations: 28.5 kB / 1.245 GB, free: 10.3 MB / 0.9669 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001015/0.9366, allocations: 0.5113 MB / 1.245 GB, free: 9.777 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001138/0.9377, allocations: 0.7866 MB / 1.246 GB, free: 8.973 MB / 0.9669 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003141/0.9381, allocations: 187.5 kB / 1.246 GB, free: 8.793 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0003165/0.9384, allocations: 271.2 kB / 1.246 GB, free: 8.531 MB / 0.9669 GB Notification: Performance of Backend: time 9.42e-07/0.9384, allocations: 8 kB / 1.246 GB, free: 8.523 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.001666/0.9401, allocations: 0.7422 MB / 1.247 GB, free: 7.75 MB / 0.9669 GB Notification: Performance of SimCode: time 0.001599/0.9417, allocations: 1.29 MB / 1.248 GB, free: 6.41 MB / 0.9669 GB Notification: Performance of Templates: time 0.0145/0.9562, allocations: 7.565 MB / 1.256 GB, free: 14.9 MB / 0.9825 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_PIDScale.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches