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.001243/0.001243, allocations: 92.23 kB / 15.06 MB, free: 1.098 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.001985/0.001985, allocations: 172.7 kB / 15.95 MB, free: 208 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.506/1.506, allocations: 223.3 MB / 240 MB, free: 5.434 MB / 190.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.715/2.715, allocations: 437.7 MB / 0.7117 GB, free: 7.117 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003949/0.000395, allocations: 8 kB / 0.8722 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7334/0.7338, allocations: 153.8 MB / 1.022 GB, free: 32 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.004354/0.7382, allocations: 3.54 MB / 1.026 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002221/0.7404, allocations: 1.231 MB / 1.027 GB, free: 11.24 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003637/0.7408, allocations: 23.94 kB / 1.027 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0002578/0.7411, allocations: 87.16 kB / 1.027 GB, free: 11.13 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0002972/0.7414, allocations: 138.9 kB / 1.027 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007572/0.7422, allocations: 283.1 kB / 1.028 GB, free: 10.72 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0008483/0.743, allocations: 0.8382 MB / 1.028 GB, free: 9.879 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004698/0.7435, allocations: 299.5 kB / 1.029 GB, free: 9.574 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002692/0.7438, allocations: 226.8 kB / 1.029 GB, free: 9.352 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002619/0.7441, allocations: 242.6 kB / 1.029 GB, free: 9.113 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 5.575e-05/0.7441, allocations: 24 kB / 1.029 GB, free: 9.09 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 6.182e-05/0.7442, allocations: 24 kB / 1.029 GB, free: 9.066 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 9.592e-05/0.7443, allocations: 99.47 kB / 1.029 GB, free: 8.969 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.000122/0.7444, allocations: 153.3 kB / 1.029 GB, free: 8.812 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0006917/0.7451, allocations: 0.8044 MB / 1.03 GB, free: 8.008 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.7451, allocations: 0 / 1.03 GB, free: 8.008 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.934e-06/0.7451, allocations: 4 kB / 1.03 GB, free: 8.004 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.131e-05/0.7452, allocations: 0 / 1.03 GB, free: 8.004 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.001584/0.7467, allocations: 0.9523 MB / 1.031 GB, free: 6.996 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.905e-05/0.7468, allocations: 16.52 kB / 1.031 GB, free: 6.98 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001558/0.747, allocations: 94.84 kB / 1.031 GB, free: 6.887 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008225/0.7478, allocations: 0.5291 MB / 1.032 GB, free: 6.312 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.274e-05/0.7479, allocations: 41.31 kB / 1.032 GB, free: 6.273 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001107/0.748, allocations: 63.94 kB / 1.032 GB, free: 6.211 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001097/0.7491, allocations: 0.6114 MB / 1.032 GB, free: 5.574 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.056e-05/0.7491, allocations: 3.906 kB / 1.032 GB, free: 5.57 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.906e-05/0.7492, allocations: 20 kB / 1.032 GB, free: 5.551 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.331e-05/0.7492, allocations: 16 kB / 1.032 GB, free: 5.535 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009596/0.7502, allocations: 469 kB / 1.033 GB, free: 5.078 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002893/0.7531, allocations: 2.02 MB / 1.035 GB, free: 2.988 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008582/0.754, allocations: 456.2 kB / 1.035 GB, free: 2.539 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004235/0.7544, allocations: 242.1 kB / 1.036 GB, free: 2.301 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.9e-05/0.7544, allocations: 8.422 kB / 1.036 GB, free: 2.293 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006224/0.7551, allocations: 273.3 kB / 1.036 GB, free: 2.012 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=49): time 2.144e-06/0.7551, allocations: 4 kB / 1.036 GB, free: 2.008 MB / 0.7794 GB Notification: Performance of matching and sorting (n=49): time 0.001239/0.7563, allocations: 0.5883 MB / 1.036 GB, free: 1.414 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.197e-05/0.7564, allocations: 59.84 kB / 1.036 GB, free: 1.344 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004881/0.7569, allocations: 442 kB / 1.037 GB, free: 0.9023 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.658e-05/0.7569, allocations: 33.7 kB / 1.037 GB, free: 0.8633 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002284/0.7572, allocations: 329 kB / 1.037 GB, free: 0.5391 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001297/0.7573, allocations: 161.6 kB / 1.037 GB, free: 388 kB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.518e-05/0.7573, allocations: 8 kB / 1.037 GB, free: 380 kB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.000157/0.7575, allocations: 366.7 kB / 1.038 GB, free: 4 kB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003723/0.7579, allocations: 173 kB / 1.038 GB, free: 15.83 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004595/0.7583, allocations: 261.8 kB / 1.038 GB, free: 15.55 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004135/0.7588, allocations: 219.9 kB / 1.038 GB, free: 15.33 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.7588, allocations: 0 / 1.038 GB, free: 15.33 MB / 0.795 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009893/0.7598, allocations: 0.5702 MB / 1.039 GB, free: 14.75 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 4.137e-05/0.7598, allocations: 33.69 kB / 1.039 GB, free: 14.71 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.246e-06/0.7598, allocations: 4 kB / 1.039 GB, free: 14.7 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.787e-05/0.7599, allocations: 4.25 kB / 1.039 GB, free: 14.7 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004929/0.7604, allocations: 119.8 kB / 1.039 GB, free: 14.58 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.35e-05/0.7604, allocations: 4 kB / 1.039 GB, free: 14.58 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003255/0.7607, allocations: 71.44 kB / 1.039 GB, free: 14.51 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.771e-05/0.7608, allocations: 20 kB / 1.039 GB, free: 14.49 MB / 0.795 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.0002772/0.761, allocations: 214.4 kB / 1.039 GB, free: 14.27 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.025e-05/0.7611, allocations: 55.33 kB / 1.039 GB, free: 14.21 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001374/0.7613, allocations: 65.59 kB / 1.039 GB, free: 14.15 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.41e-06/0.7613, allocations: 4 kB / 1.039 GB, free: 14.14 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.713e-06/0.7613, allocations: 0 / 1.039 GB, free: 14.14 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.043e-06/0.7613, allocations: 7.922 kB / 1.039 GB, free: 14.14 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001677/0.763, allocations: 1.193 MB / 1.041 GB, free: 12.89 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.975e-06/0.763, allocations: 0 / 1.041 GB, free: 12.89 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004586/0.7635, allocations: 99.88 kB / 1.041 GB, free: 12.79 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.268e-06/0.7635, allocations: 4 kB / 1.041 GB, free: 12.79 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.15e-05/0.7635, allocations: 12 kB / 1.041 GB, free: 12.77 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.885e-06/0.7635, allocations: 0 / 1.041 GB, free: 12.77 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.7635, allocations: 0 / 1.041 GB, free: 12.77 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001355/0.7649, allocations: 0.7758 MB / 1.042 GB, free: 11.98 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000169/0.7651, allocations: 164.3 kB / 1.042 GB, free: 11.8 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.026e-05/0.7651, allocations: 15.98 kB / 1.042 GB, free: 11.79 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002806/0.7654, allocations: 43.88 kB / 1.042 GB, free: 11.74 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.589e-05/0.7655, allocations: 36.38 kB / 1.042 GB, free: 11.71 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.565e-05/0.7656, allocations: 12 kB / 1.042 GB, free: 11.7 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.000436/0.766, allocations: 306.9 kB / 1.042 GB, free: 11.4 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.3e-07/0.766, allocations: 0 / 1.042 GB, free: 11.4 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0004551/0.7665, allocations: 143.5 kB / 1.042 GB, free: 11.26 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.0001489/0.7666, allocations: 115.1 kB / 1.042 GB, free: 11.14 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0008777/0.7675, allocations: 489.5 kB / 1.043 GB, free: 10.65 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.7675, allocations: 0 / 1.043 GB, free: 10.65 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0003952/0.7679, allocations: 226.3 kB / 1.043 GB, free: 10.43 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008708/0.7688, allocations: 143.8 kB / 1.043 GB, free: 10.29 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002748/0.7716, allocations: 1.625 MB / 1.045 GB, free: 8.629 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004468/0.772, allocations: 0.894 MB / 1.046 GB, free: 7.711 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.00028/0.7723, allocations: 64.58 kB / 1.046 GB, free: 7.645 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001102/0.7724, allocations: 39.44 kB / 1.046 GB, free: 7.605 MB / 0.795 GB Notification: Performance of SimCode: time 4.2e-07/0.7724, allocations: 0 / 1.046 GB, free: 7.605 MB / 0.795 GB Notification: Performance of Templates: time 0.011/0.7834, allocations: 5.357 MB / 1.051 GB, free: 2.328 MB / 0.795 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches