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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001121/0.001122, allocations: 99.55 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.001286/0.001286, 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.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.706/2.706, allocations: 436.5 MB / 0.7104 GB, free: 7.883 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003841/0.0003842, allocations: 16 kB / 0.8708 GB, free: 4.797 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7898/0.7902, allocations: 153.6 MB / 1.021 GB, free: 1.133 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains): time 0.003264/0.7935, allocations: 2.217 MB / 1.023 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.003508/0.7971, allocations: 1.958 MB / 1.025 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004834/0.7976, allocations: 15.94 kB / 1.025 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001266/0.7977, allocations: 51.38 kB / 1.025 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0003943/0.7981, allocations: 135.5 kB / 1.025 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.001632/0.7998, allocations: 0.6169 MB / 1.026 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.001052/0.8008, allocations: 0.6616 MB / 1.026 GB, free: 11.47 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005534/0.8014, allocations: 347.5 kB / 1.027 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003901/0.8018, allocations: 330.7 kB / 1.027 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003868/0.8022, allocations: 334.3 kB / 1.027 GB, free: 10.47 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.0001013/0.8023, allocations: 40 kB / 1.027 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001461/0.8024, allocations: 47.98 kB / 1.027 GB, free: 10.38 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001176/0.8026, allocations: 111.5 kB / 1.027 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001775/0.8027, allocations: 165.3 kB / 1.028 GB, free: 10.11 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.001033/0.8038, allocations: 1.026 MB / 1.029 GB, free: 9.078 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/0.8038, allocations: 0 / 1.029 GB, free: 9.078 MB / 0.7794 GB Notification: Performance of FrontEnd: time 5.029e-06/0.8038, allocations: 0 / 1.029 GB, free: 9.078 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 2.025e-05/0.8038, allocations: 4 kB / 1.029 GB, free: 9.074 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.002381/0.8062, allocations: 1.18 MB / 1.03 GB, free: 7.812 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.298e-05/0.8063, allocations: 8.031 kB / 1.03 GB, free: 7.805 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002191/0.8065, allocations: 102.9 kB / 1.03 GB, free: 7.703 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008871/0.8074, allocations: 0.5435 MB / 1.03 GB, free: 7.117 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.271e-05/0.8075, allocations: 62 kB / 1.03 GB, free: 7.059 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001468/0.8077, allocations: 87.95 kB / 1.031 GB, free: 6.973 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001161/0.8088, allocations: 0.6684 MB / 1.031 GB, free: 6.285 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.131e-05/0.8089, allocations: 7.938 kB / 1.031 GB, free: 6.277 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.863e-05/0.8089, allocations: 24 kB / 1.031 GB, free: 6.254 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.667e-05/0.8089, allocations: 16 kB / 1.031 GB, free: 6.238 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009459/0.8099, allocations: 485 kB / 1.032 GB, free: 5.762 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003695/0.8136, allocations: 2.254 MB / 1.034 GB, free: 3.445 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001109/0.8147, allocations: 0.5526 MB / 1.034 GB, free: 2.879 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 4.413e-05/0.8148, allocations: 8.562 kB / 1.034 GB, free: 2.871 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006361/0.8154, allocations: 386.8 kB / 1.035 GB, free: 2.484 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=68): time 6.332e-06/0.8154, allocations: 3.984 kB / 1.035 GB, free: 2.48 MB / 0.7794 GB Notification: Performance of matching and sorting (n=68): time 0.001496/0.817, allocations: 0.7638 MB / 1.036 GB, free: 1.711 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.732e-05/0.817, allocations: 115.3 kB / 1.036 GB, free: 1.574 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006616/0.8177, allocations: 0.534 MB / 1.036 GB, free: 1.031 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 0.0001013/0.8178, allocations: 49.7 kB / 1.036 GB, free: 0.9766 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003055/0.8181, allocations: 344.5 kB / 1.037 GB, free: 0.6328 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001664/0.8183, allocations: 205 kB / 1.037 GB, free: 440 kB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.098e-05/0.8184, allocations: 27.94 kB / 1.037 GB, free: 412 kB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001688/0.8186, allocations: 374.8 kB / 1.037 GB, free: 28 kB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007151/0.8193, allocations: 345.6 kB / 1.038 GB, free: 15.69 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008004/0.8201, allocations: 478.7 kB / 1.038 GB, free: 15.18 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008448/0.8209, allocations: 483.5 kB / 1.038 GB, free: 14.67 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.821, allocations: 0 / 1.038 GB, free: 14.67 MB / 0.795 GB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002054/0.823, allocations: 1.109 MB / 1.04 GB, free: 13.53 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007358/0.8238, allocations: 1.212 MB / 1.041 GB, free: 12.21 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.026e-05/0.8238, allocations: 0 / 1.041 GB, free: 12.21 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.529e-05/0.8238, allocations: 8 kB / 1.041 GB, free: 12.2 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004428/0.8243, allocations: 119.8 kB / 1.041 GB, free: 12.08 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.593e-05/0.8243, allocations: 4 kB / 1.041 GB, free: 12.08 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001237/0.8255, allocations: 275.2 kB / 1.041 GB, free: 11.81 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.687e-05/0.8256, allocations: 47.97 kB / 1.041 GB, free: 11.76 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.107e-05/0.8257, allocations: 4.109 kB / 1.041 GB, free: 11.76 MB / 0.795 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001653/0.8273, allocations: 1.023 MB / 1.042 GB, free: 10.7 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.8273, allocations: 4 kB / 1.042 GB, free: 10.7 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.066e-05/0.8274, allocations: 8 kB / 1.042 GB, free: 10.69 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003824/0.8277, allocations: 91.84 kB / 1.042 GB, free: 10.6 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.578e-06/0.8278, allocations: 11.89 kB / 1.042 GB, free: 10.59 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001117/0.8289, allocations: 264.8 kB / 1.043 GB, free: 10.33 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.165e-05/0.829, allocations: 43.98 kB / 1.043 GB, free: 10.29 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 ($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,greThr.y,or2.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.0005299/0.8295, allocations: 303.2 kB / 1.043 GB, free: 9.984 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001155/0.8296, allocations: 71.16 kB / 1.043 GB, free: 9.914 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001154/0.8308, allocations: 0.6071 MB / 1.044 GB, free: 9.293 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.266e-06/0.8308, allocations: 8 kB / 1.044 GB, free: 9.285 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.756e-06/0.8308, allocations: 3.953 kB / 1.044 GB, free: 9.281 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.787e-06/0.8308, allocations: 3.984 kB / 1.044 GB, free: 9.277 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002058/0.8329, allocations: 1.432 MB / 1.045 GB, free: 7.777 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.402e-06/0.8329, allocations: 4 kB / 1.045 GB, free: 7.773 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000396/0.8333, allocations: 103.8 kB / 1.045 GB, free: 7.672 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.597e-06/0.8334, allocations: 12.05 kB / 1.045 GB, free: 7.66 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.751e-05/0.8334, allocations: 12 kB / 1.045 GB, free: 7.648 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.105e-06/0.8334, allocations: 7.984 kB / 1.045 GB, free: 7.641 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.8334, allocations: 0 / 1.045 GB, free: 7.641 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00156/0.835, allocations: 1.015 MB / 1.046 GB, free: 6.582 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001531/0.8351, allocations: 144.3 kB / 1.046 GB, free: 6.422 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.847e-05/0.8352, allocations: 16 kB / 1.046 GB, free: 6.406 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003426/0.8356, allocations: 55.95 kB / 1.046 GB, free: 6.352 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001308/0.8357, allocations: 56.47 kB / 1.046 GB, free: 6.293 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.247e-05/0.8358, allocations: 20 kB / 1.046 GB, free: 6.273 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0004538/0.8362, allocations: 370.8 kB / 1.047 GB, free: 5.914 MB / 0.795 GB Notification: Performance of sort global known variables: time 4.01e-07/0.8362, allocations: 3.938 kB / 1.047 GB, free: 5.91 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.001137/0.8374, allocations: 354.8 kB / 1.047 GB, free: 5.562 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 (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.0002353/0.8376, allocations: 131.1 kB / 1.047 GB, free: 5.422 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.002589/0.8402, allocations: 1.836 MB / 1.049 GB, free: 3.465 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 4.568e-06/0.8402, allocations: 0 / 1.049 GB, free: 3.465 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0005069/0.8407, allocations: 312.4 kB / 1.049 GB, free: 3.164 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000809/0.8416, allocations: 128.7 kB / 1.049 GB, free: 3.043 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00224/0.8438, allocations: 1.462 MB / 1.051 GB, free: 1.543 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004673/0.8443, allocations: 0.9505 MB / 1.052 GB, free: 0.5664 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0003317/0.8446, allocations: 81.03 kB / 1.052 GB, free: 500 kB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001404/0.8448, allocations: 51.42 kB / 1.052 GB, free: 448 kB / 0.795 GB Notification: Performance of SimCode: time 1.042e-06/0.8448, allocations: 0 / 1.052 GB, free: 448 kB / 0.795 GB Notification: Performance of Templates: time 0.02201/0.8668, allocations: 12.17 MB / 1.064 GB, free: 4.406 MB / 0.8106 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