Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.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.OBC.CDL.Discrete.Validation.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001432/0.001431, allocations: 92.31 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.001958/0.001958, 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.504/1.504, 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 11.0.0-master/package.mo): time 2.872/2.872, allocations: 462.6 MB / 0.736 GB, free: 15.79 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.000425/0.0004252, allocations: 9.469 kB / 0.9021 GB, free: 36.68 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3543/0.3548, allocations: 159.6 MB / 1.058 GB, free: 5.359 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.001052/0.3559, allocations: 471 kB / 1.058 GB, free: 4.902 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001554/0.3574, allocations: 1.147 MB / 1.06 GB, free: 3.742 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.797e-05/0.3575, allocations: 0 / 1.06 GB, free: 3.742 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.898e-05/0.3575, allocations: 3.938 kB / 1.06 GB, free: 3.738 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.697e-05/0.3576, allocations: 7.922 kB / 1.06 GB, free: 3.73 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004935/0.3581, allocations: 118.8 kB / 1.06 GB, free: 3.617 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001418/0.3583, allocations: 99.75 kB / 1.06 GB, free: 3.52 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001051/0.3584, allocations: 20.17 kB / 1.06 GB, free: 3.496 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 9.593e-05/0.3585, allocations: 43.89 kB / 1.06 GB, free: 3.453 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.359e-05/0.3586, allocations: 35.89 kB / 1.06 GB, free: 3.418 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.292e-05/0.3586, allocations: 4 kB / 1.06 GB, free: 3.414 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.442e-05/0.3587, allocations: 19.94 kB / 1.06 GB, free: 3.395 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.324e-05/0.3587, allocations: 11.98 kB / 1.06 GB, free: 3.383 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.254e-05/0.3588, allocations: 37.64 kB / 1.06 GB, free: 3.34 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001386/0.3589, allocations: 87.8 kB / 1.06 GB, free: 3.254 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.269e-06/0.3589, allocations: 4 kB / 1.06 GB, free: 3.25 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.715e-06/0.3589, allocations: 0 / 1.06 GB, free: 3.25 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.99e-06/0.3589, allocations: 0 / 1.06 GB, free: 3.25 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005936/0.3595, allocations: 401 kB / 1.06 GB, free: 2.805 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.222e-05/0.3596, allocations: 12.03 kB / 1.06 GB, free: 2.793 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.51e-05/0.3597, allocations: 7.906 kB / 1.06 GB, free: 2.785 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001439/0.3598, allocations: 179 kB / 1.061 GB, free: 2.57 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.252e-05/0.3598, allocations: 8 kB / 1.061 GB, free: 2.562 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.453e-05/0.3599, allocations: 11.95 kB / 1.061 GB, free: 2.551 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002144/0.3601, allocations: 81.59 kB / 1.061 GB, free: 2.465 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.347e-06/0.3601, allocations: 0 / 1.061 GB, free: 2.465 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.296e-05/0.3601, allocations: 0 / 1.061 GB, free: 2.465 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.65e-06/0.3601, allocations: 0 / 1.061 GB, free: 2.465 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001858/0.3603, allocations: 59.95 kB / 1.061 GB, free: 2.406 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005209/0.3609, allocations: 348.5 kB / 1.061 GB, free: 2.016 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001807/0.361, allocations: 70.55 kB / 1.061 GB, free: 1.938 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.645e-05/0.3612, allocations: 32.97 kB / 1.061 GB, free: 1.902 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.201e-05/0.3612, allocations: 3.938 kB / 1.061 GB, free: 1.898 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002536/0.3614, allocations: 95.27 kB / 1.061 GB, free: 1.793 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=8): time 5.079e-06/0.3615, allocations: 96 / 1.061 GB, free: 1.793 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8): time 0.0004475/0.3619, allocations: 173.5 kB / 1.061 GB, free: 1.617 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.606e-05/0.362, allocations: 51.41 kB / 1.062 GB, free: 1.555 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.596e-05/0.3621, allocations: 121.7 kB / 1.062 GB, free: 1.426 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.782e-05/0.3621, allocations: 33.7 kB / 1.062 GB, free: 1.387 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.112e-05/0.3622, allocations: 88.14 kB / 1.062 GB, free: 1.297 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.551e-05/0.3622, allocations: 23.66 kB / 1.062 GB, free: 1.273 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.124e-05/0.3622, allocations: 4 kB / 1.062 GB, free: 1.27 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001366/0.3624, allocations: 326.8 kB / 1.062 GB, free: 0.9414 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001468/0.3625, allocations: 55.95 kB / 1.062 GB, free: 0.8867 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001814/0.3627, allocations: 101 kB / 1.062 GB, free: 0.7695 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001622/0.3629, allocations: 89.62 kB / 1.062 GB, free: 0.6758 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.3629, allocations: 0 / 1.062 GB, free: 0.6758 MB / 0.8106 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004232/0.3633, allocations: 219.2 kB / 1.063 GB, free: 460 kB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 4.402e-05/0.3634, allocations: 37.7 kB / 1.063 GB, free: 416 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.3634, allocations: 0 / 1.063 GB, free: 416 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.551e-05/0.3634, allocations: 8.203 kB / 1.063 GB, free: 408 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000102/0.3635, allocations: 23.97 kB / 1.063 GB, free: 384 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.025e-06/0.3635, allocations: 4.25 kB / 1.063 GB, free: 380 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002177/0.3637, allocations: 51.86 kB / 1.063 GB, free: 328 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.91e-05/0.3638, allocations: 12 kB / 1.063 GB, free: 316 kB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.triSam1.y,triSam1.y,$PRE.triSam.y,triSam.y,$whenCondition3,$PRE.booPul.y,booPul.y,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * 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 9.665e-05/0.3639, allocations: 125.8 kB / 1.063 GB, free: 180 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.364e-05/0.3639, allocations: 7.906 kB / 1.063 GB, free: 172 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002963/0.3642, allocations: 141.9 kB / 1.063 GB, free: 24 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-06/0.3642, allocations: 0 / 1.063 GB, free: 24 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.3642, allocations: 0 / 1.063 GB, free: 24 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.3642, allocations: 3.984 kB / 1.063 GB, free: 20 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000444/0.3647, allocations: 382.5 kB / 1.063 GB, free: 15.59 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.3647, allocations: 4 kB / 1.063 GB, free: 15.59 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.849e-05/0.3648, allocations: 11.98 kB / 1.063 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.3648, allocations: 0 / 1.063 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.047e-06/0.3648, allocations: 0 / 1.063 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.3648, allocations: 0 / 1.063 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.3648, allocations: 4 kB / 1.063 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003008/0.3651, allocations: 231.3 kB / 1.064 GB, free: 15.33 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.527e-05/0.3652, allocations: 88.95 kB / 1.064 GB, free: 15.22 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.986e-05/0.3652, allocations: 7.984 kB / 1.064 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.977e-05/0.3653, allocations: 8 kB / 1.064 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.598e-05/0.3653, allocations: 7.984 kB / 1.064 GB, free: 15.2 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.046e-06/0.3653, allocations: 4 kB / 1.064 GB, free: 15.2 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.206e-05/0.3654, allocations: 95.2 kB / 1.064 GB, free: 15.1 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1e-07/0.3654, allocations: 0 / 1.064 GB, free: 15.1 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002623/0.3657, allocations: 24 kB / 1.064 GB, free: 15.08 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triSam.y,triSam1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001519/0.3658, allocations: 111.2 kB / 1.064 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003791/0.3662, allocations: 191.3 kB / 1.064 GB, free: 14.76 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.3662, allocations: 3.938 kB / 1.064 GB, free: 14.76 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001144/0.3663, allocations: 39.98 kB / 1.064 GB, free: 14.72 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002792/0.3666, allocations: 20.25 kB / 1.064 GB, free: 14.7 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003574/0.367, allocations: 193 kB / 1.064 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002517/0.3673, allocations: 0.6965 MB / 1.065 GB, free: 13.76 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.142e-05/0.3673, allocations: 4 kB / 1.065 GB, free: 13.75 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.192e-05/0.3673, allocations: 11.44 kB / 1.065 GB, free: 13.74 MB / 0.8262 GB Notification: Performance of SimCode: time 3.41e-07/0.3673, allocations: 0 / 1.065 GB, free: 13.74 MB / 0.8262 GB Notification: Performance of Templates: time 0.004508/0.3718, allocations: 1.269 MB / 1.066 GB, free: 12.49 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches