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.001262/0.001262, allocations: 105.7 kB / 16.37 MB, free: 6.48 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.00117/0.00117, allocations: 193.1 kB / 17.31 MB, free: 5.816 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.367/1.367, 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.561/2.561, allocations: 442.6 MB / 0.7165 GB, free: 14.69 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001306/0.001306, allocations: 64.5 kB / 0.8773 GB, free: 10.99 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3688/0.3702, allocations: 153 MB / 1.027 GB, free: 2.074 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.005512/0.3757, allocations: 4.142 MB / 1.031 GB, free: 13.91 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002652/0.3784, allocations: 1.328 MB / 1.032 GB, free: 12.57 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000385/0.3788, allocations: 19.94 kB / 1.032 GB, free: 12.55 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0003683/0.3793, allocations: 126.7 kB / 1.032 GB, free: 12.43 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.000354/0.3796, allocations: 186.4 kB / 1.032 GB, free: 12.25 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008779/0.3805, allocations: 419.1 kB / 1.033 GB, free: 11.84 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0008955/0.3814, allocations: 0.9554 MB / 1.034 GB, free: 10.88 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000596/0.382, allocations: 458.1 kB / 1.034 GB, free: 10.41 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003301/0.3824, allocations: 334.7 kB / 1.034 GB, free: 10.09 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003267/0.3827, allocations: 334.3 kB / 1.035 GB, free: 9.758 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0001007/0.3828, allocations: 92 kB / 1.035 GB, free: 9.668 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 9.773e-05/0.3829, allocations: 88 kB / 1.035 GB, free: 9.582 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001378/0.383, allocations: 171.5 kB / 1.035 GB, free: 9.414 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.000316/0.3834, allocations: 398 kB / 1.035 GB, free: 9.023 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0008694/0.3842, allocations: 1.067 MB / 1.037 GB, free: 7.953 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.3843, allocations: 0 / 1.037 GB, free: 7.953 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.483e-06/0.3843, allocations: 0 / 1.037 GB, free: 7.953 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 9.949e-06/0.3843, allocations: 0 / 1.037 GB, free: 7.953 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.00176/0.386, allocations: 1.073 MB / 1.038 GB, free: 6.824 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.032e-05/0.3861, allocations: 8.031 kB / 1.038 GB, free: 6.816 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001322/0.3862, allocations: 87.91 kB / 1.038 GB, free: 6.73 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009164/0.3872, allocations: 0.5612 MB / 1.038 GB, free: 6.125 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.049e-05/0.3872, allocations: 49.62 kB / 1.038 GB, free: 6.078 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.586e-05/0.3873, allocations: 56.38 kB / 1.038 GB, free: 6.023 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001009/0.3883, allocations: 0.6079 MB / 1.039 GB, free: 5.391 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.661e-05/0.3883, allocations: 4 kB / 1.039 GB, free: 5.387 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.44e-05/0.3884, allocations: 27.98 kB / 1.039 GB, free: 5.359 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.274e-05/0.3885, allocations: 16 kB / 1.039 GB, free: 5.344 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001008/0.3895, allocations: 461 kB / 1.039 GB, free: 4.891 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002742/0.3922, allocations: 1.989 MB / 1.041 GB, free: 2.828 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008839/0.3931, allocations: 437.7 kB / 1.042 GB, free: 2.395 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004342/0.3936, allocations: 242.9 kB / 1.042 GB, free: 2.156 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 4.381e-05/0.3936, allocations: 8.438 kB / 1.042 GB, free: 2.148 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000534/0.3942, allocations: 265.2 kB / 1.042 GB, free: 1.875 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=49): time 2.935e-06/0.3942, allocations: 3.938 kB / 1.042 GB, free: 1.871 MB / 0.8106 GB Notification: Performance of matching and sorting (n=49): time 0.001241/0.3954, allocations: 0.5773 MB / 1.043 GB, free: 1.289 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.905e-05/0.3955, allocations: 59.84 kB / 1.043 GB, free: 1.219 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005075/0.396, allocations: 449.9 kB / 1.043 GB, free: 0.7695 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.974e-05/0.3961, allocations: 37.7 kB / 1.043 GB, free: 0.7266 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002152/0.3963, allocations: 320.3 kB / 1.044 GB, free: 420 kB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001234/0.3964, allocations: 165.6 kB / 1.044 GB, free: 252 kB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001399/0.3966, allocations: 98.09 kB / 1.044 GB, free: 148 kB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001646/0.3967, allocations: 370.8 kB / 1.044 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003647/0.3971, allocations: 165 kB / 1.044 GB, free: 15.61 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004224/0.3975, allocations: 253.8 kB / 1.045 GB, free: 15.34 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007741/0.3983, allocations: 452 kB / 1.045 GB, free: 14.87 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.035e-06/0.3983, allocations: 0 / 1.045 GB, free: 14.87 MB / 0.8262 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009913/0.3993, allocations: 0.5585 MB / 1.046 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.385e-05/0.3994, allocations: 41.62 kB / 1.046 GB, free: 14.25 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.816e-06/0.3994, allocations: 0 / 1.046 GB, free: 14.25 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.151e-05/0.3994, allocations: 8 kB / 1.046 GB, free: 14.24 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004849/0.3999, allocations: 115.8 kB / 1.046 GB, free: 14.13 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.116e-05/0.3999, allocations: 4 kB / 1.046 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003242/0.4003, allocations: 59.77 kB / 1.046 GB, free: 14.07 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.036e-05/0.4003, allocations: 19.98 kB / 1.046 GB, free: 14.05 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.0002629/0.4006, allocations: 210.2 kB / 1.046 GB, free: 13.83 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.059e-05/0.4007, allocations: 59.28 kB / 1.046 GB, free: 13.77 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001351/0.4008, allocations: 65.58 kB / 1.046 GB, free: 13.71 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.121e-06/0.4008, allocations: 4 kB / 1.046 GB, free: 13.7 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.107e-06/0.4008, allocations: 4 kB / 1.046 GB, free: 13.7 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.983e-06/0.4008, allocations: 3.984 kB / 1.046 GB, free: 13.7 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001688/0.4025, allocations: 1.182 MB / 1.047 GB, free: 12.45 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.4025, allocations: 0 / 1.047 GB, free: 12.45 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000457/0.403, allocations: 95.88 kB / 1.047 GB, free: 12.36 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.29e-06/0.403, allocations: 0 / 1.047 GB, free: 12.36 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.229e-05/0.4031, allocations: 12 kB / 1.047 GB, free: 12.35 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.669e-06/0.4031, allocations: 8 kB / 1.047 GB, free: 12.34 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.4031, allocations: 0 / 1.047 GB, free: 12.34 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001243/0.4043, allocations: 0.7574 MB / 1.048 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001809/0.4045, allocations: 168.4 kB / 1.048 GB, free: 11.39 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.15e-05/0.4046, allocations: 12 kB / 1.048 GB, free: 11.38 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002724/0.4049, allocations: 19.98 kB / 1.048 GB, free: 11.36 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001017/0.405, allocations: 40.31 kB / 1.048 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.284e-05/0.405, allocations: 16 kB / 1.048 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0003361/0.4054, allocations: 306.9 kB / 1.049 GB, free: 11 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.302e-06/0.4054, allocations: 3.938 kB / 1.049 GB, free: 11 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0004455/0.4058, allocations: 147.4 kB / 1.049 GB, free: 10.86 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.0001386/0.406, allocations: 123.1 kB / 1.049 GB, free: 10.73 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0009014/0.4069, allocations: 481 kB / 1.049 GB, free: 10.25 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.4069, allocations: 0 / 1.049 GB, free: 10.25 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0004039/0.4073, allocations: 218.9 kB / 1.05 GB, free: 10.03 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007282/0.408, allocations: 161 kB / 1.05 GB, free: 9.883 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00256/0.4106, allocations: 1.33 MB / 1.051 GB, free: 8.523 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004237/0.411, allocations: 0.8899 MB / 1.052 GB, free: 7.605 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0002513/0.4113, allocations: 64.59 kB / 1.052 GB, free: 7.539 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001118/0.4114, allocations: 39.44 kB / 1.052 GB, free: 7.5 MB / 0.8262 GB Notification: Performance of SimCode: time 1.182e-06/0.4114, allocations: 0 / 1.052 GB, free: 7.5 MB / 0.8262 GB Notification: Performance of Templates: time 0.01352/0.425, allocations: 5.917 MB / 1.058 GB, free: 1.668 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 cvode -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