Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.001556/0.001556, allocations: 107.2 kB / 15.99 MB, free: 5.891 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.001703/0.001704, allocations: 194.7 kB / 16.91 MB, free: 5.746 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.742/1.742, allocations: 222.9 MB / 240.6 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.926/2.926, allocations: 469.8 MB / 0.7427 GB, free: 7.516 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002332/0.002332, allocations: 62.3 kB / 0.9087 GB, free: 34.48 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3748/0.3772, allocations: 159.2 MB / 1.064 GB, free: 14.56 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.005253/0.3825, allocations: 3.715 MB / 1.068 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002694/0.3852, allocations: 1.305 MB / 1.069 GB, free: 9.512 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000417/0.3856, allocations: 23.88 kB / 1.069 GB, free: 9.488 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0003375/0.386, allocations: 95.05 kB / 1.069 GB, free: 9.395 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0005322/0.3866, allocations: 143 kB / 1.069 GB, free: 9.254 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.001196/0.3878, allocations: 0.5266 MB / 1.07 GB, free: 8.738 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.001033/0.3888, allocations: 0.9604 MB / 1.071 GB, free: 7.773 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005634/0.3894, allocations: 349.6 kB / 1.071 GB, free: 7.418 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004482/0.3898, allocations: 370.3 kB / 1.071 GB, free: 7.055 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004125/0.3902, allocations: 350.1 kB / 1.072 GB, free: 6.711 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0001148/0.3904, allocations: 79.94 kB / 1.072 GB, free: 6.633 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001091/0.3905, allocations: 80 kB / 1.072 GB, free: 6.555 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001652/0.3907, allocations: 179.3 kB / 1.072 GB, free: 6.379 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0003409/0.391, allocations: 373.7 kB / 1.072 GB, free: 6.012 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0007047/0.3917, allocations: 0.6629 MB / 1.073 GB, free: 5.348 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.3917, allocations: 4 kB / 1.073 GB, free: 5.344 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.204e-06/0.3917, allocations: 0 / 1.073 GB, free: 5.344 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.02e-05/0.3917, allocations: 0 / 1.073 GB, free: 5.344 MB / 0.8262 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.002121/0.3939, allocations: 1.187 MB / 1.074 GB, free: 4.102 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.1e-05/0.3939, allocations: 12.03 kB / 1.074 GB, free: 4.09 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001788/0.3941, allocations: 95.81 kB / 1.074 GB, free: 3.996 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009365/0.3951, allocations: 0.5909 MB / 1.075 GB, free: 3.359 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001192/0.3952, allocations: 96.95 kB / 1.075 GB, free: 3.254 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.417e-05/0.3953, allocations: 52.38 kB / 1.075 GB, free: 3.203 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00111/0.3964, allocations: 0.6041 MB / 1.076 GB, free: 2.555 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.51e-05/0.3964, allocations: 0 / 1.076 GB, free: 2.555 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.75e-05/0.3965, allocations: 28 kB / 1.076 GB, free: 2.527 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.759e-05/0.3965, allocations: 12 kB / 1.076 GB, free: 2.516 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009475/0.3975, allocations: 423.6 kB / 1.076 GB, free: 2.105 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002849/0.4003, allocations: 2.118 MB / 1.078 GB, free: 15.9 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001211/0.4015, allocations: 0.492 MB / 1.079 GB, free: 15.4 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004616/0.402, allocations: 214.6 kB / 1.079 GB, free: 15.19 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 4.341e-05/0.4021, allocations: 8 kB / 1.079 GB, free: 15.18 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006508/0.4027, allocations: 286.1 kB / 1.079 GB, free: 14.89 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=45): time 1.843e-06/0.4027, allocations: 0 / 1.079 GB, free: 14.89 MB / 0.8419 GB Notification: Performance of matching and sorting (n=45): time 0.001422/0.4042, allocations: 0.6181 MB / 1.08 GB, free: 14.26 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.749e-05/0.4042, allocations: 84.86 kB / 1.08 GB, free: 14.16 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006968/0.4049, allocations: 0.6061 MB / 1.08 GB, free: 13.54 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.764e-05/0.405, allocations: 41.64 kB / 1.08 GB, free: 13.5 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002951/0.4053, allocations: 360.7 kB / 1.081 GB, free: 13.14 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001266/0.4054, allocations: 157.8 kB / 1.081 GB, free: 12.98 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001586/0.4056, allocations: 98.23 kB / 1.081 GB, free: 12.88 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001431/0.4058, allocations: 322 kB / 1.081 GB, free: 12.56 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004511/0.4062, allocations: 186.9 kB / 1.082 GB, free: 12.38 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004933/0.4067, allocations: 276.2 kB / 1.082 GB, free: 12.07 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008985/0.4076, allocations: 474 kB / 1.082 GB, free: 11.57 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.985e-06/0.4076, allocations: 7.938 kB / 1.082 GB, free: 11.57 MB / 0.8419 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001156/0.4088, allocations: 0.5982 MB / 1.083 GB, free: 10.95 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 4.127e-05/0.4088, allocations: 33.7 kB / 1.083 GB, free: 10.91 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.4089, allocations: 0 / 1.083 GB, free: 10.91 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.624e-05/0.4089, allocations: 8 kB / 1.083 GB, free: 10.91 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004682/0.4094, allocations: 112.1 kB / 1.083 GB, free: 10.8 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.307e-05/0.4094, allocations: 8 kB / 1.083 GB, free: 10.79 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003687/0.4098, allocations: 67.41 kB / 1.083 GB, free: 10.72 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.561e-05/0.4098, allocations: 16 kB / 1.083 GB, free: 10.71 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005635/0.4104, allocations: 313.2 kB / 1.083 GB, free: 10.39 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004567/0.4108, allocations: 272.2 kB / 1.084 GB, free: 10.09 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000806/0.4117, allocations: 454 kB / 1.084 GB, free: 9.609 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.853e-06/0.4117, allocations: 0 / 1.084 GB, free: 9.609 MB / 0.8419 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001063/0.4127, allocations: 0.5787 MB / 1.085 GB, free: 9.016 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.701e-05/0.4128, allocations: 37.64 kB / 1.085 GB, free: 8.973 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.4128, allocations: 4 kB / 1.085 GB, free: 8.969 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.34e-06/0.4128, allocations: 4 kB / 1.085 GB, free: 8.965 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000431/0.4132, allocations: 103.8 kB / 1.085 GB, free: 8.863 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.833e-06/0.4132, allocations: 8 kB / 1.085 GB, free: 8.855 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003488/0.4136, allocations: 51.91 kB / 1.085 GB, free: 8.805 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.725e-05/0.4136, allocations: 20 kB / 1.085 GB, free: 8.785 MB / 0.8419 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.0001907/0.4138, allocations: 217.6 kB / 1.085 GB, free: 8.566 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.862e-05/0.4139, allocations: 79 kB / 1.085 GB, free: 8.488 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001501/0.4141, allocations: 79.2 kB / 1.085 GB, free: 8.406 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.4141, allocations: 4 kB / 1.085 GB, free: 8.402 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.759e-06/0.4141, allocations: 4 kB / 1.085 GB, free: 8.398 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.084e-06/0.4141, allocations: 7.984 kB / 1.085 GB, free: 8.391 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007012/0.4148, allocations: 0.6219 MB / 1.086 GB, free: 7.719 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.4148, allocations: 0 / 1.086 GB, free: 7.719 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004585/0.4153, allocations: 75.89 kB / 1.086 GB, free: 7.645 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.5e-06/0.4153, allocations: 4 kB / 1.086 GB, free: 7.641 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.406e-05/0.4154, allocations: 11.98 kB / 1.086 GB, free: 7.629 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.4154, allocations: 4 kB / 1.086 GB, free: 7.625 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.4154, allocations: 0 / 1.086 GB, free: 7.625 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001481/0.4169, allocations: 0.7286 MB / 1.087 GB, free: 6.879 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002341/0.4171, allocations: 200 kB / 1.087 GB, free: 6.664 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.168e-05/0.4172, allocations: 4 kB / 1.087 GB, free: 6.66 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003981/0.4176, allocations: 39.97 kB / 1.087 GB, free: 6.621 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.162e-05/0.4177, allocations: 31.95 kB / 1.087 GB, free: 6.59 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.698e-05/0.4177, allocations: 15.98 kB / 1.087 GB, free: 6.574 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0005238/0.4183, allocations: 435 kB / 1.087 GB, free: 6.156 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.6e-07/0.4183, allocations: 0 / 1.087 GB, free: 6.156 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0005907/0.4189, allocations: 211.4 kB / 1.088 GB, free: 5.949 MB / 0.8419 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.0001648/0.419, allocations: 111.2 kB / 1.088 GB, free: 5.832 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001696/0.4207, allocations: 0.8045 MB / 1.088 GB, free: 5.004 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.4208, allocations: 0 / 1.088 GB, free: 5.004 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0004594/0.4212, allocations: 215.8 kB / 1.089 GB, free: 4.793 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009233/0.4222, allocations: 216.8 kB / 1.089 GB, free: 4.59 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002257/0.4244, allocations: 1.475 MB / 1.09 GB, free: 3.078 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005065/0.4249, allocations: 0.9141 MB / 1.091 GB, free: 2.137 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001753/0.4251, allocations: 51.42 kB / 1.091 GB, free: 2.086 MB / 0.8419 GB Notification: Performance of SimCode: time 5.31e-07/0.4251, allocations: 0 / 1.091 GB, free: 2.086 MB / 0.8419 GB Notification: Performance of Templates: time 0.01371/0.4388, allocations: 8.65 MB / 1.1 GB, free: 9.48 MB / 0.8575 GB make -j1 -f Buildings_11_Buildings.Controls.Continuous.Examples.LimPID.makefile (rm -f Buildings_11_Buildings.Controls.Continuous.Examples.LimPID.pipe ; mkfifo Buildings_11_Buildings.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.Continuous.Examples.LimPID.pipe >> ../files/Buildings_11_Buildings.Controls.Continuous.Examples.LimPID.sim & ./Buildings_11_Buildings.Controls.Continuous.Examples.LimPID -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.Continuous.Examples.LimPID.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.Continuous.Examples.LimPID_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_Continuous_Examples_LimPID.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.Continuous.Examples.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches