Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.Utilities.Validation.PIDWithInputGains,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|PID.k|PIDWitInpGai.k|PID.Ti|PIDWitInpGai.Ti|PID.Td|PIDWitInpGai.Td|PID.y|PIDWitInpGai.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains") translateModel(Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|PID.k|PIDWitInpGai.k|PID.Ti|PIDWitInpGai.Ti|PID.Td|PIDWitInpGai.Td|PID.y|PIDWitInpGai.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001001/0.001001, allocations: 92.16 kB / 16.02 MB, free: 80 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.001307/0.001307, allocations: 174.5 kB / 16.92 MB, free: 6.652 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.404/1.404, allocations: 223.3 MB / 241 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.793/2.793, allocations: 437.8 MB / 0.7128 GB, free: 6.969 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003692/0.0003693, allocations: 8 kB / 0.8735 GB, free: 3.32 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7817/0.7821, allocations: 153.8 MB / 1.024 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains): time 0.003141/0.7853, allocations: 2.37 MB / 1.026 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.003559/0.7889, allocations: 2.122 MB / 1.028 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006735/0.7896, allocations: 19.94 kB / 1.028 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0004345/0.7901, allocations: 91.05 kB / 1.028 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0005744/0.7906, allocations: 99.27 kB / 1.028 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.001903/0.7926, allocations: 0.6896 MB / 1.029 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.001527/0.7941, allocations: 1.125 MB / 1.03 GB, free: 9.359 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000926/0.795, allocations: 467.7 kB / 1.03 GB, free: 8.879 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006149/0.7957, allocations: 346.4 kB / 1.031 GB, free: 8.539 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005199/0.7962, allocations: 342 kB / 1.031 GB, free: 8.203 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.0002279/0.7964, allocations: 40 kB / 1.031 GB, free: 8.164 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002595/0.7967, allocations: 51.98 kB / 1.031 GB, free: 8.113 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001312/0.7968, allocations: 119.2 kB / 1.031 GB, free: 7.996 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.00048/0.7973, allocations: 407.4 kB / 1.032 GB, free: 7.59 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.001053/0.7984, allocations: 1.038 MB / 1.033 GB, free: 6.551 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.66e-06/0.7984, allocations: 0 / 1.033 GB, free: 6.551 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.625e-06/0.7984, allocations: 3.938 kB / 1.033 GB, free: 6.547 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.661e-05/0.7985, allocations: 4 kB / 1.033 GB, free: 6.543 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: 169 * Number of variables: 169 Notification: Performance of Generate backend data structure: time 0.002454/0.8009, allocations: 1.161 MB / 1.034 GB, free: 5.297 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.808e-05/0.801, allocations: 11.98 kB / 1.034 GB, free: 5.285 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003476/0.8013, allocations: 115.8 kB / 1.034 GB, free: 5.172 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009538/0.8023, allocations: 0.5482 MB / 1.035 GB, free: 4.586 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.334e-05/0.8024, allocations: 70.3 kB / 1.035 GB, free: 4.516 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000169/0.8026, allocations: 88.38 kB / 1.035 GB, free: 4.43 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001265/0.8038, allocations: 0.6729 MB / 1.035 GB, free: 3.742 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.965e-05/0.8039, allocations: 192 / 1.035 GB, free: 3.742 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.239e-05/0.804, allocations: 39.92 kB / 1.035 GB, free: 3.703 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.553e-05/0.804, allocations: 16 kB / 1.035 GB, free: 3.688 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009841/0.805, allocations: 493 kB / 1.036 GB, free: 3.207 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003642/0.8086, allocations: 2.242 MB / 1.038 GB, free: 0.9062 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001216/0.8099, allocations: 0.5644 MB / 1.039 GB, free: 336 kB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005619/0.8104, allocations: 291 kB / 1.039 GB, free: 44 kB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 5.285e-05/0.8105, allocations: 12.55 kB / 1.039 GB, free: 32 kB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008271/0.8114, allocations: 370.9 kB / 1.039 GB, free: 15.66 MB / 0.795 GB Notification: Performance of pre-optimization done (n=68): time 2.755e-06/0.8114, allocations: 0 / 1.039 GB, free: 15.66 MB / 0.795 GB Notification: Performance of matching and sorting (n=68): time 0.001915/0.8133, allocations: 0.7715 MB / 1.04 GB, free: 14.88 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001185/0.8134, allocations: 123.4 kB / 1.04 GB, free: 14.73 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008713/0.8143, allocations: 0.5339 MB / 1.041 GB, free: 14.19 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 0.0002113/0.8145, allocations: 49.7 kB / 1.041 GB, free: 14.13 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005128/0.815, allocations: 344.6 kB / 1.041 GB, free: 13.79 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002445/0.8153, allocations: 205 kB / 1.041 GB, free: 13.59 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002234/0.8155, allocations: 89.67 kB / 1.041 GB, free: 13.5 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001987/0.8157, allocations: 378.8 kB / 1.042 GB, free: 13.12 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008461/0.8166, allocations: 341.5 kB / 1.042 GB, free: 12.78 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009309/0.8175, allocations: 486.7 kB / 1.042 GB, free: 12.26 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001293/0.8188, allocations: 0.7613 MB / 1.043 GB, free: 11.43 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.829e-06/0.8189, allocations: 0 / 1.043 GB, free: 11.43 MB / 0.795 GB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002153/0.821, allocations: 1.113 MB / 1.044 GB, free: 10.28 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002348/0.8213, allocations: 337.6 kB / 1.045 GB, free: 9.879 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.419e-05/0.8213, allocations: 7.938 kB / 1.045 GB, free: 9.871 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.055e-05/0.8213, allocations: 4 kB / 1.045 GB, free: 9.867 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004429/0.8218, allocations: 111.8 kB / 1.045 GB, free: 9.758 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.594e-05/0.8218, allocations: 7.984 kB / 1.045 GB, free: 9.75 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001332/0.8231, allocations: 281.1 kB / 1.045 GB, free: 9.477 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001085/0.8232, allocations: 47.97 kB / 1.045 GB, free: 9.43 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.036e-05/0.8233, allocations: 0.625 kB / 1.045 GB, free: 9.43 MB / 0.795 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001891/0.8252, allocations: 1.03 MB / 1.046 GB, free: 8.371 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.162e-05/0.8252, allocations: 4 kB / 1.046 GB, free: 8.367 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.087e-06/0.8252, allocations: 7.938 kB / 1.046 GB, free: 8.359 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003725/0.8256, allocations: 91.84 kB / 1.046 GB, free: 8.27 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.571e-05/0.8256, allocations: 12.09 kB / 1.046 GB, free: 8.258 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001271/0.8269, allocations: 268.7 kB / 1.046 GB, free: 7.996 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.954e-05/0.827, allocations: 51.97 kB / 1.046 GB, free: 7.945 MB / 0.795 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 27 (resSig.y,$PRE.resSig.y,$whenCondition11,$whenCondition9,$whenCondition10,$whenCondition7,$whenCondition8,$whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,or2.y,greThr.y,lesThr.lesHys.y,$PRE.lesThr.lesHys.y,Td.booPul.y,$PRE.Td.booPul.y,Ti.booPul.y,$PRE.Ti.booPul.y,k.booPul.y,$PRE.k.booPul.y,PIDWitInpGai.greThrkTd.greHys.y,$PRE.PIDWitInpGai.greThrkTd.greHys.y,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 (81): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 5 * 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.0005073/0.8275, allocations: 303.7 kB / 1.047 GB, free: 7.637 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001421/0.8277, allocations: 67.16 kB / 1.047 GB, free: 7.57 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001229/0.8289, allocations: 0.611 MB / 1.047 GB, free: 6.949 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.031e-05/0.8289, allocations: 8 kB / 1.047 GB, free: 6.941 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.8289, allocations: 0 / 1.047 GB, free: 6.941 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.367e-06/0.829, allocations: 3.984 kB / 1.047 GB, free: 6.938 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002309/0.8313, allocations: 1.448 MB / 1.049 GB, free: 5.426 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.8313, allocations: 0 / 1.049 GB, free: 5.426 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004141/0.8317, allocations: 91.89 kB / 1.049 GB, free: 5.336 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.269e-05/0.8317, allocations: 4 kB / 1.049 GB, free: 5.332 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.935e-05/0.8318, allocations: 27.86 kB / 1.049 GB, free: 5.305 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.829e-06/0.8318, allocations: 0 / 1.049 GB, free: 5.305 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.519e-06/0.8318, allocations: 4 kB / 1.049 GB, free: 5.301 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001668/0.8335, allocations: 0.9754 MB / 1.05 GB, free: 4.297 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001637/0.8337, allocations: 148.4 kB / 1.05 GB, free: 4.133 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.886e-05/0.8337, allocations: 23.94 kB / 1.05 GB, free: 4.109 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003656/0.8341, allocations: 51.95 kB / 1.05 GB, free: 4.059 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001262/0.8343, allocations: 60.41 kB / 1.05 GB, free: 4 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.383e-05/0.8343, allocations: 27.98 kB / 1.05 GB, free: 3.973 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0004797/0.8348, allocations: 370.8 kB / 1.051 GB, free: 3.613 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8348, allocations: 0 / 1.051 GB, free: 3.613 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.001157/0.836, allocations: 350.8 kB / 1.051 GB, free: 3.27 MB / 0.795 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (PIDWitInpGai.I.y,PIDWitInpGai.D.x,PID.I.y,PID.D.x) * Number of discrete variables: 20 ($whenCondition11,$whenCondition9,$whenCondition10,$whenCondition7,$whenCondition8,$whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,pulse.booPul.y,PIDWitInpGai.greThrkTd.greHys.y,resSig.y,k.booPul.y,Ti.booPul.y,Td.booPul.y,lesThr.lesHys.y,greThr.y,or2.y) * Number of discrete states: 2 (PIDWitInpGai.greThrkTd.greHys.y,lesThr.lesHys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (68): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0002199/0.8362, allocations: 139.1 kB / 1.051 GB, free: 3.121 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.003076/0.8393, allocations: 1.836 MB / 1.053 GB, free: 1.164 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.394e-05/0.8393, allocations: 13.25 kB / 1.053 GB, free: 1.152 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0005978/0.8399, allocations: 319.3 kB / 1.053 GB, free: 0.8398 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001076/0.841, allocations: 154 kB / 1.053 GB, free: 0.6875 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002537/0.8436, allocations: 1.584 MB / 1.055 GB, free: 15.06 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005783/0.8442, allocations: 0.9272 MB / 1.056 GB, free: 14.11 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001956/0.8444, allocations: 55.42 kB / 1.056 GB, free: 14.05 MB / 0.8106 GB Notification: Performance of SimCode: time 1.132e-06/0.8444, allocations: 0 / 1.056 GB, free: 14.05 MB / 0.8106 GB Notification: Performance of Templates: time 0.01658/0.861, allocations: 9.662 MB / 1.065 GB, free: 4.441 MB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.makefile (rm -f Buildings_10_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.sim & ./Buildings_10_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_Utilities_Validation_PIDWithInputGains.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches