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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.00875/0.00875, allocations: 99.45 kB / 15.73 MB, free: 6.059 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.001736/0.001737, allocations: 193.8 kB / 16.67 MB, free: 5.969 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.39/1.39, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.425/2.425, allocations: 437 MB / 0.7105 GB, free: 4.379 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001258/0.001258, allocations: 67.89 kB / 1.018 GB, free: 9.43 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.109/1.111, allocations: 151.6 MB / 1.167 GB, free: 3.863 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.00554/1.116, allocations: 3.713 MB / 1.17 GB, free: 128 kB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.00321/1.119, allocations: 1.328 MB / 1.171 GB, free: 14.79 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005431/1.12, allocations: 27.88 kB / 1.172 GB, free: 14.76 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.0003902/1.12, allocations: 130.5 kB / 1.172 GB, free: 14.63 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.0006241/1.121, allocations: 182.5 kB / 1.172 GB, free: 14.45 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.001301/1.122, allocations: 0.5736 MB / 1.172 GB, free: 13.89 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.001059/1.124, allocations: 0.9603 MB / 1.173 GB, free: 12.93 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005516/1.124, allocations: 357.6 kB / 1.174 GB, free: 12.57 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004846/1.125, allocations: 374.4 kB / 1.174 GB, free: 12.2 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003684/1.125, allocations: 346.1 kB / 1.174 GB, free: 11.86 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0001285/1.125, allocations: 80 kB / 1.174 GB, free: 11.78 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001038/1.125, allocations: 76 kB / 1.174 GB, free: 11.71 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0001669/1.125, allocations: 183.2 kB / 1.175 GB, free: 11.53 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0003089/1.126, allocations: 381.7 kB / 1.175 GB, free: 11.15 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0009866/1.127, allocations: 0.8988 MB / 1.176 GB, free: 10.25 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/1.127, allocations: 0 / 1.176 GB, free: 10.25 MB / 0.9044 GB Notification: Performance of FrontEnd: time 2.916e-06/1.127, allocations: 0 / 1.176 GB, free: 10.25 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 1.078e-05/1.127, allocations: 0 / 1.176 GB, free: 10.25 MB / 0.9044 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.002096/1.129, allocations: 1.21 MB / 1.177 GB, free: 8.984 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 5.205e-05/1.129, allocations: 12.91 kB / 1.177 GB, free: 8.973 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001684/1.129, allocations: 100.3 kB / 1.177 GB, free: 8.875 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001035/1.13, allocations: 0.6189 MB / 1.178 GB, free: 8.215 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001217/1.13, allocations: 96.95 kB / 1.178 GB, free: 8.105 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.164e-05/1.13, allocations: 60.33 kB / 1.178 GB, free: 8.047 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001073/1.131, allocations: 0.608 MB / 1.179 GB, free: 7.398 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.645e-05/1.131, allocations: 0 / 1.179 GB, free: 7.398 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.595e-05/1.131, allocations: 27.98 kB / 1.179 GB, free: 7.371 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.274e-05/1.131, allocations: 12 kB / 1.179 GB, free: 7.359 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009491/1.132, allocations: 419.7 kB / 1.179 GB, free: 6.949 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00282/1.135, allocations: 2.099 MB / 1.181 GB, free: 4.766 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001165/1.136, allocations: 0.5068 MB / 1.182 GB, free: 4.246 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004536/1.137, allocations: 216.8 kB / 1.182 GB, free: 4.031 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 4.753e-05/1.137, allocations: 4 kB / 1.182 GB, free: 4.027 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006245/1.138, allocations: 278 kB / 1.182 GB, free: 3.742 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=45): time 2.074e-06/1.138, allocations: 3.938 kB / 1.182 GB, free: 3.738 MB / 0.9044 GB Notification: Performance of matching and sorting (n=45): time 0.001472/1.139, allocations: 0.6144 MB / 1.183 GB, free: 3.117 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.204e-05/1.139, allocations: 88.84 kB / 1.183 GB, free: 3.012 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007356/1.14, allocations: 0.61 MB / 1.183 GB, free: 2.395 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 5.27e-05/1.14, allocations: 33.7 kB / 1.183 GB, free: 2.355 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002948/1.14, allocations: 369.3 kB / 1.184 GB, free: 1.988 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001548/1.14, allocations: 162.6 kB / 1.184 GB, free: 1.828 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001533/1.141, allocations: 98.23 kB / 1.184 GB, free: 1.727 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001196/1.141, allocations: 329.9 kB / 1.184 GB, free: 1.398 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004513/1.141, allocations: 179 kB / 1.184 GB, free: 1.223 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004707/1.142, allocations: 284.2 kB / 1.185 GB, free: 0.9102 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008692/1.143, allocations: 473.9 kB / 1.185 GB, free: 416 kB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.482e-06/1.143, allocations: 11.94 kB / 1.185 GB, free: 404 kB / 0.9044 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001193/1.144, allocations: 0.6025 MB / 1.186 GB, free: 15.78 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 4.035e-05/1.144, allocations: 37.7 kB / 1.186 GB, free: 15.73 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.457e-06/1.144, allocations: 4 kB / 1.186 GB, free: 15.73 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.602e-05/1.144, allocations: 4 kB / 1.186 GB, free: 15.73 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004797/1.144, allocations: 107.8 kB / 1.186 GB, free: 15.62 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.29e-05/1.144, allocations: 4 kB / 1.186 GB, free: 15.62 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004059/1.145, allocations: 71.84 kB / 1.186 GB, free: 15.55 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.745e-05/1.145, allocations: 17.09 kB / 1.186 GB, free: 15.53 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000569/1.145, allocations: 313.2 kB / 1.186 GB, free: 15.22 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004251/1.146, allocations: 260.3 kB / 1.187 GB, free: 14.93 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007802/1.147, allocations: 453.9 kB / 1.187 GB, free: 14.45 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.824e-06/1.147, allocations: 4 kB / 1.187 GB, free: 14.45 MB / 0.92 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001056/1.148, allocations: 0.5868 MB / 1.188 GB, free: 13.85 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 4.099e-05/1.148, allocations: 30.02 kB / 1.188 GB, free: 13.81 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/1.148, allocations: 11.94 kB / 1.188 GB, free: 13.8 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.822e-06/1.148, allocations: 4 kB / 1.188 GB, free: 13.8 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004212/1.148, allocations: 103.9 kB / 1.188 GB, free: 13.7 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.085e-06/1.148, allocations: 7.938 kB / 1.188 GB, free: 13.69 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000368/1.149, allocations: 51.69 kB / 1.188 GB, free: 13.64 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.754e-05/1.149, allocations: 20 kB / 1.188 GB, free: 13.62 MB / 0.92 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.0002979/1.149, allocations: 212.7 kB / 1.188 GB, free: 13.4 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001224/1.149, allocations: 83.42 kB / 1.188 GB, free: 13.32 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002005/1.149, allocations: 75.22 kB / 1.188 GB, free: 13.25 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-06/1.149, allocations: 11.98 kB / 1.188 GB, free: 13.23 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.092e-05/1.149, allocations: 0 / 1.188 GB, free: 13.23 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.571e-06/1.149, allocations: 0 / 1.188 GB, free: 13.23 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007594/1.15, allocations: 0.6219 MB / 1.189 GB, free: 12.56 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/1.15, allocations: 0 / 1.189 GB, free: 12.56 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004419/1.151, allocations: 79.89 kB / 1.189 GB, free: 12.48 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.031e-06/1.151, allocations: 8 kB / 1.189 GB, free: 12.48 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.707e-05/1.151, allocations: 12 kB / 1.189 GB, free: 12.46 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/1.151, allocations: 0 / 1.189 GB, free: 12.46 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/1.151, allocations: 3.984 kB / 1.189 GB, free: 12.46 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001452/1.152, allocations: 0.733 MB / 1.19 GB, free: 11.71 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002381/1.152, allocations: 184.6 kB / 1.19 GB, free: 11.51 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.853e-05/1.152, allocations: 15.98 kB / 1.19 GB, free: 11.49 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003679/1.153, allocations: 28.09 kB / 1.19 GB, free: 11.46 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001044/1.153, allocations: 43.83 kB / 1.19 GB, free: 11.42 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.242e-05/1.153, allocations: 23.98 kB / 1.19 GB, free: 11.4 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0004947/1.153, allocations: 431 kB / 1.19 GB, free: 10.98 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.6e-07/1.153, allocations: 0 / 1.19 GB, free: 10.98 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0006199/1.154, allocations: 219.5 kB / 1.19 GB, free: 10.77 MB / 0.92 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.0001506/1.154, allocations: 107.2 kB / 1.191 GB, free: 10.65 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.001525/1.156, allocations: 0.7854 MB / 1.191 GB, free: 9.848 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/1.156, allocations: 4 kB / 1.191 GB, free: 9.844 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0004403/1.156, allocations: 211.9 kB / 1.192 GB, free: 9.637 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008904/1.157, allocations: 211 kB / 1.192 GB, free: 9.441 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002015/1.159, allocations: 1.206 MB / 1.193 GB, free: 8.203 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004309/1.16, allocations: 0.914 MB / 1.194 GB, free: 7.262 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.0003587/1.16, allocations: 89.12 kB / 1.194 GB, free: 7.172 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001451/1.16, allocations: 55.42 kB / 1.194 GB, free: 7.117 MB / 0.92 GB Notification: Performance of SimCode: time 5.31e-07/1.16, allocations: 0 / 1.194 GB, free: 7.117 MB / 0.92 GB Notification: Performance of Templates: time 0.01468/1.175, allocations: 7.664 MB / 1.201 GB, free: 15.54 MB / 0.9356 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.Continuous.Examples.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches