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.001001/0.001001, allocations: 99.39 kB / 15.05 MB, free: 1.105 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.001057/0.001057, allocations: 177.3 kB / 15.94 MB, free: 228 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.423/1.423, allocations: 223.2 MB / 239.9 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.772/2.772, allocations: 436.5 MB / 0.7104 GB, free: 7.887 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003685/0.0003686, allocations: 11.98 kB / 0.8708 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8645/0.8649, allocations: 153.7 MB / 1.021 GB, free: 1.285 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.00112/0.866, allocations: 477.5 kB / 1.021 GB, free: 0.8164 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001451/0.8675, allocations: 1.117 MB / 1.022 GB, free: 15.68 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.525e-05/0.8676, allocations: 0 / 1.022 GB, free: 15.68 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.363e-05/0.8676, allocations: 3.938 kB / 1.022 GB, free: 15.68 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 7.726e-05/0.8677, allocations: 15.97 kB / 1.022 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005133/0.8682, allocations: 119.2 kB / 1.022 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001055/0.8683, allocations: 63.92 kB / 1.023 GB, free: 15.49 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001126/0.8684, allocations: 20.16 kB / 1.023 GB, free: 15.46 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 9.939e-05/0.8685, allocations: 43.89 kB / 1.023 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 8.102e-05/0.8686, allocations: 31.84 kB / 1.023 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.268e-05/0.8687, allocations: 8 kB / 1.023 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 6.028e-05/0.8687, allocations: 19.98 kB / 1.023 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2e-05/0.8688, allocations: 3.984 kB / 1.023 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 5.687e-05/0.8688, allocations: 45.64 kB / 1.023 GB, free: 15.31 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001348/0.869, allocations: 83.8 kB / 1.023 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.564e-06/0.869, allocations: 0 / 1.023 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.984e-06/0.869, allocations: 0 / 1.023 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.529e-06/0.869, allocations: 0 / 1.023 GB, free: 15.23 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006004/0.8696, allocations: 403 kB / 1.023 GB, free: 14.78 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.061e-05/0.8696, allocations: 11.98 kB / 1.023 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.274e-05/0.8697, allocations: 15.91 kB / 1.023 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000131/0.8698, allocations: 178.9 kB / 1.023 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.696e-05/0.8699, allocations: 8 kB / 1.023 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.382e-05/0.8699, allocations: 11.94 kB / 1.023 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002172/0.8701, allocations: 81.61 kB / 1.023 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.694e-06/0.8702, allocations: 0 / 1.023 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.243e-05/0.8702, allocations: 0 / 1.023 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.091e-06/0.8702, allocations: 0 / 1.023 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002049/0.8704, allocations: 59.95 kB / 1.024 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005513/0.871, allocations: 348.6 kB / 1.024 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001821/0.8711, allocations: 66.55 kB / 1.024 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.536e-05/0.8712, allocations: 0 / 1.024 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002295/0.8714, allocations: 111.4 kB / 1.024 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=8): time 1.583e-06/0.8714, allocations: 0 / 1.024 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of matching and sorting (n=8): time 0.0004737/0.8719, allocations: 165.5 kB / 1.024 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.463e-05/0.872, allocations: 51.41 kB / 1.024 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001186/0.8721, allocations: 125.8 kB / 1.024 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.723e-05/0.8721, allocations: 25.7 kB / 1.024 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.873e-05/0.8722, allocations: 96.05 kB / 1.024 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.487e-05/0.8722, allocations: 19.73 kB / 1.025 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.48e-05/0.8722, allocations: 8 kB / 1.025 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001235/0.8724, allocations: 326.8 kB / 1.025 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001501/0.8725, allocations: 51.97 kB / 1.025 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001769/0.8727, allocations: 97.55 kB / 1.025 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001651/0.8729, allocations: 85.67 kB / 1.025 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.8729, allocations: 0 / 1.025 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004173/0.8733, allocations: 223.1 kB / 1.025 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 4.114e-05/0.8734, allocations: 33.7 kB / 1.025 GB, free: 12.42 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.8734, allocations: 0 / 1.025 GB, free: 12.42 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.84e-05/0.8734, allocations: 7.984 kB / 1.025 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001093/0.8735, allocations: 20.09 kB / 1.025 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.03e-05/0.8735, allocations: 7.984 kB / 1.025 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002305/0.8738, allocations: 51.81 kB / 1.025 GB, free: 12.33 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.174e-05/0.8738, allocations: 7.984 kB / 1.025 GB, free: 12.32 MB / 0.7794 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 0.0001055/0.8739, allocations: 127.9 kB / 1.026 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.438e-05/0.8739, allocations: 8 kB / 1.026 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003162/0.8743, allocations: 141.8 kB / 1.026 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.8743, allocations: 4 kB / 1.026 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.87e-06/0.8743, allocations: 0 / 1.026 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.357e-06/0.8743, allocations: 3.938 kB / 1.026 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004289/0.8747, allocations: 378.5 kB / 1.026 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.579e-06/0.8747, allocations: 4 kB / 1.026 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.138e-05/0.8748, allocations: 19.86 kB / 1.026 GB, free: 11.58 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.494e-06/0.8748, allocations: 0 / 1.026 GB, free: 11.58 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.405e-05/0.8748, allocations: 4 kB / 1.026 GB, free: 11.58 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.755e-06/0.8748, allocations: 8 kB / 1.026 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.8749, allocations: 3.984 kB / 1.026 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003075/0.8752, allocations: 227.3 kB / 1.026 GB, free: 11.33 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.629e-05/0.8752, allocations: 81.11 kB / 1.026 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.685e-05/0.8752, allocations: 0 / 1.026 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.47e-05/0.8753, allocations: 11.98 kB / 1.026 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.957e-05/0.8754, allocations: 4 kB / 1.026 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.656e-06/0.8754, allocations: 11.98 kB / 1.026 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.185e-05/0.8754, allocations: 91.33 kB / 1.026 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1e-07/0.8754, allocations: 0 / 1.026 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002584/0.8757, allocations: 27.98 kB / 1.026 GB, free: 11.09 MB / 0.7794 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.0001586/0.8759, allocations: 103.2 kB / 1.027 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.000406/0.8763, allocations: 191.8 kB / 1.027 GB, free: 10.78 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.8763, allocations: 0 / 1.027 GB, free: 10.78 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001196/0.8764, allocations: 39.97 kB / 1.027 GB, free: 10.74 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002116/0.8766, allocations: 12.27 kB / 1.027 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003823/0.877, allocations: 204.8 kB / 1.027 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002448/0.8773, allocations: 0.7004 MB / 1.028 GB, free: 9.773 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.124e-05/0.8773, allocations: 8 kB / 1.028 GB, free: 9.766 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.114e-05/0.8774, allocations: 11.44 kB / 1.028 GB, free: 9.754 MB / 0.7794 GB Notification: Performance of SimCode: time 3.2e-07/0.8774, allocations: 0 / 1.028 GB, free: 9.754 MB / 0.7794 GB Notification: Performance of Templates: time 0.003841/0.8812, allocations: 1.265 MB / 1.029 GB, free: 8.504 MB / 0.7794 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","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches