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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001803/0.001804, allocations: 101.1 kB / 16.27 MB, free: 5.969 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.001837/0.001837, allocations: 191.9 kB / 17.2 MB, free: 5.594 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.445/1.445, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.961/2.961, allocations: 482.4 MB / 0.7553 GB, free: 6.992 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001941/0.001941, allocations: 60.8 kB / 0.9245 GB, free: 15.98 MB / 0.7012 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9049/0.9068, allocations: 162.2 MB / 1.083 GB, free: 1.891 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.005946/0.9128, allocations: 4.125 MB / 1.087 GB, free: 14.94 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.003159/0.916, allocations: 1.328 MB / 1.088 GB, free: 13.96 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005344/0.9166, allocations: 24.56 kB / 1.088 GB, free: 13.95 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0004098/0.917, allocations: 128.4 kB / 1.088 GB, free: 13.86 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0004422/0.9175, allocations: 175 kB / 1.089 GB, free: 13.73 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.001091/0.9186, allocations: 416.3 kB / 1.089 GB, free: 13.48 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.001261/0.9199, allocations: 0.9476 MB / 1.09 GB, free: 12.97 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008349/0.9207, allocations: 459.1 kB / 1.09 GB, free: 12.73 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000525/0.9212, allocations: 331.7 kB / 1.091 GB, free: 12.55 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004524/0.9217, allocations: 336.2 kB / 1.091 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0001537/0.9219, allocations: 94.59 kB / 1.091 GB, free: 12.35 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001633/0.9221, allocations: 91.06 kB / 1.091 GB, free: 12.35 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0002097/0.9223, allocations: 176.4 kB / 1.091 GB, free: 12.22 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0004724/0.9227, allocations: 390.5 kB / 1.092 GB, free: 11.95 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.001457/0.9242, allocations: 1.04 MB / 1.093 GB, free: 11.52 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.9242, allocations: 0 / 1.093 GB, free: 11.52 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.743e-06/0.9242, allocations: 1.094 kB / 1.093 GB, free: 11.52 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.528e-05/0.9243, allocations: 0 / 1.093 GB, free: 11.52 MB / 0.8419 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.002346/0.9266, allocations: 1.083 MB / 1.094 GB, free: 10.74 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 5.091e-05/0.9267, allocations: 9.25 kB / 1.094 GB, free: 10.74 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001847/0.9269, allocations: 81.06 kB / 1.094 GB, free: 10.7 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001022/0.9279, allocations: 0.551 MB / 1.094 GB, free: 10.29 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.465e-05/0.928, allocations: 45.86 kB / 1.094 GB, free: 10.27 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001173/0.9281, allocations: 58.5 kB / 1.094 GB, free: 10.25 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001334/0.9294, allocations: 0.6083 MB / 1.095 GB, free: 9.957 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.196e-05/0.9295, allocations: 10.34 kB / 1.095 GB, free: 9.949 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.175e-05/0.9295, allocations: 21.03 kB / 1.095 GB, free: 9.934 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.379e-05/0.9296, allocations: 15.5 kB / 1.095 GB, free: 9.934 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001212/0.9308, allocations: 461.1 kB / 1.096 GB, free: 9.77 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003665/0.9345, allocations: 2.015 MB / 1.098 GB, free: 8.516 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00108/0.9356, allocations: 445.7 kB / 1.098 GB, free: 8.332 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005369/0.9361, allocations: 245.2 kB / 1.098 GB, free: 8.23 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 4.506e-05/0.9362, allocations: 6.203 kB / 1.098 GB, free: 8.23 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007112/0.9369, allocations: 269.6 kB / 1.098 GB, free: 8.094 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=49): time 2.245e-06/0.9369, allocations: 1.156 kB / 1.098 GB, free: 8.094 MB / 0.8419 GB Notification: Performance of matching and sorting (n=49): time 0.001548/0.9385, allocations: 0.5814 MB / 1.099 GB, free: 7.852 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.933e-05/0.9385, allocations: 62.02 kB / 1.099 GB, free: 7.785 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006124/0.9391, allocations: 445.4 kB / 1.099 GB, free: 7.566 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.85e-05/0.9392, allocations: 33.11 kB / 1.1 GB, free: 7.531 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003418/0.9395, allocations: 323.2 kB / 1.1 GB, free: 7.277 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001711/0.9397, allocations: 167.8 kB / 1.1 GB, free: 7.145 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001747/0.9399, allocations: 91.16 kB / 1.1 GB, free: 7.09 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0002425/0.9402, allocations: 365.3 kB / 1.1 GB, free: 6.754 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004424/0.9406, allocations: 168.3 kB / 1.101 GB, free: 6.691 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000485/0.9411, allocations: 246.1 kB / 1.101 GB, free: 6.551 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009431/0.9421, allocations: 455.1 kB / 1.101 GB, free: 6.281 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.977e-06/0.9421, allocations: 1.062 kB / 1.101 GB, free: 6.281 MB / 0.8419 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001246/0.9433, allocations: 0.5574 MB / 1.102 GB, free: 6.016 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 5.503e-05/0.9434, allocations: 40.27 kB / 1.102 GB, free: 5.977 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.18e-05/0.9434, allocations: 3.031 kB / 1.102 GB, free: 5.977 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.639e-05/0.9434, allocations: 4.469 kB / 1.102 GB, free: 5.977 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005356/0.944, allocations: 114.3 kB / 1.102 GB, free: 5.965 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.986e-05/0.944, allocations: 8.672 kB / 1.102 GB, free: 5.961 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003801/0.9444, allocations: 63.86 kB / 1.102 GB, free: 5.922 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.569e-05/0.9445, allocations: 22.55 kB / 1.102 GB, free: 5.914 MB / 0.8419 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.0003229/0.9448, allocations: 211.4 kB / 1.102 GB, free: 5.734 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.772e-05/0.9449, allocations: 58.41 kB / 1.102 GB, free: 5.703 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001533/0.945, allocations: 61.44 kB / 1.102 GB, free: 5.664 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.008e-05/0.9451, allocations: 5.172 kB / 1.102 GB, free: 5.664 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.279e-05/0.9451, allocations: 0 / 1.102 GB, free: 5.664 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.364e-05/0.9451, allocations: 3.359 kB / 1.102 GB, free: 5.664 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002221/0.9473, allocations: 1.186 MB / 1.104 GB, free: 4.973 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.486e-06/0.9473, allocations: 0 / 1.104 GB, free: 4.973 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004715/0.9478, allocations: 94.83 kB / 1.104 GB, free: 4.965 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.43e-06/0.9478, allocations: 1.719 kB / 1.104 GB, free: 4.965 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.356e-05/0.9479, allocations: 9 kB / 1.104 GB, free: 4.961 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.546e-06/0.9479, allocations: 1.5 kB / 1.104 GB, free: 4.961 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.9479, allocations: 0 / 1.104 GB, free: 4.961 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001478/0.9494, allocations: 0.7662 MB / 1.104 GB, free: 4.562 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002334/0.9496, allocations: 176.4 kB / 1.105 GB, free: 4.402 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.161e-05/0.9497, allocations: 12.14 kB / 1.105 GB, free: 4.395 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002871/0.95, allocations: 25.14 kB / 1.105 GB, free: 4.387 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000114/0.9501, allocations: 36.22 kB / 1.105 GB, free: 4.379 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.995e-05/0.9501, allocations: 14.45 kB / 1.105 GB, free: 4.375 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0004379/0.9506, allocations: 309.4 kB / 1.105 GB, free: 4.223 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9506, allocations: 0 / 1.105 GB, free: 4.223 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0005044/0.9511, allocations: 137.7 kB / 1.105 GB, free: 4.188 MB / 0.8419 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.0001569/0.9513, allocations: 113.7 kB / 1.105 GB, free: 4.086 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001183/0.9525, allocations: 0.4988 MB / 1.106 GB, free: 3.852 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.554e-06/0.9525, allocations: 0 / 1.106 GB, free: 3.852 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.000467/0.9529, allocations: 217.1 kB / 1.106 GB, free: 3.781 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008213/0.9538, allocations: 165.5 kB / 1.106 GB, free: 3.723 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003014/0.9568, allocations: 1.381 MB / 1.107 GB, free: 2.902 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006182/0.9574, allocations: 0.8875 MB / 1.108 GB, free: 2.195 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000157/0.9576, allocations: 51.58 kB / 1.108 GB, free: 2.184 MB / 0.8419 GB Notification: Performance of SimCode: time 4.21e-07/0.9576, allocations: 3.938 kB / 1.108 GB, free: 2.18 MB / 0.8419 GB Notification: Performance of Templates: time 0.01649/0.9741, allocations: 7.587 MB / 1.116 GB, free: 0.7461 MB / 0.8419 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=400 -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