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: "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="Buildings_10_Buildings_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="Buildings_10_Buildings_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008328/0.0008327, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.004668/0.004668, allocations: 170 kB / 16.26 MB, free: 6.613 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.186/1.186, allocations: 223.3 MB / 240.3 MB, free: 5.32 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.296/2.296, allocations: 437.8 MB / 0.7121 GB, free: 6.984 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0002892/0.0002892, allocations: 8 kB / 0.8729 GB, free: 3.242 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.53/0.5303, allocations: 153.8 MB / 1.023 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.004023/0.5344, allocations: 3.732 MB / 1.027 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002263/0.5367, allocations: 1.266 MB / 1.028 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004685/0.5371, allocations: 31.81 kB / 1.028 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0002943/0.5375, allocations: 91.22 kB / 1.028 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0004164/0.5379, allocations: 150.8 kB / 1.028 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007992/0.5387, allocations: 375.2 kB / 1.029 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0009094/0.5396, allocations: 0.8771 MB / 1.029 GB, free: 9.324 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006064/0.5402, allocations: 426.1 kB / 1.03 GB, free: 8.887 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003192/0.5406, allocations: 234.7 kB / 1.03 GB, free: 8.656 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003075/0.5409, allocations: 254.4 kB / 1.03 GB, free: 8.406 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 6.679e-05/0.5409, allocations: 24 kB / 1.03 GB, free: 8.383 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 6.82e-05/0.541, allocations: 27.94 kB / 1.03 GB, free: 8.355 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 8.494e-05/0.5411, allocations: 99.42 kB / 1.03 GB, free: 8.258 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0002861/0.5414, allocations: 331.8 kB / 1.031 GB, free: 7.926 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0007465/0.5422, allocations: 0.9557 MB / 1.032 GB, free: 6.969 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5e-06/0.5422, allocations: 0 / 1.032 GB, free: 6.969 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.603e-06/0.5422, allocations: 3.938 kB / 1.032 GB, free: 6.965 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 2.338e-05/0.5422, allocations: 0 / 1.032 GB, free: 6.965 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.001593/0.5438, allocations: 0.9501 MB / 1.033 GB, free: 5.961 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.384e-05/0.5438, allocations: 16.02 kB / 1.033 GB, free: 5.945 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001141/0.544, allocations: 102.6 kB / 1.033 GB, free: 5.836 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001162/0.5441, allocations: 83.91 kB / 1.033 GB, free: 5.754 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007377/0.5448, allocations: 0.5572 MB / 1.033 GB, free: 5.152 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.04e-05/0.5449, allocations: 41.69 kB / 1.033 GB, free: 5.113 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.319e-05/0.545, allocations: 60.38 kB / 1.034 GB, free: 5.055 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00101/0.546, allocations: 0.6116 MB / 1.034 GB, free: 4.418 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.841e-05/0.546, allocations: 3.938 kB / 1.034 GB, free: 4.414 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.792e-05/0.5461, allocations: 23.98 kB / 1.034 GB, free: 4.391 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.366e-05/0.5461, allocations: 16 kB / 1.034 GB, free: 4.375 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000913/0.547, allocations: 472.9 kB / 1.035 GB, free: 3.914 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0025/0.5495, allocations: 2.016 MB / 1.037 GB, free: 1.824 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008585/0.5504, allocations: 454.1 kB / 1.037 GB, free: 1.375 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004275/0.5508, allocations: 250.6 kB / 1.037 GB, free: 1.129 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.205e-05/0.5509, allocations: 4.438 kB / 1.037 GB, free: 1.125 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000524/0.5514, allocations: 277.2 kB / 1.038 GB, free: 0.8398 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=49): time 3.256e-06/0.5514, allocations: 0 / 1.038 GB, free: 0.8398 MB / 0.7794 GB Notification: Performance of matching and sorting (n=49): time 0.001184/0.5526, allocations: 0.6077 MB / 1.038 GB, free: 232 kB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.029e-05/0.5526, allocations: 55.84 kB / 1.038 GB, free: 164 kB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004483/0.5531, allocations: 442 kB / 1.039 GB, free: 15.72 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.433e-05/0.5531, allocations: 37.7 kB / 1.039 GB, free: 15.68 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002027/0.5533, allocations: 321 kB / 1.039 GB, free: 15.36 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001154/0.5535, allocations: 169.5 kB / 1.039 GB, free: 15.19 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.277e-05/0.5535, allocations: 49.7 kB / 1.039 GB, free: 15.14 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.000135/0.5537, allocations: 370.8 kB / 1.039 GB, free: 14.77 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003673/0.554, allocations: 169 kB / 1.04 GB, free: 14.6 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004079/0.5545, allocations: 253.8 kB / 1.04 GB, free: 14.33 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007717/0.5552, allocations: 464 kB / 1.04 GB, free: 13.84 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.5553, allocations: 4 kB / 1.04 GB, free: 13.84 MB / 0.795 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009589/0.5562, allocations: 0.578 MB / 1.041 GB, free: 13.25 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 3.618e-05/0.5563, allocations: 31.73 kB / 1.041 GB, free: 13.21 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.223e-06/0.5563, allocations: 4 kB / 1.041 GB, free: 13.21 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.327e-05/0.5563, allocations: 4 kB / 1.041 GB, free: 13.21 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004539/0.5568, allocations: 115.8 kB / 1.041 GB, free: 13.09 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.397e-06/0.5568, allocations: 4 kB / 1.041 GB, free: 13.09 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003184/0.5571, allocations: 71.66 kB / 1.041 GB, free: 13.02 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.088e-05/0.5571, allocations: 20 kB / 1.041 GB, free: 13 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 (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.000222/0.5574, allocations: 206.3 kB / 1.041 GB, free: 12.79 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.954e-05/0.5574, allocations: 59.27 kB / 1.041 GB, free: 12.73 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001255/0.5576, allocations: 65.59 kB / 1.041 GB, free: 12.67 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.5576, allocations: 8 kB / 1.041 GB, free: 12.66 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.199e-06/0.5576, allocations: 3.938 kB / 1.041 GB, free: 12.66 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.5576, allocations: 3.984 kB / 1.041 GB, free: 12.65 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001589/0.5592, allocations: 1.197 MB / 1.043 GB, free: 11.39 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.5592, allocations: 0 / 1.043 GB, free: 11.39 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004393/0.5597, allocations: 99.88 kB / 1.043 GB, free: 11.3 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.996e-06/0.5597, allocations: 0 / 1.043 GB, free: 11.3 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.897e-05/0.5597, allocations: 16 kB / 1.043 GB, free: 11.28 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.486e-06/0.5597, allocations: 4 kB / 1.043 GB, free: 11.28 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.5597, allocations: 0 / 1.043 GB, free: 11.28 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001264/0.561, allocations: 0.7835 MB / 1.044 GB, free: 10.48 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001592/0.5612, allocations: 172.3 kB / 1.044 GB, free: 10.29 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.356e-05/0.5612, allocations: 11.94 kB / 1.044 GB, free: 10.28 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002949/0.5615, allocations: 31.97 kB / 1.044 GB, free: 10.25 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.727e-05/0.5616, allocations: 36.38 kB / 1.044 GB, free: 10.21 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.319e-05/0.5617, allocations: 12 kB / 1.044 GB, free: 10.2 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0003054/0.562, allocations: 310.9 kB / 1.044 GB, free: 9.902 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.2e-07/0.562, allocations: 4 kB / 1.044 GB, free: 9.898 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0004049/0.5624, allocations: 147.4 kB / 1.044 GB, free: 9.754 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 (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.001517/0.5639, allocations: 1.325 MB / 1.046 GB, free: 8.398 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0008476/0.5648, allocations: 493 kB / 1.046 GB, free: 7.906 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.5648, allocations: 0 / 1.046 GB, free: 7.906 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0003959/0.5652, allocations: 230.8 kB / 1.046 GB, free: 7.68 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007151/0.5659, allocations: 134.6 kB / 1.046 GB, free: 7.547 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007003/0.5729, allocations: 5.261 MB / 1.051 GB, free: 2.145 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004007/0.5733, allocations: 0.8824 MB / 1.052 GB, free: 1.234 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0002595/0.5736, allocations: 64.58 kB / 1.052 GB, free: 1.172 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002766/0.5739, allocations: 219.4 kB / 1.053 GB, free: 0.957 MB / 0.795 GB Notification: Performance of SimCode: time 6.51e-07/0.5739, allocations: 0 / 1.053 GB, free: 0.957 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3564/0.9303, allocations: 10.52 MB / 1.063 GB, free: 6.641 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001978/0.9305, allocations: 208 kB / 1.063 GB, free: 6.383 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.404/3.334, allocations: 0 / 1.063 GB, free: 6.383 MB / 0.8106 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_Continuous_Examples_LimPIDWithReset_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_Continuous_Examples_LimPIDWithReset.fmu > 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