Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.0009264/0.0009262, allocations: 98.88 kB / 16.02 MB, free: 76 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.001143/0.001143, allocations: 186.5 kB / 16.92 MB, free: 6.77 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.449/1.449, allocations: 223.3 MB / 241 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.805/2.805, allocations: 462.6 MB / 0.737 GB, free: 15.54 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.000359/0.0003592, allocations: 7.906 kB / 0.9034 GB, free: 36.43 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3769/0.3773, allocations: 159.6 MB / 1.059 GB, free: 4.961 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.003872/0.3812, allocations: 3.309 MB / 1.063 GB, free: 1.633 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002691/0.384, allocations: 1.297 MB / 1.064 GB, free: 336 kB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005114/0.3845, allocations: 23.88 kB / 1.064 GB, free: 312 kB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0003104/0.3848, allocations: 95.09 kB / 1.064 GB, free: 216 kB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0006076/0.3854, allocations: 135.1 kB / 1.064 GB, free: 80 kB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.001204/0.3866, allocations: 0.5378 MB / 1.065 GB, free: 15.55 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0009331/0.3876, allocations: 0.8938 MB / 1.065 GB, free: 14.65 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005365/0.3881, allocations: 329.6 kB / 1.066 GB, free: 14.32 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004029/0.3885, allocations: 282.3 kB / 1.066 GB, free: 14.04 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003419/0.3889, allocations: 278.1 kB / 1.066 GB, free: 13.77 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 6.642e-05/0.389, allocations: 24 kB / 1.066 GB, free: 13.74 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 5.738e-05/0.389, allocations: 20 kB / 1.066 GB, free: 13.72 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0002025/0.3892, allocations: 115.3 kB / 1.066 GB, free: 13.61 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002806/0.3895, allocations: 323.5 kB / 1.067 GB, free: 13.29 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0008012/0.3903, allocations: 0.6197 MB / 1.067 GB, free: 12.66 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.3904, allocations: 0 / 1.067 GB, free: 12.66 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.924e-06/0.3904, allocations: 0 / 1.067 GB, free: 12.66 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 9.218e-06/0.3904, allocations: 0 / 1.067 GB, free: 12.66 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.001985/0.3924, allocations: 1.059 MB / 1.068 GB, free: 11.55 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.65e-05/0.3924, allocations: 8.031 kB / 1.068 GB, free: 11.54 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001752/0.3926, allocations: 95.81 kB / 1.068 GB, free: 11.45 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001135/0.3937, allocations: 0.5987 MB / 1.069 GB, free: 10.8 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001263/0.3939, allocations: 96.97 kB / 1.069 GB, free: 10.7 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.93e-05/0.394, allocations: 56.38 kB / 1.069 GB, free: 10.64 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001319/0.3953, allocations: 0.6198 MB / 1.07 GB, free: 9.977 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.391e-05/0.3953, allocations: 0 / 1.07 GB, free: 9.977 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.475e-05/0.3954, allocations: 23.94 kB / 1.07 GB, free: 9.953 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.241e-05/0.3954, allocations: 12 kB / 1.07 GB, free: 9.941 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009714/0.3964, allocations: 447.6 kB / 1.07 GB, free: 9.508 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003005/0.3994, allocations: 2.133 MB / 1.072 GB, free: 7.289 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001263/0.4007, allocations: 0.5147 MB / 1.073 GB, free: 6.762 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005099/0.4012, allocations: 232.8 kB / 1.073 GB, free: 6.531 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 4.089e-05/0.4013, allocations: 4 kB / 1.073 GB, free: 6.527 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007418/0.402, allocations: 290 kB / 1.073 GB, free: 6.23 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=45): time 2.435e-06/0.402, allocations: 4 kB / 1.073 GB, free: 6.227 MB / 0.8262 GB Notification: Performance of matching and sorting (n=45): time 0.001567/0.4036, allocations: 0.6464 MB / 1.074 GB, free: 5.574 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.699e-05/0.4037, allocations: 84.86 kB / 1.074 GB, free: 5.473 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007591/0.4045, allocations: 0.61 MB / 1.075 GB, free: 4.852 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 5.072e-05/0.4045, allocations: 37.7 kB / 1.075 GB, free: 4.809 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002775/0.4048, allocations: 352.7 kB / 1.075 GB, free: 4.461 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001457/0.405, allocations: 162.8 kB / 1.075 GB, free: 4.301 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.252e-05/0.405, allocations: 53.69 kB / 1.075 GB, free: 4.242 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001395/0.4052, allocations: 322 kB / 1.076 GB, free: 3.922 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004493/0.4056, allocations: 185 kB / 1.076 GB, free: 3.742 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000596/0.4062, allocations: 292.2 kB / 1.076 GB, free: 3.422 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001143/0.4074, allocations: 497.9 kB / 1.077 GB, free: 2.895 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.13e-05/0.4074, allocations: 3.938 kB / 1.077 GB, free: 2.891 MB / 0.8262 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001314/0.4087, allocations: 0.6256 MB / 1.077 GB, free: 2.254 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001627/0.4089, allocations: 183.2 kB / 1.077 GB, free: 2.035 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.959e-06/0.4089, allocations: 4 kB / 1.077 GB, free: 2.031 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.313e-05/0.409, allocations: 7.984 kB / 1.077 GB, free: 2.023 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004926/0.4095, allocations: 119.8 kB / 1.077 GB, free: 1.906 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.515e-05/0.4095, allocations: 4 kB / 1.077 GB, free: 1.902 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000448/0.4099, allocations: 63.5 kB / 1.077 GB, free: 1.84 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.714e-05/0.41, allocations: 23.98 kB / 1.078 GB, free: 1.816 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.07e-05/0.41, allocations: 7.938 kB / 1.078 GB, free: 1.809 MB / 0.8262 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001102/0.4111, allocations: 0.4998 MB / 1.078 GB, free: 1.301 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.4111, allocations: 4 kB / 1.078 GB, free: 1.297 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.224e-06/0.4112, allocations: 8.312 kB / 1.078 GB, free: 1.289 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004612/0.4116, allocations: 107.8 kB / 1.078 GB, free: 1.184 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.122e-05/0.4116, allocations: 4 kB / 1.078 GB, free: 1.18 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003896/0.412, allocations: 67.41 kB / 1.078 GB, free: 1.113 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.937e-05/0.4121, allocations: 16 kB / 1.078 GB, free: 1.098 MB / 0.8262 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.000375/0.4125, allocations: 277 kB / 1.078 GB, free: 0.8164 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001246/0.4126, allocations: 71.09 kB / 1.079 GB, free: 0.7461 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002018/0.4128, allocations: 87.14 kB / 1.079 GB, free: 0.6562 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.4128, allocations: 4 kB / 1.079 GB, free: 0.6523 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.236e-06/0.4128, allocations: 0 / 1.079 GB, free: 0.6523 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.394e-06/0.4128, allocations: 4 kB / 1.079 GB, free: 0.6484 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009497/0.4138, allocations: 0.6257 MB / 1.079 GB, free: 15.97 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.512e-06/0.4138, allocations: 3.938 kB / 1.079 GB, free: 15.97 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004625/0.4143, allocations: 87.89 kB / 1.079 GB, free: 15.88 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.566e-06/0.4143, allocations: 4 kB / 1.079 GB, free: 15.88 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.599e-05/0.4143, allocations: 4 kB / 1.079 GB, free: 15.88 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.681e-06/0.4144, allocations: 7.984 kB / 1.079 GB, free: 15.87 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.4144, allocations: 0 / 1.079 GB, free: 15.87 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001704/0.4161, allocations: 0.7512 MB / 1.08 GB, free: 15.1 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002546/0.4163, allocations: 196.2 kB / 1.08 GB, free: 14.89 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.989e-05/0.4164, allocations: 16 kB / 1.08 GB, free: 14.87 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004214/0.4169, allocations: 43.97 kB / 1.08 GB, free: 14.83 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.189e-05/0.417, allocations: 27.95 kB / 1.08 GB, free: 14.8 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.961e-05/0.417, allocations: 19.98 kB / 1.08 GB, free: 14.78 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0006611/0.4177, allocations: 435 kB / 1.081 GB, free: 14.36 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4177, allocations: 3.938 kB / 1.081 GB, free: 14.36 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0006519/0.4183, allocations: 211.3 kB / 1.081 GB, free: 14.15 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.0001584/0.4185, allocations: 123.1 kB / 1.081 GB, free: 14.02 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001909/0.4204, allocations: 0.8125 MB / 1.082 GB, free: 13.18 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.4204, allocations: 128 / 1.082 GB, free: 13.18 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0004968/0.4209, allocations: 224.2 kB / 1.082 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009804/0.4219, allocations: 184.9 kB / 1.082 GB, free: 12.79 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002554/0.4245, allocations: 1.504 MB / 1.084 GB, free: 11.25 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005724/0.4251, allocations: 0.9144 MB / 1.085 GB, free: 10.3 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001893/0.4253, allocations: 51.44 kB / 1.085 GB, free: 10.25 MB / 0.8419 GB Notification: Performance of SimCode: time 6.51e-07/0.4253, allocations: 0 / 1.085 GB, free: 10.25 MB / 0.8419 GB Notification: Performance of Templates: time 0.01576/0.4411, allocations: 8.539 MB / 1.093 GB, free: 1.758 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.makefile (rm -f Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe ; mkfifo Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe >> ../files/Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.sim & ./Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Continuous_Examples_LimPID.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches