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.006612/0.006612, allocations: 97.27 kB / 15.73 MB, free: 5.602 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.002024/0.002025, allocations: 192.6 kB / 16.68 MB, free: 5.523 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.508/1.508, allocations: 222.9 MB / 240.4 MB, free: 15.15 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.662/2.662, allocations: 437 MB / 0.7105 GB, free: 4.383 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001323/0.001324, allocations: 67.91 kB / 1.018 GB, free: 9.414 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.13/1.131, allocations: 151.6 MB / 1.167 GB, free: 3.812 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.005087/1.137, allocations: 3.723 MB / 1.17 GB, free: 68 kB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.002896/1.14, allocations: 1.321 MB / 1.171 GB, free: 14.74 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000409/1.14, allocations: 27.88 kB / 1.172 GB, free: 14.71 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.0003468/1.14, allocations: 130.6 kB / 1.172 GB, free: 14.58 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.0005154/1.141, allocations: 166.5 kB / 1.172 GB, free: 14.42 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.001135/1.142, allocations: 0.5803 MB / 1.172 GB, free: 13.85 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0009387/1.143, allocations: 0.9681 MB / 1.173 GB, free: 12.88 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005051/1.144, allocations: 349.5 kB / 1.174 GB, free: 12.52 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003951/1.144, allocations: 358.5 kB / 1.174 GB, free: 12.17 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003729/1.144, allocations: 354 kB / 1.174 GB, free: 11.82 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0001118/1.144, allocations: 76 kB / 1.174 GB, free: 11.75 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000106/1.145, allocations: 80 kB / 1.174 GB, free: 11.67 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0001604/1.145, allocations: 187.2 kB / 1.175 GB, free: 11.49 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0002943/1.145, allocations: 373.7 kB / 1.175 GB, free: 11.12 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0009073/1.146, allocations: 0.8989 MB / 1.176 GB, free: 10.22 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/1.146, allocations: 0 / 1.176 GB, free: 10.22 MB / 0.9044 GB Notification: Performance of FrontEnd: time 2.284e-06/1.146, allocations: 4 kB / 1.176 GB, free: 10.22 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 1.132e-05/1.146, allocations: 0 / 1.176 GB, free: 10.22 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.002014/1.148, allocations: 1.206 MB / 1.177 GB, free: 8.953 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.808e-05/1.148, allocations: 12.91 kB / 1.177 GB, free: 8.941 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001601/1.148, allocations: 104.3 kB / 1.177 GB, free: 8.84 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009979/1.149, allocations: 0.6189 MB / 1.178 GB, free: 8.18 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001127/1.149, allocations: 100.9 kB / 1.178 GB, free: 8.066 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.69e-05/1.149, allocations: 56.33 kB / 1.178 GB, free: 8.012 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001043/1.15, allocations: 0.5964 MB / 1.179 GB, free: 7.375 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.514e-05/1.15, allocations: 0 / 1.179 GB, free: 7.375 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.366e-05/1.151, allocations: 27.98 kB / 1.179 GB, free: 7.348 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.411e-05/1.151, allocations: 16 kB / 1.179 GB, free: 7.332 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009597/1.152, allocations: 423.7 kB / 1.179 GB, free: 6.918 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002827/1.154, allocations: 2.103 MB / 1.181 GB, free: 4.73 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001176/1.156, allocations: 0.5029 MB / 1.182 GB, free: 4.215 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000439/1.156, allocations: 220.8 kB / 1.182 GB, free: 3.996 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 3.929e-05/1.156, allocations: 4 kB / 1.182 GB, free: 3.992 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006182/1.157, allocations: 277.9 kB / 1.182 GB, free: 3.707 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=45): time 2.425e-06/1.157, allocations: 0 / 1.182 GB, free: 3.707 MB / 0.9044 GB Notification: Performance of matching and sorting (n=45): time 0.001472/1.158, allocations: 0.6144 MB / 1.183 GB, free: 3.086 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.344e-05/1.158, allocations: 88.84 kB / 1.183 GB, free: 2.98 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006818/1.159, allocations: 0.6061 MB / 1.183 GB, free: 2.367 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 4.104e-05/1.159, allocations: 41.7 kB / 1.183 GB, free: 2.32 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002695/1.159, allocations: 369.3 kB / 1.184 GB, free: 1.953 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.000121/1.159, allocations: 158.6 kB / 1.184 GB, free: 1.797 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001534/1.16, allocations: 102.2 kB / 1.184 GB, free: 1.691 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001105/1.16, allocations: 326 kB / 1.184 GB, free: 1.367 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004296/1.16, allocations: 183 kB / 1.184 GB, free: 1.188 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00048/1.161, allocations: 276.2 kB / 1.185 GB, free: 0.8828 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008794/1.161, allocations: 473.9 kB / 1.185 GB, free: 388 kB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.222e-06/1.162, allocations: 7.938 kB / 1.185 GB, free: 380 kB / 0.9044 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001185/1.163, allocations: 0.6027 MB / 1.186 GB, free: 15.75 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 4.275e-05/1.163, allocations: 34.02 kB / 1.186 GB, free: 15.71 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.075e-05/1.163, allocations: 8 kB / 1.186 GB, free: 15.7 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.177e-05/1.163, allocations: 4 kB / 1.186 GB, free: 15.7 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004812/1.163, allocations: 107.8 kB / 1.186 GB, free: 15.59 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.111e-05/1.163, allocations: 4 kB / 1.186 GB, free: 15.59 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003835/1.164, allocations: 67.59 kB / 1.186 GB, free: 15.52 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.627e-05/1.164, allocations: 17.09 kB / 1.186 GB, free: 15.51 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005464/1.164, allocations: 317.2 kB / 1.186 GB, free: 15.2 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004276/1.165, allocations: 264.2 kB / 1.186 GB, free: 14.9 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007922/1.166, allocations: 458 kB / 1.187 GB, free: 14.42 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.184e-06/1.166, allocations: 0 / 1.187 GB, free: 14.42 MB / 0.92 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001065/1.167, allocations: 0.5827 MB / 1.187 GB, free: 13.82 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.92e-05/1.167, allocations: 33.7 kB / 1.188 GB, free: 13.79 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/1.167, allocations: 7.938 kB / 1.188 GB, free: 13.78 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.663e-06/1.167, allocations: 4 kB / 1.188 GB, free: 13.77 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004359/1.167, allocations: 112.1 kB / 1.188 GB, free: 13.66 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.723e-06/1.167, allocations: 4 kB / 1.188 GB, free: 13.66 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003677/1.168, allocations: 55.69 kB / 1.188 GB, free: 13.61 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.48e-05/1.168, allocations: 20 kB / 1.188 GB, free: 13.59 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.0001804/1.168, allocations: 208.1 kB / 1.188 GB, free: 13.38 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.658e-05/1.168, allocations: 83.42 kB / 1.188 GB, free: 13.29 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001685/1.168, allocations: 75.22 kB / 1.188 GB, free: 13.22 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.817e-06/1.168, allocations: 15.98 kB / 1.188 GB, free: 13.2 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.446e-06/1.168, allocations: 0 / 1.188 GB, free: 13.2 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/1.168, allocations: 0 / 1.188 GB, free: 13.2 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006657/1.169, allocations: 0.6258 MB / 1.189 GB, free: 12.53 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/1.169, allocations: 0 / 1.189 GB, free: 12.53 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004562/1.169, allocations: 79.89 kB / 1.189 GB, free: 12.45 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.18e-06/1.169, allocations: 4 kB / 1.189 GB, free: 12.45 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.51e-05/1.169, allocations: 8 kB / 1.189 GB, free: 12.44 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.445e-06/1.169, allocations: 0 / 1.189 GB, free: 12.44 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/1.169, allocations: 7.984 kB / 1.189 GB, free: 12.43 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001474/1.171, allocations: 0.7368 MB / 1.19 GB, free: 11.67 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002089/1.171, allocations: 188.6 kB / 1.19 GB, free: 11.47 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.375e-05/1.171, allocations: 15.98 kB / 1.19 GB, free: 11.45 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004102/1.171, allocations: 27.97 kB / 1.19 GB, free: 11.43 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.232e-05/1.172, allocations: 31.95 kB / 1.19 GB, free: 11.39 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.824e-05/1.172, allocations: 15.98 kB / 1.19 GB, free: 11.38 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0004838/1.172, allocations: 435 kB / 1.19 GB, free: 10.96 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.41e-07/1.172, allocations: 0 / 1.19 GB, free: 10.96 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0005796/1.173, allocations: 219.5 kB / 1.19 GB, free: 10.74 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.0001403/1.173, allocations: 111.2 kB / 1.191 GB, free: 10.62 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.001541/1.174, allocations: 0.7848 MB / 1.191 GB, free: 9.82 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/1.174, allocations: 0 / 1.191 GB, free: 9.82 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0004478/1.175, allocations: 216.5 kB / 1.191 GB, free: 9.609 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008891/1.176, allocations: 223.4 kB / 1.192 GB, free: 9.402 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001949/1.178, allocations: 1.202 MB / 1.193 GB, free: 8.172 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004296/1.178, allocations: 0.918 MB / 1.194 GB, free: 7.227 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.0003658/1.179, allocations: 85.12 kB / 1.194 GB, free: 7.141 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000143/1.179, allocations: 51.42 kB / 1.194 GB, free: 7.09 MB / 0.92 GB Notification: Performance of SimCode: time 1.913e-06/1.179, allocations: 0 / 1.194 GB, free: 7.09 MB / 0.92 GB Notification: Performance of Templates: time 0.01392/1.193, allocations: 7.676 MB / 1.201 GB, free: 15.5 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