Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.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.LimPIDWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|plaWitRes.temSen.T|plaNoRes.temSen.T|conWitRes.conPID.trigger|conWitRes.conPID.controlError|conNoRes.conPID.controlError",fileNamePrefix="Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset") translateModel(Buildings.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|plaWitRes.temSen.T|plaNoRes.temSen.T|conWitRes.conPID.trigger|conWitRes.conPID.controlError|conNoRes.conPID.controlError",fileNamePrefix="Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009569/0.0009569, allocations: 99.7 kB / 15.05 MB, free: 1.105 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.0009671/0.000967, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.455/1.455, allocations: 223.2 MB / 239.9 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.757/2.757, allocations: 436.5 MB / 0.7104 GB, free: 7.848 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004573/0.0004574, allocations: 8 kB / 0.8707 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8964/0.8968, allocations: 153.7 MB / 1.021 GB, free: 1.098 MB / 0.7638 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.004347/0.9012, allocations: 3.419 MB / 1.024 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002711/0.904, allocations: 1.235 MB / 1.025 GB, free: 12.42 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004374/0.9044, allocations: 19.94 kB / 1.025 GB, free: 12.4 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001453/0.9046, allocations: 59.36 kB / 1.025 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0006579/0.9053, allocations: 219.3 kB / 1.026 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007495/0.906, allocations: 298.4 kB / 1.026 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0007959/0.9068, allocations: 0.5859 MB / 1.026 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004828/0.9073, allocations: 307.5 kB / 1.027 GB, free: 10.94 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000307/0.9076, allocations: 238.9 kB / 1.027 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002761/0.9079, allocations: 234.7 kB / 1.027 GB, free: 10.47 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 6.34e-05/0.908, allocations: 27.94 kB / 1.027 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 6.271e-05/0.9081, allocations: 24 kB / 1.027 GB, free: 10.42 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 9.773e-05/0.9082, allocations: 99.47 kB / 1.027 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001375/0.9083, allocations: 153.3 kB / 1.028 GB, free: 10.17 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0007223/0.9091, allocations: 0.8044 MB / 1.028 GB, free: 9.363 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.9091, allocations: 0 / 1.028 GB, free: 9.363 MB / 0.7794 GB Notification: Performance of FrontEnd: time 3.617e-06/0.9091, allocations: 0 / 1.028 GB, free: 9.363 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 9.718e-06/0.9091, allocations: 0 / 1.028 GB, free: 9.363 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.001736/0.9108, allocations: 0.9639 MB / 1.029 GB, free: 8.344 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.845e-05/0.9109, allocations: 11.98 kB / 1.029 GB, free: 8.332 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001442/0.911, allocations: 86.97 kB / 1.029 GB, free: 8.246 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008414/0.9119, allocations: 0.5252 MB / 1.03 GB, free: 7.676 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.63e-05/0.9119, allocations: 41.31 kB / 1.03 GB, free: 7.637 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.123e-05/0.912, allocations: 64 kB / 1.03 GB, free: 7.574 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001096/0.9131, allocations: 0.6075 MB / 1.031 GB, free: 6.941 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.382e-05/0.9132, allocations: 3.906 kB / 1.031 GB, free: 6.938 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.583e-05/0.9132, allocations: 28 kB / 1.031 GB, free: 6.91 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.674e-05/0.9133, allocations: 16 kB / 1.031 GB, free: 6.895 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009515/0.9142, allocations: 461 kB / 1.031 GB, free: 6.445 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002825/0.9171, allocations: 2.024 MB / 1.033 GB, free: 4.352 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008932/0.918, allocations: 457 kB / 1.033 GB, free: 3.895 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.991e-05/0.918, allocations: 4.438 kB / 1.033 GB, free: 3.891 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005671/0.9186, allocations: 269.3 kB / 1.034 GB, free: 3.613 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=49): time 2.966e-06/0.9186, allocations: 0 / 1.034 GB, free: 3.613 MB / 0.7794 GB Notification: Performance of matching and sorting (n=49): time 0.001242/0.9199, allocations: 0.5921 MB / 1.034 GB, free: 3.016 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.571e-05/0.9199, allocations: 59.84 kB / 1.034 GB, free: 2.945 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004818/0.9204, allocations: 438 kB / 1.035 GB, free: 2.508 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.975e-05/0.9204, allocations: 33.7 kB / 1.035 GB, free: 2.469 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002426/0.9207, allocations: 336.9 kB / 1.035 GB, free: 2.137 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.000121/0.9208, allocations: 161.6 kB / 1.035 GB, free: 1.977 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.191e-05/0.9208, allocations: 8 kB / 1.035 GB, free: 1.969 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001591/0.921, allocations: 370.7 kB / 1.036 GB, free: 1.598 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003597/0.9214, allocations: 169 kB / 1.036 GB, free: 1.434 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004126/0.9218, allocations: 261.7 kB / 1.036 GB, free: 1.152 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004087/0.9222, allocations: 223.9 kB / 1.036 GB, free: 0.9297 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.9222, allocations: 0 / 1.036 GB, free: 0.9297 MB / 0.7794 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001005/0.9232, allocations: 0.5663 MB / 1.037 GB, free: 356 kB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 4.827e-05/0.9233, allocations: 35.73 kB / 1.037 GB, free: 316 kB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/0.9233, allocations: 0 / 1.037 GB, free: 316 kB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.924e-05/0.9233, allocations: 8.25 kB / 1.037 GB, free: 308 kB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004889/0.9238, allocations: 123.8 kB / 1.037 GB, free: 184 kB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.077e-05/0.9239, allocations: 4 kB / 1.037 GB, free: 180 kB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003661/0.9242, allocations: 67.5 kB / 1.037 GB, free: 112 kB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.588e-05/0.9243, allocations: 16 kB / 1.037 GB, free: 96 kB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,$whenCondition1,conWitRes.trigger.y,conNoRes.trigger.y,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,conNoRes.conPID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003127/0.9246, allocations: 224.8 kB / 1.037 GB, free: 15.86 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.664e-05/0.9247, allocations: 55.34 kB / 1.037 GB, free: 15.81 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001196/0.9248, allocations: 61.59 kB / 1.037 GB, free: 15.75 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.302e-06/0.9248, allocations: 4 kB / 1.037 GB, free: 15.75 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.098e-05/0.9248, allocations: 8 kB / 1.037 GB, free: 15.74 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.714e-06/0.9248, allocations: 3.984 kB / 1.037 GB, free: 15.73 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001685/0.9265, allocations: 1.189 MB / 1.039 GB, free: 14.49 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.9265, allocations: 0 / 1.039 GB, free: 14.49 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004617/0.927, allocations: 103.9 kB / 1.039 GB, free: 14.39 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.373e-06/0.927, allocations: 4 kB / 1.039 GB, free: 14.39 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.952e-05/0.9271, allocations: 8 kB / 1.039 GB, free: 14.38 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.128e-06/0.9271, allocations: 4 kB / 1.039 GB, free: 14.38 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.9271, allocations: 0 / 1.039 GB, free: 14.38 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001267/0.9284, allocations: 0.7719 MB / 1.039 GB, free: 13.59 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001704/0.9285, allocations: 168.3 kB / 1.04 GB, free: 13.41 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.62e-05/0.9286, allocations: 15.98 kB / 1.04 GB, free: 13.39 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002957/0.9289, allocations: 31.98 kB / 1.04 GB, free: 13.36 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.807e-05/0.929, allocations: 36.38 kB / 1.04 GB, free: 13.32 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.786e-05/0.9291, allocations: 16 kB / 1.04 GB, free: 13.31 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.000337/0.9294, allocations: 306.9 kB / 1.04 GB, free: 13.01 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.21e-07/0.9294, allocations: 0 / 1.04 GB, free: 13.01 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0004507/0.9299, allocations: 143.4 kB / 1.04 GB, free: 12.87 MB / 0.795 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (plaWitRes.cap.T,plaWitRes.cap1.T,conWitRes.conPID.I.y,plaNoRes.cap.T,plaNoRes.cap1.T,conNoRes.conPID.I.y) * Number of discrete variables: 6 (conWitRes.trigger.y,$whenCondition2,$whenCondition1,conNoRes.trigger.y,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001465/0.93, allocations: 117.9 kB / 1.04 GB, free: 12.75 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0009159/0.9309, allocations: 497.5 kB / 1.041 GB, free: 12.25 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 4.057e-06/0.931, allocations: 0 / 1.041 GB, free: 12.25 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0004009/0.9314, allocations: 222.4 kB / 1.041 GB, free: 12.04 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006685/0.932, allocations: 132.6 kB / 1.041 GB, free: 11.91 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002773/0.9348, allocations: 1.621 MB / 1.043 GB, free: 10.25 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004907/0.9353, allocations: 0.9019 MB / 1.043 GB, free: 9.324 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0002748/0.9356, allocations: 60.59 kB / 1.044 GB, free: 9.262 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001052/0.9357, allocations: 35.44 kB / 1.044 GB, free: 9.227 MB / 0.795 GB Notification: Performance of SimCode: time 5.81e-07/0.9357, allocations: 0 / 1.044 GB, free: 9.227 MB / 0.795 GB Notification: Performance of Templates: time 0.01067/0.9464, allocations: 5.353 MB / 1.049 GB, free: 3.945 MB / 0.795 GB make -j1 -f Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.makefile (rm -f Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.sim & ./Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Continuous_Examples_LimPIDWithReset.csv","../files/Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches