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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.00144/0.00144, allocations: 107.5 kB / 16.37 MB, free: 6.477 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.001831/0.001832, allocations: 193.8 kB / 17.31 MB, free: 5.824 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.337/1.337, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.462/2.462, allocations: 442.6 MB / 0.7165 GB, free: 14.71 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002124/0.002125, allocations: 65.27 kB / 0.8773 GB, free: 11.02 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2995/0.3016, allocations: 153 MB / 1.027 GB, free: 2.102 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.005533/0.3072, allocations: 4.148 MB / 1.031 GB, free: 13.93 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002556/0.3097, allocations: 1.317 MB / 1.032 GB, free: 12.61 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007372/0.3105, allocations: 23.88 kB / 1.032 GB, free: 12.59 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0005136/0.311, allocations: 130.7 kB / 1.032 GB, free: 12.46 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0006082/0.3117, allocations: 178.4 kB / 1.032 GB, free: 12.28 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.001051/0.3128, allocations: 419 kB / 1.033 GB, free: 11.88 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.001223/0.314, allocations: 0.9555 MB / 1.034 GB, free: 10.92 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006817/0.3147, allocations: 462 kB / 1.034 GB, free: 10.45 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000428/0.3151, allocations: 330.7 kB / 1.034 GB, free: 10.12 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004071/0.3156, allocations: 330.4 kB / 1.035 GB, free: 9.797 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0001387/0.3157, allocations: 92 kB / 1.035 GB, free: 9.707 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001193/0.3158, allocations: 88 kB / 1.035 GB, free: 9.621 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001514/0.316, allocations: 179.4 kB / 1.035 GB, free: 9.445 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0003807/0.3164, allocations: 398.1 kB / 1.035 GB, free: 9.055 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0009985/0.3174, allocations: 1.059 MB / 1.037 GB, free: 7.992 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.3174, allocations: 0 / 1.037 GB, free: 7.992 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.543e-06/0.3174, allocations: 0 / 1.037 GB, free: 7.992 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.103e-05/0.3174, allocations: 0 / 1.037 GB, free: 7.992 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.00205/0.3195, allocations: 1.077 MB / 1.038 GB, free: 6.859 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.65e-05/0.3195, allocations: 12.03 kB / 1.038 GB, free: 6.848 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001438/0.3197, allocations: 87.91 kB / 1.038 GB, free: 6.762 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008501/0.3205, allocations: 0.5573 MB / 1.038 GB, free: 6.16 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.485e-05/0.3206, allocations: 45.69 kB / 1.038 GB, free: 6.117 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001136/0.3207, allocations: 60.38 kB / 1.038 GB, free: 6.059 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001033/0.3217, allocations: 0.6078 MB / 1.039 GB, free: 5.426 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.195e-05/0.3218, allocations: 4 kB / 1.039 GB, free: 5.422 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.946e-05/0.3218, allocations: 24 kB / 1.039 GB, free: 5.398 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.5e-05/0.3219, allocations: 20 kB / 1.039 GB, free: 5.379 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009648/0.3228, allocations: 457 kB / 1.039 GB, free: 4.93 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002725/0.3256, allocations: 1.993 MB / 1.041 GB, free: 2.863 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008434/0.3264, allocations: 437.7 kB / 1.042 GB, free: 2.43 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004484/0.3269, allocations: 250.8 kB / 1.042 GB, free: 2.184 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.891e-05/0.3269, allocations: 8.438 kB / 1.042 GB, free: 2.176 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004997/0.3275, allocations: 261.3 kB / 1.042 GB, free: 1.906 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=49): time 1.934e-06/0.3275, allocations: 0 / 1.042 GB, free: 1.906 MB / 0.8106 GB Notification: Performance of matching and sorting (n=49): time 0.001247/0.3287, allocations: 0.585 MB / 1.043 GB, free: 1.316 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.675e-05/0.3288, allocations: 59.84 kB / 1.043 GB, free: 1.246 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000463/0.3292, allocations: 445.9 kB / 1.043 GB, free: 0.8008 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.639e-05/0.3293, allocations: 41.64 kB / 1.043 GB, free: 0.7539 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002129/0.3295, allocations: 328.2 kB / 1.044 GB, free: 440 kB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001178/0.3296, allocations: 161.7 kB / 1.044 GB, free: 276 kB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000139/0.3298, allocations: 102.1 kB / 1.044 GB, free: 168 kB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001546/0.3299, allocations: 362.8 kB / 1.044 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003757/0.3303, allocations: 165 kB / 1.044 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004329/0.3308, allocations: 249.8 kB / 1.045 GB, free: 15.37 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007886/0.3316, allocations: 452 kB / 1.045 GB, free: 14.9 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.3316, allocations: 0 / 1.045 GB, free: 14.9 MB / 0.8262 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001017/0.3326, allocations: 0.5624 MB / 1.046 GB, free: 14.32 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.656e-05/0.3327, allocations: 37.64 kB / 1.046 GB, free: 14.28 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.194e-06/0.3327, allocations: 0 / 1.046 GB, free: 14.28 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.192e-05/0.3327, allocations: 8 kB / 1.046 GB, free: 14.27 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000486/0.3332, allocations: 111.8 kB / 1.046 GB, free: 14.16 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.024e-05/0.3332, allocations: 4.25 kB / 1.046 GB, free: 14.16 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003102/0.3335, allocations: 63.5 kB / 1.046 GB, free: 14.1 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.849e-05/0.3336, allocations: 16 kB / 1.046 GB, free: 14.08 MB / 0.8262 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.0002507/0.3338, allocations: 209.7 kB / 1.046 GB, free: 13.87 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.975e-05/0.3339, allocations: 59.28 kB / 1.046 GB, free: 13.81 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000124/0.334, allocations: 65.58 kB / 1.046 GB, free: 13.74 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.22e-06/0.3341, allocations: 4 kB / 1.046 GB, free: 13.74 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.3341, allocations: 8 kB / 1.046 GB, free: 13.73 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/0.3341, allocations: 3.984 kB / 1.046 GB, free: 13.73 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001707/0.3358, allocations: 1.178 MB / 1.047 GB, free: 12.49 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/0.3358, allocations: 0 / 1.047 GB, free: 12.49 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004844/0.3363, allocations: 91.89 kB / 1.047 GB, free: 12.4 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.737e-06/0.3363, allocations: 3.938 kB / 1.047 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.421e-05/0.3363, allocations: 19.98 kB / 1.047 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.228e-06/0.3364, allocations: 4 kB / 1.047 GB, free: 12.37 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.3364, allocations: 0 / 1.047 GB, free: 12.37 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001273/0.3376, allocations: 0.7612 MB / 1.048 GB, free: 11.6 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001857/0.3378, allocations: 164.4 kB / 1.048 GB, free: 11.42 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.252e-05/0.3379, allocations: 12 kB / 1.048 GB, free: 11.41 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002805/0.3382, allocations: 23.97 kB / 1.048 GB, free: 11.38 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.042e-05/0.3383, allocations: 32.39 kB / 1.048 GB, free: 11.35 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.827e-05/0.3383, allocations: 16 kB / 1.048 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0003545/0.3387, allocations: 310.9 kB / 1.049 GB, free: 11.04 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3387, allocations: 0 / 1.049 GB, free: 11.04 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0004253/0.3391, allocations: 143.4 kB / 1.049 GB, free: 10.89 MB / 0.8262 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.0001449/0.3393, allocations: 122.4 kB / 1.049 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0008925/0.3402, allocations: 485 kB / 1.049 GB, free: 10.29 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.3402, allocations: 4.438 kB / 1.049 GB, free: 10.28 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0004039/0.3406, allocations: 218.4 kB / 1.05 GB, free: 10.07 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007045/0.3413, allocations: 167.1 kB / 1.05 GB, free: 9.906 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002438/0.3438, allocations: 1.318 MB / 1.051 GB, free: 8.559 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000426/0.3442, allocations: 0.886 MB / 1.052 GB, free: 7.645 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0002413/0.3445, allocations: 68.58 kB / 1.052 GB, free: 7.574 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001138/0.3446, allocations: 51.42 kB / 1.052 GB, free: 7.523 MB / 0.8262 GB Notification: Performance of SimCode: time 4.81e-07/0.3446, allocations: 0 / 1.052 GB, free: 7.523 MB / 0.8262 GB Notification: Performance of Templates: time 0.01081/0.3554, allocations: 5.909 MB / 1.058 GB, free: 1.703 MB / 0.8262 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 -s gbode -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