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 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.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.001301/0.001301, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.001348/0.001348, allocations: 177.3 kB / 15.95 MB, free: 216 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.447/1.447, allocations: 223.2 MB / 239.9 MB, free: 5.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.729/2.729, allocations: 436.5 MB / 0.7104 GB, free: 7.898 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003877/0.0003877, allocations: 12 kB / 0.8708 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7745/0.7749, allocations: 153.7 MB / 1.021 GB, free: 1.09 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale): time 0.002899/0.7779, allocations: 1.605 MB / 1.022 GB, free: 15.48 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002929/0.7808, allocations: 1.537 MB / 1.024 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002772/0.7811, allocations: 8 kB / 1.024 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 9.23e-05/0.7812, allocations: 39.52 kB / 1.024 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0002563/0.7815, allocations: 75.7 kB / 1.024 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007208/0.7822, allocations: 234.2 kB / 1.024 GB, free: 13.58 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0005119/0.7827, allocations: 381.3 kB / 1.025 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003801/0.7831, allocations: 239.1 kB / 1.025 GB, free: 12.97 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001718/0.7833, allocations: 171.2 kB / 1.025 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002344/0.7835, allocations: 194.9 kB / 1.025 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 5.098e-05/0.7836, allocations: 20 kB / 1.025 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 9.162e-05/0.7837, allocations: 35.92 kB / 1.025 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 8.378e-05/0.7838, allocations: 83.59 kB / 1.025 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001041/0.7839, allocations: 109.4 kB / 1.025 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0005735/0.7845, allocations: 0.6019 MB / 1.026 GB, free: 11.76 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.455e-06/0.7845, allocations: 0 / 1.026 GB, free: 11.76 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.503e-06/0.7845, allocations: 0 / 1.026 GB, free: 11.76 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.983e-06/0.7845, allocations: 4 kB / 1.026 GB, free: 11.76 MB / 0.7794 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.00191/0.7864, allocations: 0.8135 MB / 1.027 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.295e-05/0.7865, allocations: 11.98 kB / 1.027 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001225/0.7866, allocations: 67.25 kB / 1.027 GB, free: 10.81 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005373/0.7871, allocations: 395.6 kB / 1.027 GB, free: 10.38 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.656e-05/0.7872, allocations: 41 kB / 1.027 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.706e-05/0.7873, allocations: 56 kB / 1.027 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008656/0.7882, allocations: 0.4911 MB / 1.028 GB, free: 9.785 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.322e-05/0.7882, allocations: 8 kB / 1.028 GB, free: 9.777 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.267e-05/0.7883, allocations: 20 kB / 1.028 GB, free: 9.758 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.784e-05/0.7883, allocations: 15.98 kB / 1.028 GB, free: 9.742 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007326/0.789, allocations: 351.8 kB / 1.028 GB, free: 9.398 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002451/0.7915, allocations: 1.582 MB / 1.03 GB, free: 7.754 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001357/0.7929, allocations: 0.8878 MB / 1.031 GB, free: 6.75 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 6.015e-05/0.7929, allocations: 8 kB / 1.031 GB, free: 6.742 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005271/0.7935, allocations: 252.7 kB / 1.031 GB, free: 6.48 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=47): time 2.315e-06/0.7935, allocations: 0 / 1.031 GB, free: 6.48 MB / 0.7794 GB Notification: Performance of matching and sorting (n=47): time 0.001122/0.7946, allocations: 0.5494 MB / 1.031 GB, free: 5.926 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.408e-05/0.7947, allocations: 107.2 kB / 1.032 GB, free: 5.797 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004761/0.7952, allocations: 385.5 kB / 1.032 GB, free: 5.406 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 5.791e-05/0.7953, allocations: 41.69 kB / 1.032 GB, free: 5.359 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002171/0.7955, allocations: 257 kB / 1.032 GB, free: 5.105 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001246/0.7956, allocations: 157.7 kB / 1.032 GB, free: 4.949 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.943e-05/0.7957, allocations: 12 kB / 1.032 GB, free: 4.938 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001812/0.7958, allocations: 354.8 kB / 1.033 GB, free: 4.582 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005151/0.7964, allocations: 185 kB / 1.033 GB, free: 4.402 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004666/0.7968, allocations: 284.3 kB / 1.033 GB, free: 4.09 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000546/0.7974, allocations: 238.4 kB / 1.033 GB, free: 3.852 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.7974, allocations: 4 kB / 1.033 GB, free: 3.848 MB / 0.7794 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001114/0.7985, allocations: 0.5714 MB / 1.034 GB, free: 3.262 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004394/0.799, allocations: 0.7378 MB / 1.035 GB, free: 2.461 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.442e-05/0.799, allocations: 0 / 1.035 GB, free: 2.461 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.293e-05/0.799, allocations: 11.88 kB / 1.035 GB, free: 2.449 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004476/0.7995, allocations: 95.89 kB / 1.035 GB, free: 2.355 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.577e-05/0.7995, allocations: 7.984 kB / 1.035 GB, free: 2.348 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004559/0.8, allocations: 99.48 kB / 1.035 GB, free: 2.25 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.604e-05/0.8, allocations: 23.98 kB / 1.035 GB, free: 2.227 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.19e-05/0.8001, allocations: 4 kB / 1.035 GB, free: 2.223 MB / 0.7794 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009347/0.801, allocations: 475.9 kB / 1.035 GB, free: 1.754 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.801, allocations: 4 kB / 1.035 GB, free: 1.75 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.853e-06/0.801, allocations: 4 kB / 1.035 GB, free: 1.746 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003314/0.8014, allocations: 91.83 kB / 1.035 GB, free: 1.656 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.312e-06/0.8014, allocations: 4 kB / 1.035 GB, free: 1.652 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003706/0.8018, allocations: 87.72 kB / 1.035 GB, free: 1.566 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.085e-05/0.8018, allocations: 27.97 kB / 1.036 GB, free: 1.539 MB / 0.7794 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,$PRE.pulse.booPul.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003861/0.8022, allocations: 253 kB / 1.036 GB, free: 1.281 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.548e-05/0.8023, allocations: 43.53 kB / 1.036 GB, free: 1.238 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008925/0.8032, allocations: 445.3 kB / 1.036 GB, free: 0.793 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.238e-06/0.8032, allocations: 7.938 kB / 1.036 GB, free: 0.7852 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.483e-05/0.8032, allocations: 12 kB / 1.036 GB, free: 0.7734 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.139e-05/0.8032, allocations: 7.938 kB / 1.036 GB, free: 0.7656 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001875/0.8051, allocations: 1.159 MB / 1.037 GB, free: 15.53 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.8051, allocations: 0 / 1.037 GB, free: 15.53 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003371/0.8055, allocations: 83.89 kB / 1.037 GB, free: 15.45 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.131e-06/0.8055, allocations: 4 kB / 1.037 GB, free: 15.44 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.927e-05/0.8055, allocations: 12 kB / 1.037 GB, free: 15.43 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.773e-06/0.8055, allocations: 4 kB / 1.037 GB, free: 15.43 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.8055, allocations: 3.938 kB / 1.037 GB, free: 15.42 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001174/0.8067, allocations: 0.8216 MB / 1.038 GB, free: 14.53 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001394/0.8069, allocations: 132.5 kB / 1.038 GB, free: 14.38 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.344e-05/0.8069, allocations: 12 kB / 1.038 GB, free: 14.37 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002215/0.8072, allocations: 31.98 kB / 1.038 GB, free: 14.34 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.871e-05/0.8073, allocations: 35.67 kB / 1.038 GB, free: 14.3 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.521e-05/0.8073, allocations: 16 kB / 1.038 GB, free: 14.29 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0003482/0.8076, allocations: 271.2 kB / 1.039 GB, free: 14.02 MB / 0.795 GB Notification: Performance of sort global known variables: time 3.81e-07/0.8076, allocations: 0 / 1.039 GB, free: 14.02 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0006785/0.8083, allocations: 191.3 kB / 1.039 GB, free: 13.84 MB / 0.795 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 (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.0003199/0.8087, allocations: 127.1 kB / 1.039 GB, free: 13.7 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.001494/0.8102, allocations: 0.7918 MB / 1.04 GB, free: 12.89 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.644e-05/0.8102, allocations: 7.938 kB / 1.04 GB, free: 12.88 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0003324/0.8105, allocations: 200.7 kB / 1.04 GB, free: 12.68 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005444/0.8111, allocations: 81.45 kB / 1.04 GB, free: 12.61 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001694/0.8128, allocations: 1.117 MB / 1.041 GB, free: 11.45 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000503/0.8133, allocations: 0.8593 MB / 1.042 GB, free: 10.56 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0002267/0.8135, allocations: 51.38 kB / 1.042 GB, free: 10.51 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001059/0.8137, allocations: 39.42 kB / 1.042 GB, free: 10.47 MB / 0.795 GB Notification: Performance of SimCode: time 5.11e-07/0.8137, allocations: 0 / 1.042 GB, free: 10.47 MB / 0.795 GB Notification: Performance of Templates: time 0.01063/0.8243, allocations: 5.446 MB / 1.047 GB, free: 5.086 MB / 0.795 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","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches