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.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.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.001232/0.001232, allocations: 105.2 kB / 16.41 MB, free: 6.5 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.001124/0.001124, allocations: 185.8 kB / 17.34 MB, free: 5.738 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.245/1.245, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.335/2.335, allocations: 461.9 MB / 0.7354 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00114/0.00114, allocations: 59.91 kB / 1.055 GB, free: 7.715 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6129/0.614, allocations: 157.4 MB / 1.208 GB, free: 13.61 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.004545/0.6186, allocations: 4.126 MB / 1.212 GB, free: 9.449 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002142/0.6207, allocations: 1.325 MB / 1.214 GB, free: 8.117 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004032/0.6212, allocations: 23.88 kB / 1.214 GB, free: 8.094 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.000327/0.6215, allocations: 126.7 kB / 1.214 GB, free: 7.969 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0003814/0.6219, allocations: 178.4 kB / 1.214 GB, free: 7.793 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007735/0.6227, allocations: 420.4 kB / 1.214 GB, free: 7.387 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0008657/0.6236, allocations: 0.9515 MB / 1.215 GB, free: 6.43 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005405/0.6241, allocations: 462.1 kB / 1.216 GB, free: 5.961 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003039/0.6244, allocations: 338.7 kB / 1.216 GB, free: 5.629 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002968/0.6247, allocations: 330.4 kB / 1.216 GB, free: 5.305 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 9.747e-05/0.6248, allocations: 96 kB / 1.217 GB, free: 5.211 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001067/0.6249, allocations: 88 kB / 1.217 GB, free: 5.125 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001108/0.6251, allocations: 183.3 kB / 1.217 GB, free: 4.945 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0002731/0.6253, allocations: 394.1 kB / 1.217 GB, free: 4.559 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0008009/0.6261, allocations: 1.061 MB / 1.218 GB, free: 3.5 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.6261, allocations: 0 / 1.218 GB, free: 3.5 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.102e-06/0.6262, allocations: 0 / 1.218 GB, free: 3.5 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 8.476e-06/0.6262, allocations: 0 / 1.218 GB, free: 3.5 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.001546/0.6277, allocations: 1.077 MB / 1.219 GB, free: 2.363 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 2.771e-05/0.6277, allocations: 12.03 kB / 1.219 GB, free: 2.352 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001142/0.6279, allocations: 84 kB / 1.219 GB, free: 2.27 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007521/0.6286, allocations: 0.5689 MB / 1.22 GB, free: 1.66 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.263e-05/0.6287, allocations: 45.69 kB / 1.22 GB, free: 1.617 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.632e-05/0.6287, allocations: 56.38 kB / 1.22 GB, free: 1.562 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009661/0.6297, allocations: 0.6156 MB / 1.221 GB, free: 0.9219 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.732e-05/0.6297, allocations: 0 / 1.221 GB, free: 0.9219 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.848e-05/0.6298, allocations: 24 kB / 1.221 GB, free: 0.8984 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.353e-05/0.6298, allocations: 16 kB / 1.221 GB, free: 0.8828 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008849/0.6307, allocations: 457 kB / 1.221 GB, free: 448 kB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00237/0.6331, allocations: 1.993 MB / 1.223 GB, free: 14.38 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008293/0.6339, allocations: 445 kB / 1.223 GB, free: 13.93 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004042/0.6343, allocations: 238.1 kB / 1.224 GB, free: 13.7 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 3.02e-05/0.6344, allocations: 4.438 kB / 1.224 GB, free: 13.69 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004692/0.6349, allocations: 261.3 kB / 1.224 GB, free: 13.43 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=49): time 1.933e-06/0.6349, allocations: 0 / 1.224 GB, free: 13.43 MB / 0.9512 GB Notification: Performance of matching and sorting (n=49): time 0.001149/0.636, allocations: 0.592 MB / 1.224 GB, free: 12.83 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.48e-05/0.6361, allocations: 55.84 kB / 1.225 GB, free: 12.76 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004071/0.6365, allocations: 442.1 kB / 1.225 GB, free: 12.32 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 3.364e-05/0.6365, allocations: 37.7 kB / 1.225 GB, free: 12.28 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001949/0.6367, allocations: 325 kB / 1.225 GB, free: 11.96 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001017/0.6368, allocations: 165.6 kB / 1.225 GB, free: 11.79 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00013/0.637, allocations: 94.23 kB / 1.226 GB, free: 11.69 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.00012/0.6371, allocations: 366.8 kB / 1.226 GB, free: 11.32 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003501/0.6374, allocations: 165 kB / 1.226 GB, free: 11.16 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003912/0.6378, allocations: 249.8 kB / 1.226 GB, free: 10.89 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007297/0.6386, allocations: 448 kB / 1.227 GB, free: 10.43 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.6386, allocations: 0 / 1.227 GB, free: 10.43 MB / 0.9512 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009207/0.6395, allocations: 0.5624 MB / 1.227 GB, free: 9.848 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 3.097e-05/0.6396, allocations: 37.64 kB / 1.227 GB, free: 9.805 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.6396, allocations: 4 kB / 1.227 GB, free: 9.801 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.515e-05/0.6396, allocations: 4.25 kB / 1.227 GB, free: 9.797 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004452/0.64, allocations: 115.8 kB / 1.227 GB, free: 9.684 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.083e-05/0.6401, allocations: 7.938 kB / 1.227 GB, free: 9.676 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000284/0.6404, allocations: 71.28 kB / 1.228 GB, free: 9.605 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.241e-05/0.6404, allocations: 20 kB / 1.228 GB, free: 9.586 MB / 0.9512 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 (TSet.count,$PRE.TSet.count,TSet.T_start,$PRE.TSet.T_start,conNoRes.trigger.y,conWitRes.trigger.y,$whenCondition1,$whenCondition2,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002145/0.6406, allocations: 201.8 kB / 1.228 GB, free: 9.379 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.028e-05/0.6407, allocations: 55.28 kB / 1.228 GB, free: 9.324 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001284/0.6408, allocations: 73.58 kB / 1.228 GB, free: 9.25 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.219e-06/0.6408, allocations: 4 kB / 1.228 GB, free: 9.246 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.73e-06/0.6408, allocations: 0 / 1.228 GB, free: 9.246 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.643e-06/0.6408, allocations: 3.984 kB / 1.228 GB, free: 9.242 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001495/0.6423, allocations: 1.174 MB / 1.229 GB, free: 8.016 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.6424, allocations: 0 / 1.229 GB, free: 8.016 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004252/0.6428, allocations: 95.89 kB / 1.229 GB, free: 7.922 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.602e-06/0.6428, allocations: 7.984 kB / 1.229 GB, free: 7.914 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.862e-05/0.6428, allocations: 16 kB / 1.229 GB, free: 7.898 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/0.6428, allocations: 0 / 1.229 GB, free: 7.898 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.6428, allocations: 0 / 1.229 GB, free: 7.898 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001193/0.644, allocations: 0.7651 MB / 1.23 GB, free: 7.121 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001515/0.6442, allocations: 172.2 kB / 1.23 GB, free: 6.934 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.709e-05/0.6443, allocations: 8 kB / 1.23 GB, free: 6.926 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002722/0.6445, allocations: 27.97 kB / 1.23 GB, free: 6.898 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.122e-05/0.6446, allocations: 32.39 kB / 1.23 GB, free: 6.863 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.447e-05/0.6447, allocations: 12 kB / 1.23 GB, free: 6.852 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0002905/0.645, allocations: 314.9 kB / 1.23 GB, free: 6.547 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.3e-07/0.645, allocations: 0 / 1.23 GB, free: 6.547 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.000386/0.6454, allocations: 143.5 kB / 1.231 GB, free: 6.406 MB / 0.9512 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 (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.0001073/0.6455, allocations: 114.4 kB / 1.231 GB, free: 6.285 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0008459/0.6463, allocations: 493.5 kB / 1.231 GB, free: 5.789 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.6463, allocations: 0 / 1.231 GB, free: 5.789 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.000376/0.6467, allocations: 214.4 kB / 1.231 GB, free: 5.578 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006774/0.6474, allocations: 160.2 kB / 1.231 GB, free: 5.43 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002238/0.6496, allocations: 1.37 MB / 1.233 GB, free: 4.02 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003733/0.65, allocations: 0.8938 MB / 1.234 GB, free: 3.102 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001354/0.6502, allocations: 47.44 kB / 1.234 GB, free: 3.055 MB / 0.9512 GB Notification: Performance of SimCode: time 2.31e-07/0.6502, allocations: 0 / 1.234 GB, free: 3.055 MB / 0.9512 GB Notification: Performance of Templates: time 0.008789/0.659, allocations: 7.658 MB / 1.241 GB, free: 11.44 MB / 0.9669 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches