Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.Continuous.Examples.LimPID.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.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|limPID.u_s|limPID.u_m|limPID.y|limPIDRev.y",fileNamePrefix="Buildings_10_Buildings.Controls.Continuous.Examples.LimPID") translateModel(Buildings.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|limPID.u_s|limPID.u_m|limPID.y|limPIDRev.y",fileNamePrefix="Buildings_10_Buildings.Controls.Continuous.Examples.LimPID") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009548/0.0009547, allocations: 92.78 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.001062/0.001062, allocations: 179.4 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.434/1.434, allocations: 223.3 MB / 241 MB, free: 5.16 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.655/2.655, allocations: 437.8 MB / 0.7128 GB, free: 6.926 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000564/0.0005641, allocations: 11.98 kB / 0.8735 GB, free: 3.289 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7071/0.7077, allocations: 153.8 MB / 1.024 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.004115/0.7118, allocations: 3.311 MB / 1.027 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002663/0.7145, allocations: 1.282 MB / 1.028 GB, free: 11.26 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007526/0.7153, allocations: 23.88 kB / 1.028 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0005803/0.7159, allocations: 91.11 kB / 1.028 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.00123/0.7171, allocations: 143 kB / 1.028 GB, free: 11 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.001751/0.7189, allocations: 0.5333 MB / 1.029 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.001545/0.7205, allocations: 0.8939 MB / 1.03 GB, free: 9.586 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008325/0.7213, allocations: 329.6 kB / 1.03 GB, free: 9.246 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007292/0.7221, allocations: 282.3 kB / 1.03 GB, free: 8.969 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00074/0.7228, allocations: 274.1 kB / 1.031 GB, free: 8.699 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.0002197/0.723, allocations: 24 kB / 1.031 GB, free: 8.676 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001709/0.7232, allocations: 20 kB / 1.031 GB, free: 8.656 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001956/0.7234, allocations: 115.3 kB / 1.031 GB, free: 8.543 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0004824/0.7239, allocations: 327.5 kB / 1.031 GB, free: 8.215 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0006362/0.7246, allocations: 0.6175 MB / 1.032 GB, free: 7.598 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.7246, allocations: 4 kB / 1.032 GB, free: 7.594 MB / 0.7794 GB Notification: Performance of FrontEnd: time 4.599e-06/0.7246, allocations: 11.88 kB / 1.032 GB, free: 7.582 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.456e-05/0.7246, allocations: 0 / 1.032 GB, free: 7.582 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: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.002112/0.7267, allocations: 1.047 MB / 1.033 GB, free: 6.48 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.343e-05/0.7268, allocations: 8.031 kB / 1.033 GB, free: 6.473 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002467/0.727, allocations: 95.81 kB / 1.033 GB, free: 6.379 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00106/0.7281, allocations: 0.5986 MB / 1.033 GB, free: 5.738 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000122/0.7282, allocations: 101 kB / 1.034 GB, free: 5.629 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001119/0.7284, allocations: 60.27 kB / 1.034 GB, free: 5.57 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001206/0.7296, allocations: 0.6159 MB / 1.034 GB, free: 4.906 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.769e-05/0.7296, allocations: 3.938 kB / 1.034 GB, free: 4.902 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.963e-05/0.7297, allocations: 20 kB / 1.034 GB, free: 4.883 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.81e-05/0.7297, allocations: 16 kB / 1.034 GB, free: 4.867 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00108/0.7308, allocations: 447.6 kB / 1.035 GB, free: 4.434 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003545/0.7343, allocations: 2.129 MB / 1.037 GB, free: 2.219 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001362/0.7357, allocations: 0.5224 MB / 1.037 GB, free: 1.684 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005321/0.7363, allocations: 228.8 kB / 1.037 GB, free: 1.457 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 5.001e-05/0.7363, allocations: 7.984 kB / 1.037 GB, free: 1.449 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007424/0.7371, allocations: 294 kB / 1.038 GB, free: 1.148 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=45): time 3.406e-06/0.7371, allocations: 0 / 1.038 GB, free: 1.148 MB / 0.7794 GB Notification: Performance of matching and sorting (n=45): time 0.001657/0.7388, allocations: 0.6413 MB / 1.038 GB, free: 0.5 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.916e-05/0.7388, allocations: 88.84 kB / 1.038 GB, free: 404 kB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008498/0.7397, allocations: 0.6063 MB / 1.039 GB, free: 15.78 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 6.245e-05/0.7398, allocations: 37.7 kB / 1.039 GB, free: 15.73 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003186/0.7401, allocations: 356.7 kB / 1.039 GB, free: 15.38 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.000158/0.7403, allocations: 153.7 kB / 1.04 GB, free: 15.23 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.172e-05/0.7404, allocations: 53.69 kB / 1.04 GB, free: 15.18 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001423/0.7405, allocations: 330 kB / 1.04 GB, free: 14.85 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004941/0.741, allocations: 185 kB / 1.04 GB, free: 14.67 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005582/0.7416, allocations: 289.3 kB / 1.04 GB, free: 14.36 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001024/0.7426, allocations: 497.9 kB / 1.041 GB, free: 13.83 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.615e-06/0.7426, allocations: 3.938 kB / 1.041 GB, free: 13.83 MB / 0.795 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001312/0.744, allocations: 0.6216 MB / 1.041 GB, free: 13.19 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001385/0.7441, allocations: 189.3 kB / 1.042 GB, free: 12.96 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.207e-06/0.7441, allocations: 4 kB / 1.042 GB, free: 12.96 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 2e-05/0.7442, allocations: 4 kB / 1.042 GB, free: 12.95 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004696/0.7446, allocations: 115.8 kB / 1.042 GB, free: 12.84 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.58e-05/0.7447, allocations: 7.938 kB / 1.042 GB, free: 12.83 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004399/0.7451, allocations: 75.44 kB / 1.042 GB, free: 12.76 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.202e-05/0.7452, allocations: 16 kB / 1.042 GB, free: 12.74 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.064e-05/0.7452, allocations: 11.88 kB / 1.042 GB, free: 12.73 MB / 0.795 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00105/0.7462, allocations: 0.5037 MB / 1.042 GB, free: 12.22 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/0.7463, allocations: 4 kB / 1.042 GB, free: 12.22 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.927e-06/0.7463, allocations: 4 kB / 1.042 GB, free: 12.21 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004523/0.7467, allocations: 116.1 kB / 1.042 GB, free: 12.1 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.034e-05/0.7467, allocations: 8 kB / 1.043 GB, free: 12.09 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004305/0.7472, allocations: 55.56 kB / 1.043 GB, free: 12.04 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.872e-05/0.7472, allocations: 16 kB / 1.043 GB, free: 12.02 MB / 0.795 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 8 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,limPIDOri.I.local_reset,limPIDRev.I.trigger_internal,limPID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 1 * 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.0003677/0.7476, allocations: 276.9 kB / 1.043 GB, free: 11.74 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001327/0.7477, allocations: 75 kB / 1.043 GB, free: 11.67 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001837/0.7479, allocations: 87.2 kB / 1.043 GB, free: 11.58 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.178e-06/0.748, allocations: 4 kB / 1.043 GB, free: 11.57 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.469e-05/0.748, allocations: 4 kB / 1.043 GB, free: 11.57 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.087e-06/0.748, allocations: 3.984 kB / 1.043 GB, free: 11.57 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007956/0.7488, allocations: 0.6141 MB / 1.044 GB, free: 10.9 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.194e-06/0.7488, allocations: 3.938 kB / 1.044 GB, free: 10.9 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004569/0.7493, allocations: 83.89 kB / 1.044 GB, free: 10.82 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.374e-06/0.7493, allocations: 8 kB / 1.044 GB, free: 10.81 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.045e-05/0.7493, allocations: 15.98 kB / 1.044 GB, free: 10.79 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.454e-06/0.7493, allocations: 0 / 1.044 GB, free: 10.79 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.7494, allocations: 0 / 1.044 GB, free: 10.79 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001585/0.7509, allocations: 0.7523 MB / 1.044 GB, free: 10.02 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002396/0.7512, allocations: 200 kB / 1.045 GB, free: 9.805 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.412e-05/0.7513, allocations: 8 kB / 1.045 GB, free: 9.797 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004649/0.7518, allocations: 47.95 kB / 1.045 GB, free: 9.75 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000118/0.7519, allocations: 31.95 kB / 1.045 GB, free: 9.719 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.003e-05/0.7519, allocations: 19.98 kB / 1.045 GB, free: 9.699 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0006027/0.7525, allocations: 427.1 kB / 1.045 GB, free: 9.289 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7526, allocations: 0 / 1.045 GB, free: 9.289 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0007253/0.7533, allocations: 215.4 kB / 1.045 GB, free: 9.078 MB / 0.795 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (limPID.I.y,limPID.D.x,limPIDRev.I.y,limPIDRev.D.x,limPIDOri.I.y,limPIDOri.D.x) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0002006/0.7535, allocations: 111.2 kB / 1.045 GB, free: 8.957 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.001706/0.7552, allocations: 0.8158 MB / 1.046 GB, free: 8.121 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 4.919e-06/0.7552, allocations: 0 / 1.046 GB, free: 8.121 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0004979/0.7557, allocations: 228.5 kB / 1.046 GB, free: 7.898 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001028/0.7568, allocations: 195.4 kB / 1.047 GB, free: 7.711 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002522/0.7593, allocations: 1.492 MB / 1.048 GB, free: 6.18 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000528/0.7599, allocations: 0.9183 MB / 1.049 GB, free: 5.23 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001852/0.76, allocations: 55.36 kB / 1.049 GB, free: 5.176 MB / 0.795 GB Notification: Performance of SimCode: time 3e-07/0.7601, allocations: 0 / 1.049 GB, free: 5.176 MB / 0.795 GB Notification: Performance of Templates: time 0.01553/0.7756, allocations: 8.537 MB / 1.057 GB, free: 12.68 MB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Controls.Continuous.Examples.LimPID.makefile (rm -f Buildings_10_Buildings.Controls.Continuous.Examples.LimPID.pipe ; mkfifo Buildings_10_Buildings.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.Continuous.Examples.LimPID.pipe >> ../files/Buildings_10_Buildings.Controls.Continuous.Examples.LimPID.sim & ./Buildings_10_Buildings.Controls.Continuous.Examples.LimPID -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.Continuous.Examples.LimPID.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.Continuous.Examples.LimPID_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_Continuous_Examples_LimPID.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.Continuous.Examples.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches