Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Gain.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.Gain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gain1.u|gain1.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Gain") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.Gain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gain1.u|gain1.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Gain") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.5/1.5, allocations: 249.3 MB / 261.8 MB, free: 5.918 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001218/0.001218, allocations: 180.8 kB / 321.3 MB, free: 14.65 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.572/1.572, allocations: 205.2 MB / 0.572 GB, free: 10.67 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00078/0.00078, allocations: 98.44 kB / 0.6764 GB, free: 15.64 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 2.797e-05/2.8e-05, allocations: 8 kB / 0.788 GB, free: 97.07 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2067/0.2067, allocations: 106.3 MB / 0.8918 GB, free: 6.648 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7036/0.9104, allocations: 131.3 MB / 1.02 GB, free: 3.445 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002408/0.9107, allocations: 79.56 kB / 1.02 GB, free: 3.398 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.001648/0.9123, allocations: 0.6007 MB / 1.021 GB, free: 2.836 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.033e-06/0.9124, allocations: 0 / 1.021 GB, free: 2.836 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.464e-06/0.9124, allocations: 4 kB / 1.021 GB, free: 2.832 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003763/0.9128, allocations: 342.1 kB / 1.021 GB, free: 2.457 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.903e-05/0.9128, allocations: 8.031 kB / 1.021 GB, free: 2.449 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.383e-05/0.9129, allocations: 4 kB / 1.021 GB, free: 2.445 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001276/0.913, allocations: 167 kB / 1.021 GB, free: 2.242 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.591e-05/0.913, allocations: 0 / 1.021 GB, free: 2.242 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.675e-05/0.913, allocations: 0 / 1.021 GB, free: 2.242 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000157/0.9132, allocations: 45.56 kB / 1.021 GB, free: 2.195 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.245e-06/0.9132, allocations: 0 / 1.021 GB, free: 2.195 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.181e-05/0.9132, allocations: 0.8125 kB / 1.021 GB, free: 2.195 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.949e-06/0.9133, allocations: 0 / 1.021 GB, free: 2.195 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.107e-05/0.9133, allocations: 11.62 kB / 1.021 GB, free: 2.188 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004401/0.9138, allocations: 270.3 kB / 1.021 GB, free: 1.883 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 6.949e-05/0.9138, allocations: 30.14 kB / 1.022 GB, free: 1.848 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.755e-05/0.9139, allocations: 12.67 kB / 1.022 GB, free: 1.836 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.175e-05/0.9139, allocations: 4 kB / 1.022 GB, free: 1.832 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.398e-05/0.9139, allocations: 30.56 kB / 1.022 GB, free: 1.793 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=2): time 3.496e-06/0.9139, allocations: 0 / 1.022 GB, free: 1.793 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2): time 0.0001379/0.9141, allocations: 40.12 kB / 1.022 GB, free: 1.754 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.61e-05/0.9141, allocations: 59.38 kB / 1.022 GB, free: 1.684 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.523e-05/0.9142, allocations: 103 kB / 1.022 GB, free: 1.582 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.391e-05/0.9142, allocations: 25.7 kB / 1.022 GB, free: 1.551 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 6.482e-05/0.9143, allocations: 84.08 kB / 1.022 GB, free: 1.465 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.607e-05/0.9143, allocations: 7.844 kB / 1.022 GB, free: 1.461 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.835e-06/0.9143, allocations: 7.938 kB / 1.022 GB, free: 1.453 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.00013/0.9145, allocations: 314.8 kB / 1.022 GB, free: 1.137 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.697e-05/0.9145, allocations: 7.875 kB / 1.022 GB, free: 1.133 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.286e-05/0.9145, allocations: 4 kB / 1.022 GB, free: 1.129 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.051e-05/0.9146, allocations: 7.984 kB / 1.022 GB, free: 1.121 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.9146, allocations: 0 / 1.022 GB, free: 1.121 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.541e-05/0.9146, allocations: 41.52 kB / 1.022 GB, free: 1.078 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.675e-05/0.9147, allocations: 6.031 kB / 1.022 GB, free: 1.074 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.9147, allocations: 3.984 kB / 1.022 GB, free: 1.07 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.269e-05/0.9147, allocations: 0 / 1.022 GB, free: 1.07 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001063/0.9148, allocations: 22.98 kB / 1.022 GB, free: 1.051 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.842e-06/0.9148, allocations: 96 / 1.022 GB, free: 1.051 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.997e-05/0.9149, allocations: 11.98 kB / 1.022 GB, free: 1.039 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.61e-06/0.9149, allocations: 0 / 1.022 GB, free: 1.039 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * 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 8.037e-05/0.915, allocations: 108.9 kB / 1.022 GB, free: 0.9258 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.091e-05/0.915, allocations: 0 / 1.022 GB, free: 0.9258 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.154e-05/0.9151, allocations: 10.45 kB / 1.022 GB, free: 0.918 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.506e-06/0.9151, allocations: 0 / 1.022 GB, free: 0.918 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.858e-06/0.9151, allocations: 3.938 kB / 1.022 GB, free: 0.9141 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.864e-06/0.9151, allocations: 4 kB / 1.022 GB, free: 0.9102 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001672/0.9153, allocations: 169.3 kB / 1.023 GB, free: 0.6992 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.9153, allocations: 0 / 1.023 GB, free: 0.6992 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.067e-05/0.9153, allocations: 8 kB / 1.023 GB, free: 0.6914 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.9154, allocations: 0 / 1.023 GB, free: 0.6914 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.632e-06/0.9154, allocations: 256 / 1.023 GB, free: 0.6914 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.9154, allocations: 4 kB / 1.023 GB, free: 0.6875 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.9154, allocations: 3.984 kB / 1.023 GB, free: 0.6836 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000121/0.9155, allocations: 147 kB / 1.023 GB, free: 0.5312 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 3.634e-05/0.9156, allocations: 81.11 kB / 1.023 GB, free: 444 kB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.374e-05/0.9156, allocations: 0 / 1.023 GB, free: 444 kB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.087e-05/0.9157, allocations: 7.984 kB / 1.023 GB, free: 436 kB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.122e-05/0.9157, allocations: 4 kB / 1.023 GB, free: 432 kB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.715e-06/0.9157, allocations: 0 / 1.023 GB, free: 432 kB / 0.6355 GB Notification: Performance of sorting global known variables: time 4.232e-05/0.9158, allocations: 86.58 kB / 1.023 GB, free: 348 kB / 0.6355 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9158, allocations: 0 / 1.023 GB, free: 348 kB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002134/0.916, allocations: 8.031 kB / 1.023 GB, free: 340 kB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.00016/0.9162, allocations: 95.25 kB / 1.023 GB, free: 236 kB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 7.386e-05/0.9162, allocations: 15.81 kB / 1.023 GB, free: 224 kB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.9162, allocations: 0 / 1.023 GB, free: 224 kB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 2.317e-05/0.9163, allocations: 7.625 kB / 1.023 GB, free: 220 kB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001772/0.9165, allocations: 15.83 kB / 1.023 GB, free: 204 kB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001994/0.9167, allocations: 67.14 kB / 1.023 GB, free: 120 kB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002982/0.917, allocations: 0.6809 MB / 1.024 GB, free: 15.41 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 2.725e-05/0.917, allocations: 0 / 1.024 GB, free: 15.41 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.226e-05/0.917, allocations: 11.38 kB / 1.024 GB, free: 15.4 MB / 0.6511 GB Notification: Performance of SimCode: time 3.01e-07/0.917, allocations: 0 / 1.024 GB, free: 15.4 MB / 0.6511 GB Notification: Performance of Templates: time 0.002058/0.9191, allocations: 359.5 kB / 1.024 GB, free: 15.06 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Gain.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Gain.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Gain.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Gain.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Gain.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Gain -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Gain.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Gain_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Continuous_Validation_Gain.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Gain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches