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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.00129/0.00129, allocations: 109 kB / 16.41 MB, free: 6.488 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.001158/0.001158, allocations: 185.5 kB / 17.34 MB, free: 5.762 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.237/1.237, allocations: 222.9 MB / 241 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.371/2.371, allocations: 461.9 MB / 0.7355 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001291/0.001291, allocations: 63.91 kB / 1.055 GB, free: 7.758 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6852/0.6865, allocations: 157.4 MB / 1.208 GB, free: 13.67 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.004048/0.6906, allocations: 3.71 MB / 1.212 GB, free: 9.941 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002007/0.6926, allocations: 1.328 MB / 1.213 GB, free: 8.605 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002724/0.6929, allocations: 23.88 kB / 1.213 GB, free: 8.582 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0002762/0.6932, allocations: 126.6 kB / 1.213 GB, free: 8.457 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0004116/0.6936, allocations: 174.5 kB / 1.214 GB, free: 8.285 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009615/0.6946, allocations: 0.5714 MB / 1.214 GB, free: 7.723 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0008478/0.6955, allocations: 0.9759 MB / 1.215 GB, free: 6.742 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004481/0.6959, allocations: 349.6 kB / 1.215 GB, free: 6.387 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003454/0.6963, allocations: 370.5 kB / 1.216 GB, free: 6.023 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003101/0.6966, allocations: 350 kB / 1.216 GB, free: 5.68 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.0001012/0.6967, allocations: 80 kB / 1.216 GB, free: 5.602 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 9.461e-05/0.6968, allocations: 80 kB / 1.216 GB, free: 5.523 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001288/0.6969, allocations: 179.2 kB / 1.216 GB, free: 5.348 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0002493/0.6972, allocations: 381.7 kB / 1.217 GB, free: 4.973 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0006762/0.6979, allocations: 0.8889 MB / 1.218 GB, free: 4.086 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.6979, allocations: 0 / 1.218 GB, free: 4.086 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.422e-06/0.6979, allocations: 0 / 1.218 GB, free: 4.086 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 8.737e-06/0.6979, allocations: 4 kB / 1.218 GB, free: 4.082 MB / 0.9356 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.001773/0.6997, allocations: 1.18 MB / 1.219 GB, free: 2.848 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.347e-05/0.6997, allocations: 12.03 kB / 1.219 GB, free: 2.836 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001371/0.6999, allocations: 91.81 kB / 1.219 GB, free: 2.746 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008811/0.7007, allocations: 0.6182 MB / 1.22 GB, free: 2.082 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.599e-05/0.7008, allocations: 104.9 kB / 1.22 GB, free: 1.969 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.004e-05/0.7009, allocations: 56.38 kB / 1.22 GB, free: 1.914 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009646/0.7019, allocations: 0.5964 MB / 1.22 GB, free: 1.277 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.174e-05/0.7019, allocations: 4 kB / 1.22 GB, free: 1.273 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.837e-05/0.702, allocations: 20 kB / 1.22 GB, free: 1.254 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.077e-05/0.702, allocations: 16 kB / 1.22 GB, free: 1.238 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008627/0.7029, allocations: 423.6 kB / 1.221 GB, free: 0.8242 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002312/0.7052, allocations: 2.098 MB / 1.223 GB, free: 14.64 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001104/0.7063, allocations: 0.5003 MB / 1.223 GB, free: 14.13 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004251/0.7067, allocations: 222.8 kB / 1.223 GB, free: 13.91 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 3.085e-05/0.7068, allocations: 4 kB / 1.223 GB, free: 13.91 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005846/0.7074, allocations: 282.1 kB / 1.224 GB, free: 13.62 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=45): time 1.793e-06/0.7074, allocations: 0 / 1.224 GB, free: 13.62 MB / 0.9512 GB Notification: Performance of matching and sorting (n=45): time 0.001314/0.7087, allocations: 0.6102 MB / 1.224 GB, free: 13 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.689e-05/0.7087, allocations: 88.86 kB / 1.224 GB, free: 12.9 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000573/0.7093, allocations: 0.61 MB / 1.225 GB, free: 12.28 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 4.424e-05/0.7094, allocations: 49.58 kB / 1.225 GB, free: 12.23 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002144/0.7096, allocations: 356.7 kB / 1.225 GB, free: 11.88 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 9.995e-05/0.7097, allocations: 157.8 kB / 1.226 GB, free: 11.72 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001294/0.7098, allocations: 98.14 kB / 1.226 GB, free: 11.62 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 9.039e-05/0.7099, allocations: 326 kB / 1.226 GB, free: 11.29 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004132/0.7104, allocations: 187 kB / 1.226 GB, free: 11.11 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004453/0.7108, allocations: 276.2 kB / 1.226 GB, free: 10.8 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008273/0.7116, allocations: 470 kB / 1.227 GB, free: 10.3 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.569e-06/0.7117, allocations: 3.938 kB / 1.227 GB, free: 10.3 MB / 0.9512 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001039/0.7127, allocations: 0.606 MB / 1.227 GB, free: 9.68 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 2.84e-05/0.7127, allocations: 29.7 kB / 1.227 GB, free: 9.645 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.143e-06/0.7128, allocations: 4.312 kB / 1.227 GB, free: 9.641 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.531e-05/0.7128, allocations: 8 kB / 1.228 GB, free: 9.633 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000448/0.7132, allocations: 107.8 kB / 1.228 GB, free: 9.527 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.057e-05/0.7132, allocations: 8 kB / 1.228 GB, free: 9.52 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003527/0.7136, allocations: 63.44 kB / 1.228 GB, free: 9.457 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.194e-05/0.7136, allocations: 20 kB / 1.228 GB, free: 9.438 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004908/0.7141, allocations: 309.2 kB / 1.228 GB, free: 9.133 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004043/0.7146, allocations: 268.2 kB / 1.228 GB, free: 8.836 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007501/0.7153, allocations: 450 kB / 1.229 GB, free: 8.355 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.673e-06/0.7153, allocations: 4 kB / 1.229 GB, free: 8.352 MB / 0.9512 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.0009617/0.7163, allocations: 0.5825 MB / 1.229 GB, free: 7.754 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.945e-05/0.7163, allocations: 33.7 kB / 1.229 GB, free: 7.715 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.584e-06/0.7163, allocations: 0 / 1.229 GB, free: 7.715 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.075e-06/0.7163, allocations: 11.98 kB / 1.229 GB, free: 7.703 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004115/0.7168, allocations: 100.1 kB / 1.229 GB, free: 7.605 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.291e-06/0.7168, allocations: 11.98 kB / 1.229 GB, free: 7.594 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000335/0.7171, allocations: 55.56 kB / 1.229 GB, free: 7.539 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.928e-05/0.7171, allocations: 16 kB / 1.229 GB, free: 7.523 MB / 0.9512 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.0001282/0.7173, allocations: 212.1 kB / 1.23 GB, free: 7.309 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.162e-05/0.7174, allocations: 75.09 kB / 1.23 GB, free: 7.234 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000141/0.7175, allocations: 83.2 kB / 1.23 GB, free: 7.148 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.7175, allocations: 4 kB / 1.23 GB, free: 7.145 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.135e-06/0.7175, allocations: 4 kB / 1.23 GB, free: 7.141 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.7175, allocations: 0 / 1.23 GB, free: 7.141 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005393/0.7181, allocations: 0.6257 MB / 1.23 GB, free: 6.465 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.7181, allocations: 0 / 1.23 GB, free: 6.465 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004329/0.7185, allocations: 87.88 kB / 1.231 GB, free: 6.379 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.7185, allocations: 0 / 1.231 GB, free: 6.379 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.193e-05/0.7186, allocations: 15.98 kB / 1.231 GB, free: 6.363 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.7186, allocations: 0 / 1.231 GB, free: 6.363 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.7186, allocations: 8 kB / 1.231 GB, free: 6.355 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001349/0.72, allocations: 0.7288 MB / 1.231 GB, free: 5.609 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001837/0.7201, allocations: 196.1 kB / 1.231 GB, free: 5.398 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.048e-05/0.7202, allocations: 8 kB / 1.231 GB, free: 5.391 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003846/0.7206, allocations: 31.97 kB / 1.231 GB, free: 5.359 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.539e-05/0.7207, allocations: 31.95 kB / 1.232 GB, free: 5.328 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.235e-05/0.7207, allocations: 19.98 kB / 1.232 GB, free: 5.309 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0004059/0.7211, allocations: 427 kB / 1.232 GB, free: 4.898 MB / 0.9512 GB Notification: Performance of sort global known variables: time 2e-07/0.7212, allocations: 0 / 1.232 GB, free: 4.898 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0005079/0.7217, allocations: 219.3 kB / 1.232 GB, free: 4.684 MB / 0.9512 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.0001195/0.7218, allocations: 111.2 kB / 1.232 GB, free: 4.566 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.001361/0.7232, allocations: 0.7927 MB / 1.233 GB, free: 3.754 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.7232, allocations: 0 / 1.233 GB, free: 3.754 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0004222/0.7236, allocations: 208.5 kB / 1.233 GB, free: 3.551 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007962/0.7244, allocations: 197.5 kB / 1.233 GB, free: 3.363 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001722/0.7261, allocations: 1.212 MB / 1.235 GB, free: 2.109 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003552/0.7265, allocations: 0.9141 MB / 1.235 GB, free: 1.168 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001635/0.7267, allocations: 55.44 kB / 1.236 GB, free: 1.113 MB / 0.9512 GB Notification: Performance of SimCode: time 2.71e-07/0.7267, allocations: 3.938 kB / 1.236 GB, free: 1.109 MB / 0.9512 GB Notification: Performance of Templates: time 0.009815/0.7365, allocations: 8.72 MB / 1.244 GB, free: 8.43 MB / 0.9669 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