Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/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_10_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_10_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.001143/0.001143, allocations: 102.2 kB / 16.35 MB, free: 5.887 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.00106/0.00106, allocations: 189.8 kB / 17.29 MB, free: 5.527 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.373/1.373, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.47/2.47, allocations: 437.1 MB / 0.7112 GB, free: 4.441 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001297/0.001298, allocations: 64.53 kB / 0.8707 GB, free: 1.504 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3338/0.3351, allocations: 151.6 MB / 1.019 GB, free: 9.91 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.005142/0.3403, allocations: 4.135 MB / 1.023 GB, free: 5.746 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.002254/0.3425, allocations: 1.313 MB / 1.024 GB, free: 4.426 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003113/0.3429, allocations: 31.81 kB / 1.024 GB, free: 4.395 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0003302/0.3432, allocations: 130.7 kB / 1.024 GB, free: 4.266 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0003184/0.3436, allocations: 178.4 kB / 1.024 GB, free: 4.09 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007785/0.3443, allocations: 422.1 kB / 1.025 GB, free: 3.684 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0008315/0.3452, allocations: 0.9592 MB / 1.026 GB, free: 2.723 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005974/0.3458, allocations: 458.1 kB / 1.026 GB, free: 2.254 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003135/0.3461, allocations: 326.7 kB / 1.026 GB, free: 1.934 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003227/0.3464, allocations: 334.4 kB / 1.027 GB, free: 1.605 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.0001029/0.3466, allocations: 88 kB / 1.027 GB, free: 1.52 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 9.852e-05/0.3467, allocations: 95.94 kB / 1.027 GB, free: 1.426 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001391/0.3468, allocations: 187.4 kB / 1.027 GB, free: 1.242 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0003012/0.3471, allocations: 390.1 kB / 1.028 GB, free: 0.8594 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.000821/0.3479, allocations: 1.063 MB / 1.029 GB, free: 15.79 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.348, allocations: 0 / 1.029 GB, free: 15.79 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.744e-06/0.348, allocations: 0 / 1.029 GB, free: 15.79 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.037e-05/0.348, allocations: 0 / 1.029 GB, free: 15.79 MB / 0.8106 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.001684/0.3497, allocations: 1.065 MB / 1.03 GB, free: 14.67 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.062e-05/0.3497, allocations: 20.88 kB / 1.03 GB, free: 14.65 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001225/0.3498, allocations: 87.91 kB / 1.03 GB, free: 14.57 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008426/0.3507, allocations: 0.5573 MB / 1.03 GB, free: 13.96 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.593e-05/0.3507, allocations: 45.69 kB / 1.03 GB, free: 13.92 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.652e-05/0.3508, allocations: 68.31 kB / 1.03 GB, free: 13.86 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009828/0.3518, allocations: 0.6039 MB / 1.031 GB, free: 13.23 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.986e-05/0.3519, allocations: 3.984 kB / 1.031 GB, free: 13.22 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.782e-05/0.3519, allocations: 28 kB / 1.031 GB, free: 13.2 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.27e-05/0.3519, allocations: 16 kB / 1.031 GB, free: 13.18 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009459/0.3529, allocations: 457 kB / 1.031 GB, free: 12.73 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002617/0.3555, allocations: 1.993 MB / 1.033 GB, free: 10.67 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000854/0.3564, allocations: 441.9 kB / 1.034 GB, free: 10.23 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004334/0.3568, allocations: 246 kB / 1.034 GB, free: 9.988 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.853e-05/0.3569, allocations: 8.422 kB / 1.034 GB, free: 9.98 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004909/0.3574, allocations: 253.3 kB / 1.034 GB, free: 9.723 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=49): time 1.963e-06/0.3574, allocations: 0 / 1.034 GB, free: 9.723 MB / 0.8106 GB Notification: Performance of matching and sorting (n=49): time 0.001207/0.3586, allocations: 0.5851 MB / 1.035 GB, free: 9.133 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.07e-05/0.3586, allocations: 63.78 kB / 1.035 GB, free: 9.059 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004496/0.3591, allocations: 449.9 kB / 1.035 GB, free: 8.609 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.632e-05/0.3591, allocations: 33.7 kB / 1.035 GB, free: 8.57 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002176/0.3594, allocations: 328.3 kB / 1.036 GB, free: 8.246 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001132/0.3595, allocations: 165.6 kB / 1.036 GB, free: 8.082 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001406/0.3596, allocations: 98.16 kB / 1.036 GB, free: 7.98 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001362/0.3598, allocations: 366.8 kB / 1.036 GB, free: 7.613 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003743/0.3602, allocations: 161 kB / 1.036 GB, free: 7.457 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004185/0.3606, allocations: 249.8 kB / 1.037 GB, free: 7.188 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007657/0.3614, allocations: 455.9 kB / 1.037 GB, free: 6.707 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/0.3614, allocations: 4 kB / 1.037 GB, free: 6.703 MB / 0.8106 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009861/0.3624, allocations: 0.5585 MB / 1.038 GB, free: 6.133 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.782e-05/0.3624, allocations: 33.64 kB / 1.038 GB, free: 6.094 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.278e-06/0.3624, allocations: 7.984 kB / 1.038 GB, free: 6.086 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.696e-05/0.3625, allocations: 4 kB / 1.038 GB, free: 6.082 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004795/0.3629, allocations: 111.8 kB / 1.038 GB, free: 5.973 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.291e-05/0.363, allocations: 12.25 kB / 1.038 GB, free: 5.961 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003084/0.3633, allocations: 51.52 kB / 1.038 GB, free: 5.91 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.802e-05/0.3633, allocations: 20 kB / 1.038 GB, free: 5.891 MB / 0.8106 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.0002352/0.3636, allocations: 211.2 kB / 1.038 GB, free: 5.676 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.505e-05/0.3636, allocations: 55.28 kB / 1.038 GB, free: 5.621 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000118/0.3638, allocations: 65.59 kB / 1.038 GB, free: 5.559 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.3638, allocations: 4 kB / 1.038 GB, free: 5.555 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.235e-06/0.3638, allocations: 7.984 kB / 1.038 GB, free: 5.547 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.3638, allocations: 0 / 1.038 GB, free: 5.547 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001659/0.3655, allocations: 1.182 MB / 1.039 GB, free: 4.312 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.3655, allocations: 0 / 1.039 GB, free: 4.312 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004607/0.3659, allocations: 99.8 kB / 1.039 GB, free: 4.215 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.009e-06/0.366, allocations: 8 kB / 1.039 GB, free: 4.207 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.278e-05/0.366, allocations: 12 kB / 1.04 GB, free: 4.195 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.366, allocations: 0 / 1.04 GB, free: 4.195 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.366, allocations: 4 kB / 1.04 GB, free: 4.191 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001244/0.3673, allocations: 0.7651 MB / 1.04 GB, free: 3.406 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001778/0.3674, allocations: 168.4 kB / 1.04 GB, free: 3.223 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.151e-05/0.3675, allocations: 12 kB / 1.04 GB, free: 3.211 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002795/0.3678, allocations: 19.98 kB / 1.04 GB, free: 3.191 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.286e-05/0.3679, allocations: 36.39 kB / 1.04 GB, free: 3.156 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.851e-05/0.3679, allocations: 11.98 kB / 1.04 GB, free: 3.145 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0003129/0.3683, allocations: 310.9 kB / 1.041 GB, free: 2.844 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3683, allocations: 0 / 1.041 GB, free: 2.844 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0004255/0.3687, allocations: 143.4 kB / 1.041 GB, free: 2.703 MB / 0.8106 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.0001259/0.3688, allocations: 123.1 kB / 1.041 GB, free: 2.574 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0008629/0.3697, allocations: 481.5 kB / 1.042 GB, free: 2.094 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 5.009e-06/0.3697, allocations: 4 kB / 1.042 GB, free: 2.09 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0003941/0.3701, allocations: 218.3 kB / 1.042 GB, free: 1.875 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006904/0.3708, allocations: 154.4 kB / 1.042 GB, free: 1.727 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002372/0.3732, allocations: 1.33 MB / 1.043 GB, free: 372 kB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004174/0.3736, allocations: 0.8938 MB / 1.044 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0002259/0.3739, allocations: 56.59 kB / 1.044 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001082/0.374, allocations: 43.44 kB / 1.044 GB, free: 15.35 MB / 0.8262 GB Notification: Performance of SimCode: time 1.783e-06/0.374, allocations: 0 / 1.044 GB, free: 15.35 MB / 0.8262 GB Notification: Performance of Templates: time 0.01038/0.3844, allocations: 5.925 MB / 1.05 GB, free: 9.512 MB / 0.8262 GB make -j1 -f Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset.makefile (rm -f Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset.sim & ./Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_Continuous_Examples_LimPIDWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches