Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.324/2.324, allocations: 393.5 MB / 408.4 MB, free: 10.99 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001178/0.001177, allocations: 178.1 kB / 0.4902 GB, free: 2.246 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.628/1.628, allocations: 223.2 MB / 0.7992 GB, free: 15.7 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001004/0.001004, allocations: 107 kB / 0.9396 GB, free: 2.875 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003922/0.0003919, allocations: 12.19 kB / 1.09 GB, free: 212.7 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3222/0.3226, allocations: 143 MB / 1.229 GB, free: 85.48 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2233/0.5459, allocations: 153.8 MB / 1.379 GB, free: 11.51 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002623/0.5463, allocations: 71.94 kB / 1.379 GB, free: 11.44 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.0467/0.593, allocations: 16.83 MB / 1.396 GB, free: 10.59 MB / 0.9011 GB Notification: Performance of FrontEnd: time 2.003e-06/0.5931, allocations: 0 / 1.396 GB, free: 10.59 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 4.007e-05/0.5931, allocations: 16 kB / 1.396 GB, free: 10.57 MB / 0.9011 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.002101/0.5952, allocations: 1.204 MB / 1.397 GB, free: 9.281 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 5.159e-05/0.5953, allocations: 12.52 kB / 1.397 GB, free: 9.27 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002204/0.5955, allocations: 110.8 kB / 1.397 GB, free: 9.16 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001001/0.5965, allocations: 0.5747 MB / 1.398 GB, free: 8.547 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.524e-05/0.5966, allocations: 65.98 kB / 1.398 GB, free: 8.48 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001472/0.5968, allocations: 88 kB / 1.398 GB, free: 8.395 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001202/0.598, allocations: 0.6684 MB / 1.399 GB, free: 7.711 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.728e-05/0.598, allocations: 0 / 1.399 GB, free: 7.711 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.945e-05/0.5981, allocations: 31.98 kB / 1.399 GB, free: 7.68 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.733e-05/0.5981, allocations: 20 kB / 1.399 GB, free: 7.66 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008903/0.599, allocations: 485 kB / 1.399 GB, free: 7.188 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003612/0.6026, allocations: 2.25 MB / 1.401 GB, free: 4.879 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001102/0.6037, allocations: 0.5575 MB / 1.402 GB, free: 4.309 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 4.424e-05/0.6038, allocations: 8.547 kB / 1.402 GB, free: 4.301 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006493/0.6044, allocations: 370.9 kB / 1.402 GB, free: 3.926 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=68): time 2.485e-06/0.6044, allocations: 0 / 1.402 GB, free: 3.926 MB / 0.9011 GB Notification: Performance of matching and sorting (n=68): time 0.001469/0.6059, allocations: 0.7715 MB / 1.403 GB, free: 3.148 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.196e-05/0.606, allocations: 111.4 kB / 1.403 GB, free: 3.016 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005954/0.6066, allocations: 489.9 kB / 1.403 GB, free: 2.527 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 0.000101/0.6067, allocations: 49.7 kB / 1.404 GB, free: 2.473 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002931/0.607, allocations: 348.5 kB / 1.404 GB, free: 2.125 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001655/0.6072, allocations: 205.1 kB / 1.404 GB, free: 1.922 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.309e-05/0.6073, allocations: 24 kB / 1.404 GB, free: 1.898 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0001888/0.6075, allocations: 374.8 kB / 1.404 GB, free: 1.523 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007158/0.6082, allocations: 341.5 kB / 1.405 GB, free: 1.184 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007938/0.609, allocations: 496.4 kB / 1.405 GB, free: 0.6484 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007612/0.6098, allocations: 495.6 kB / 1.406 GB, free: 132 kB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.536e-06/0.6098, allocations: 3.938 kB / 1.406 GB, free: 128 kB / 0.9011 GB Notification: Performance of matching and sorting (n=91) (initialization): time 0.6507/1.26, allocations: 1.093 MB / 1.407 GB, free: 166.3 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003666/1.261, allocations: 1.207 MB / 1.408 GB, free: 165 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.505e-05/1.261, allocations: 3.719 kB / 1.408 GB, free: 165 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.004e-05/1.261, allocations: 6.5 kB / 1.408 GB, free: 165 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005123/1.261, allocations: 116 kB / 1.408 GB, free: 165 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.484e-05/1.261, allocations: 8.984 kB / 1.408 GB, free: 165 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001241/1.263, allocations: 268.3 kB / 1.408 GB, free: 165 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001101/1.263, allocations: 43 kB / 1.408 GB, free: 165 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 1.443e-05/1.263, allocations: 4.094 kB / 1.408 GB, free: 165 MB / 0.9011 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001853/1.265, allocations: 1.02 MB / 1.409 GB, free: 164.8 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.103e-06/1.265, allocations: 3 kB / 1.409 GB, free: 164.8 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.384e-05/1.265, allocations: 10.22 kB / 1.409 GB, free: 164.8 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004137/1.265, allocations: 97.08 kB / 1.409 GB, free: 164.8 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.235e-05/1.265, allocations: 7.719 kB / 1.409 GB, free: 164.8 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001217/1.266, allocations: 252.3 kB / 1.41 GB, free: 164.8 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001041/1.267, allocations: 46.75 kB / 1.41 GB, free: 164.8 MB / 0.9011 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 ($whenCondition11,$PRE.resSig.y,resSig.y,$whenCondition9,$whenCondition10,$whenCondition7,$whenCondition8,$whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,$PRE.pulse.booPul.y,pulse.booPul.y,$PRE.PIDWitInpGai.greThrkTd.greHys.y,PIDWitInpGai.greThrkTd.greHys.y,$PRE.k.booPul.y,k.booPul.y,$PRE.Ti.booPul.y,Ti.booPul.y,$PRE.Td.booPul.y,Td.booPul.y,$PRE.lesThr.lesHys.y,lesThr.lesHys.y,assMes.u,greThr.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005717/1.267, allocations: 300.8 kB / 1.41 GB, free: 164.7 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001313/1.267, allocations: 70.5 kB / 1.41 GB, free: 164.7 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001227/1.268, allocations: 0.6103 MB / 1.411 GB, free: 164.6 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.107e-05/1.269, allocations: 10.2 kB / 1.411 GB, free: 164.6 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/1.269, allocations: 0 / 1.411 GB, free: 164.6 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.233e-05/1.269, allocations: 5.219 kB / 1.411 GB, free: 164.6 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002426/1.271, allocations: 1.431 MB / 1.412 GB, free: 164.3 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.682e-06/1.271, allocations: 6.219 kB / 1.412 GB, free: 164.3 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004275/1.271, allocations: 101.5 kB / 1.412 GB, free: 164.3 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.197e-05/1.271, allocations: 4.734 kB / 1.412 GB, free: 164.3 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.428e-05/1.272, allocations: 18.36 kB / 1.412 GB, free: 164.3 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.252e-06/1.272, allocations: 2.75 kB / 1.412 GB, free: 164.3 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/1.272, allocations: 1.984 kB / 1.412 GB, free: 164.3 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001633/1.273, allocations: 1.018 MB / 1.413 GB, free: 164 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001374/1.273, allocations: 150.8 kB / 1.413 GB, free: 163.9 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.855e-05/1.273, allocations: 18 kB / 1.413 GB, free: 163.9 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003485/1.274, allocations: 54.64 kB / 1.413 GB, free: 163.9 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000155/1.274, allocations: 63.41 kB / 1.414 GB, free: 163.9 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.168e-05/1.274, allocations: 30.92 kB / 1.414 GB, free: 163.9 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.0005087/1.274, allocations: 362.3 kB / 1.414 GB, free: 163.8 MB / 0.9011 GB Notification: Performance of sort global known variables: time 1.51e-07/1.274, allocations: 1.031 kB / 1.414 GB, free: 163.8 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.001397/1.276, allocations: 349.1 kB / 1.414 GB, free: 163.8 MB / 0.9011 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,assMes.u,greThr.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 (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.000241/1.276, allocations: 146.8 kB / 1.414 GB, free: 163.7 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.002811/1.279, allocations: 1.841 MB / 1.416 GB, free: 163 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/1.279, allocations: 1.438 kB / 1.416 GB, free: 163 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.000523/1.28, allocations: 300.9 kB / 1.416 GB, free: 163 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007775/1.28, allocations: 137 kB / 1.417 GB, free: 163 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002258/1.283, allocations: 1.455 MB / 1.418 GB, free: 162.2 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004819/1.283, allocations: 0.9492 MB / 1.419 GB, free: 161.6 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0003943/1.283, allocations: 83.42 kB / 1.419 GB, free: 161.5 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001604/1.284, allocations: 56.7 kB / 1.419 GB, free: 161.5 MB / 0.9011 GB Notification: Performance of SimCode: time 4.81e-07/1.284, allocations: 1.188 kB / 1.419 GB, free: 161.5 MB / 0.9011 GB Notification: Performance of Templates: time 0.03068/1.314, allocations: 12.21 MB / 1.431 GB, free: 160.8 MB / 0.9011 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.sim & ./Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_Utilities_Validation_PIDWithInputGains.csv","../files/Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches