Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.001383/0.001383, allocations: 108 kB / 16.41 MB, free: 6.027 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.001495/0.001495, allocations: 186.2 kB / 17.34 MB, free: 5.633 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.383/1.383, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.327/2.327, allocations: 390.3 MB / 0.6655 GB, free: 0.6328 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00155/0.00155, allocations: 67.89 kB / 0.9515 GB, free: 7.656 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.074/1.076, allocations: 140.4 MB / 1.089 GB, free: 5.5 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.005984/1.082, allocations: 3.698 MB / 1.092 GB, free: 2.852 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.003455/1.085, allocations: 1.327 MB / 1.093 GB, free: 1.891 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007579/1.086, allocations: 24.81 kB / 1.094 GB, free: 1.883 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0003933/1.086, allocations: 127.7 kB / 1.094 GB, free: 1.789 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0006668/1.087, allocations: 175.5 kB / 1.094 GB, free: 1.664 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001449/1.089, allocations: 0.5801 MB / 1.094 GB, free: 1.34 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.001408/1.09, allocations: 0.9694 MB / 1.095 GB, free: 0.8555 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006567/1.091, allocations: 352.6 kB / 1.096 GB, free: 0.6602 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006398/1.091, allocations: 376.4 kB / 1.096 GB, free: 476 kB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004815/1.092, allocations: 351.6 kB / 1.096 GB, free: 272 kB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0002049/1.092, allocations: 81.78 kB / 1.096 GB, free: 268 kB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001678/1.092, allocations: 78.72 kB / 1.097 GB, free: 268 kB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001817/1.092, allocations: 181.1 kB / 1.097 GB, free: 140 kB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0004121/1.093, allocations: 379.7 kB / 1.097 GB, free: 15.86 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.001341/1.094, allocations: 0.8886 MB / 1.098 GB, free: 15.45 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 5.511e-06/1.094, allocations: 1.406 kB / 1.098 GB, free: 15.45 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.844e-06/1.094, allocations: 0 / 1.098 GB, free: 15.45 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 2.049e-05/1.094, allocations: 0.75 kB / 1.098 GB, free: 15.45 MB / 0.8731 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.00261/1.097, allocations: 1.182 MB / 1.099 GB, free: 14.62 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.982e-05/1.097, allocations: 9.375 kB / 1.099 GB, free: 14.62 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002169/1.097, allocations: 102.5 kB / 1.099 GB, free: 14.57 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001292/1.098, allocations: 0.6163 MB / 1.1 GB, free: 14.15 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001467/1.099, allocations: 100.1 kB / 1.1 GB, free: 14.07 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001142/1.099, allocations: 56.77 kB / 1.1 GB, free: 14.05 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001396/1.1, allocations: 0.5984 MB / 1.101 GB, free: 13.73 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.614e-05/1.1, allocations: 1.344 kB / 1.101 GB, free: 13.73 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.255e-05/1.1, allocations: 21.84 kB / 1.101 GB, free: 13.71 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.404e-05/1.1, allocations: 12.86 kB / 1.101 GB, free: 13.71 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001107/1.101, allocations: 425.6 kB / 1.101 GB, free: 13.57 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003551/1.105, allocations: 2.094 MB / 1.103 GB, free: 12.14 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001362/1.106, allocations: 0.4995 MB / 1.103 GB, free: 11.94 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005432/1.107, allocations: 211 kB / 1.104 GB, free: 11.86 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 4.527e-05/1.107, allocations: 5.969 kB / 1.104 GB, free: 11.86 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008237/1.108, allocations: 285.5 kB / 1.104 GB, free: 11.73 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=45): time 2.825e-06/1.108, allocations: 0.5312 kB / 1.104 GB, free: 11.73 MB / 0.8731 GB Notification: Performance of matching and sorting (n=45): time 0.001818/1.11, allocations: 0.6124 MB / 1.105 GB, free: 11.49 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.699e-05/1.11, allocations: 86.45 kB / 1.105 GB, free: 11.39 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009078/1.111, allocations: 0.6089 MB / 1.105 GB, free: 11.12 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 6.071e-05/1.111, allocations: 37.92 kB / 1.105 GB, free: 11.08 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004011/1.111, allocations: 361 kB / 1.106 GB, free: 10.8 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001683/1.111, allocations: 152.8 kB / 1.106 GB, free: 10.68 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000188/1.111, allocations: 97.95 kB / 1.106 GB, free: 10.62 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001628/1.112, allocations: 330 kB / 1.106 GB, free: 10.3 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004889/1.112, allocations: 186.4 kB / 1.106 GB, free: 10.23 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006347/1.113, allocations: 278.6 kB / 1.107 GB, free: 10.06 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001071/1.114, allocations: 478.8 kB / 1.107 GB, free: 9.777 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.412e-06/1.114, allocations: 7.875 kB / 1.107 GB, free: 9.77 MB / 0.8731 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001445/1.115, allocations: 0.5983 MB / 1.108 GB, free: 9.492 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 5.762e-05/1.115, allocations: 33.36 kB / 1.108 GB, free: 9.461 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.135e-05/1.115, allocations: 3.531 kB / 1.108 GB, free: 9.461 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.382e-05/1.115, allocations: 5.188 kB / 1.108 GB, free: 9.461 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005324/1.116, allocations: 109.4 kB / 1.108 GB, free: 9.449 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.34e-05/1.116, allocations: 8.234 kB / 1.108 GB, free: 9.445 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004682/1.116, allocations: 68.33 kB / 1.108 GB, free: 9.406 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.562e-05/1.117, allocations: 19.5 kB / 1.108 GB, free: 9.402 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007324/1.117, allocations: 309 kB / 1.108 GB, free: 9.227 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005126/1.118, allocations: 271.1 kB / 1.108 GB, free: 9.051 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009027/1.119, allocations: 454.2 kB / 1.109 GB, free: 8.77 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.084e-06/1.119, allocations: 0 / 1.109 GB, free: 8.77 MB / 0.8731 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001225/1.12, allocations: 0.5794 MB / 1.109 GB, free: 8.492 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 8.702e-05/1.12, allocations: 34.75 kB / 1.109 GB, free: 8.461 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/1.12, allocations: 2.5 kB / 1.109 GB, free: 8.461 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.114e-05/1.12, allocations: 4.656 kB / 1.109 GB, free: 8.461 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004669/1.121, allocations: 104.2 kB / 1.11 GB, free: 8.449 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.068e-05/1.121, allocations: 5.828 kB / 1.11 GB, free: 8.449 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004057/1.121, allocations: 46.72 kB / 1.11 GB, free: 8.426 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.869e-05/1.121, allocations: 23.61 kB / 1.11 GB, free: 8.418 MB / 0.8731 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.0002721/1.121, allocations: 215.7 kB / 1.11 GB, free: 8.211 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001191/1.121, allocations: 77.16 kB / 1.11 GB, free: 8.168 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002197/1.122, allocations: 81.14 kB / 1.11 GB, free: 8.109 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.802e-06/1.122, allocations: 4.062 kB / 1.11 GB, free: 8.109 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.54e-05/1.122, allocations: 0.7031 kB / 1.11 GB, free: 8.109 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.064e-05/1.122, allocations: 3.312 kB / 1.11 GB, free: 8.109 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001011/1.123, allocations: 0.6232 MB / 1.111 GB, free: 7.738 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/1.123, allocations: 4 kB / 1.111 GB, free: 7.734 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004902/1.123, allocations: 80.3 kB / 1.111 GB, free: 7.73 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.53e-06/1.123, allocations: 1.25 kB / 1.111 GB, free: 7.73 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.939e-05/1.123, allocations: 13.02 kB / 1.111 GB, free: 7.723 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.344e-06/1.123, allocations: 1.188 kB / 1.111 GB, free: 7.723 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/1.123, allocations: 5.781 kB / 1.111 GB, free: 7.719 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001734/1.125, allocations: 0.731 MB / 1.111 GB, free: 7.379 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000272/1.125, allocations: 191.7 kB / 1.112 GB, free: 7.215 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.303e-05/1.125, allocations: 7.375 kB / 1.112 GB, free: 7.211 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004206/1.126, allocations: 39.69 kB / 1.112 GB, free: 7.199 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001349/1.126, allocations: 29.62 kB / 1.112 GB, free: 7.195 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.12e-05/1.126, allocations: 17.89 kB / 1.112 GB, free: 7.191 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0008227/1.127, allocations: 436.4 kB / 1.112 GB, free: 7 MB / 0.8731 GB Notification: Performance of sort global known variables: time 2.31e-07/1.127, allocations: 1.312 kB / 1.112 GB, free: 7 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.000827/1.128, allocations: 214.1 kB / 1.112 GB, free: 6.945 MB / 0.8731 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.0002132/1.128, allocations: 116.5 kB / 1.112 GB, free: 6.844 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001998/1.13, allocations: 0.7836 MB / 1.113 GB, free: 6.5 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/1.13, allocations: 0 / 1.113 GB, free: 6.5 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0005425/1.131, allocations: 214.4 kB / 1.113 GB, free: 6.434 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001034/1.132, allocations: 209.5 kB / 1.114 GB, free: 6.359 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002631/1.134, allocations: 1.208 MB / 1.115 GB, free: 5.676 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000794/1.135, allocations: 0.9168 MB / 1.116 GB, free: 4.965 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002233/1.135, allocations: 50.56 kB / 1.116 GB, free: 4.957 MB / 0.8731 GB Notification: Performance of SimCode: time 1.202e-06/1.135, allocations: 4 kB / 1.116 GB, free: 4.953 MB / 0.8731 GB Notification: Performance of Templates: time 0.024/1.159, allocations: 8.717 MB / 1.124 GB, free: 3.98 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.makefile (rm -f Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.pipe ; mkfifo Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.pipe >> ../files/Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.sim & ./Buildings_9_Buildings.Controls.Continuous.Examples.LimPID -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.Continuous.Examples.LimPID_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_Continuous_Examples_LimPID.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches