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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001544/0.001544, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002098/0.002098, allocations: 188.8 kB / 16.25 MB, free: 6.645 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.555/1.555, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.092/3.092, allocations: 472.6 MB / 0.7448 GB, free: 4.898 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001366/0.001366, allocations: 71.16 kB / 0.9116 GB, free: 33.53 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3762/0.3776, allocations: 159.9 MB / 1.068 GB, free: 10.76 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.002308/0.38, allocations: 0.8164 MB / 1.069 GB, free: 9.945 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001531/0.3815, allocations: 1.158 MB / 1.07 GB, free: 8.773 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.797e-05/0.3816, allocations: 7.938 kB / 1.07 GB, free: 8.766 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.915e-05/0.3817, allocations: 3.984 kB / 1.07 GB, free: 8.762 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 8.965e-05/0.3818, allocations: 11.86 kB / 1.07 GB, free: 8.75 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005501/0.3824, allocations: 123.3 kB / 1.07 GB, free: 8.633 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.000195/0.3826, allocations: 127.8 kB / 1.07 GB, free: 8.508 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001461/0.3827, allocations: 32.09 kB / 1.07 GB, free: 8.473 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001056/0.3828, allocations: 55.89 kB / 1.07 GB, free: 8.418 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 8.579e-05/0.3829, allocations: 39.83 kB / 1.07 GB, free: 8.379 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.654e-05/0.3829, allocations: 12 kB / 1.07 GB, free: 8.367 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 8.789e-05/0.383, allocations: 27.98 kB / 1.07 GB, free: 8.34 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.505e-05/0.3831, allocations: 7.984 kB / 1.07 GB, free: 8.332 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 8.112e-05/0.3832, allocations: 55.78 kB / 1.07 GB, free: 8.277 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001885/0.3834, allocations: 107.7 kB / 1.07 GB, free: 8.172 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 7.914e-06/0.3834, allocations: 4 kB / 1.07 GB, free: 8.168 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.663e-06/0.3834, allocations: 0 / 1.07 GB, free: 8.168 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.174e-06/0.3834, allocations: 0 / 1.07 GB, free: 8.168 MB / 0.8262 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.0006667/0.3841, allocations: 429.1 kB / 1.071 GB, free: 7.695 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.759e-05/0.3841, allocations: 12.03 kB / 1.071 GB, free: 7.684 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.887e-05/0.3842, allocations: 8.844 kB / 1.071 GB, free: 7.676 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001372/0.3843, allocations: 176.2 kB / 1.071 GB, free: 7.465 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.766e-05/0.3843, allocations: 4.375 kB / 1.071 GB, free: 7.461 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.418e-05/0.3844, allocations: 8.375 kB / 1.071 GB, free: 7.453 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002062/0.3846, allocations: 70.22 kB / 1.071 GB, free: 7.379 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.009e-05/0.3846, allocations: 7.938 kB / 1.071 GB, free: 7.371 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.356e-05/0.3846, allocations: 4 kB / 1.071 GB, free: 7.367 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.3846, allocations: 0 / 1.071 GB, free: 7.367 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001838/0.3848, allocations: 47.89 kB / 1.071 GB, free: 7.32 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005336/0.3854, allocations: 348.6 kB / 1.071 GB, free: 6.93 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001771/0.3856, allocations: 62.64 kB / 1.071 GB, free: 6.859 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.565e-05/0.3857, allocations: 32.91 kB / 1.071 GB, free: 6.824 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.114e-05/0.3857, allocations: 0 / 1.071 GB, free: 6.824 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002662/0.386, allocations: 95.27 kB / 1.072 GB, free: 6.719 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=8): time 1.523e-06/0.386, allocations: 0 / 1.072 GB, free: 6.719 MB / 0.8262 GB Notification: Performance of matching and sorting (n=8): time 0.0004537/0.3864, allocations: 141.6 kB / 1.072 GB, free: 6.574 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.915e-05/0.3865, allocations: 59.34 kB / 1.072 GB, free: 6.504 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.726e-05/0.3866, allocations: 125.7 kB / 1.072 GB, free: 6.371 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.421e-05/0.3866, allocations: 29.64 kB / 1.072 GB, free: 6.336 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.468e-05/0.3867, allocations: 96.12 kB / 1.072 GB, free: 6.238 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.402e-05/0.3867, allocations: 23.66 kB / 1.072 GB, free: 6.215 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.911e-05/0.3868, allocations: 41.69 kB / 1.072 GB, free: 6.168 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001177/0.3869, allocations: 322.8 kB / 1.072 GB, free: 5.844 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001625/0.3871, allocations: 47.95 kB / 1.072 GB, free: 5.797 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001735/0.3873, allocations: 97.05 kB / 1.072 GB, free: 5.684 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002601/0.3875, allocations: 142.8 kB / 1.073 GB, free: 5.52 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.3876, allocations: 8 kB / 1.073 GB, free: 5.512 MB / 0.8262 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000423/0.388, allocations: 211.1 kB / 1.073 GB, free: 5.293 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 5.412e-05/0.3881, allocations: 43.09 kB / 1.073 GB, free: 5.246 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.183e-06/0.3881, allocations: 4 kB / 1.073 GB, free: 5.242 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.563e-05/0.3881, allocations: 0 / 1.073 GB, free: 5.242 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00011/0.3882, allocations: 19.92 kB / 1.073 GB, free: 5.223 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.033e-06/0.3882, allocations: 4.156 kB / 1.073 GB, free: 5.219 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002116/0.3884, allocations: 31.95 kB / 1.073 GB, free: 5.188 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.577e-05/0.3885, allocations: 12.05 kB / 1.073 GB, free: 5.176 MB / 0.8262 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 (triSam1.y,$PRE.triSam1.y,triSam.y,$PRE.triSam.y,booPul.y,$PRE.booPul.y,$whenCondition3,$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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000102/0.3886, allocations: 123.3 kB / 1.073 GB, free: 5.047 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.745e-05/0.3886, allocations: 19.81 kB / 1.073 GB, free: 5.027 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002987/0.3889, allocations: 118 kB / 1.073 GB, free: 4.906 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.988e-06/0.3889, allocations: 4 kB / 1.073 GB, free: 4.902 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.077e-06/0.3889, allocations: 0 / 1.073 GB, free: 4.902 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.3889, allocations: 0 / 1.073 GB, free: 4.902 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004335/0.3894, allocations: 386.3 kB / 1.074 GB, free: 4.469 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.734e-06/0.3894, allocations: 0 / 1.074 GB, free: 4.469 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.295e-05/0.3894, allocations: 15.98 kB / 1.074 GB, free: 4.453 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.3895, allocations: 0 / 1.074 GB, free: 4.453 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.155e-05/0.3895, allocations: 0 / 1.074 GB, free: 4.453 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.3895, allocations: 480 / 1.074 GB, free: 4.453 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.668e-06/0.3895, allocations: 3.938 kB / 1.074 GB, free: 4.449 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002984/0.3898, allocations: 219.4 kB / 1.074 GB, free: 4.219 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.763e-05/0.3898, allocations: 81.02 kB / 1.074 GB, free: 4.121 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.848e-05/0.3899, allocations: 4 kB / 1.074 GB, free: 4.117 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.584e-05/0.39, allocations: 11.98 kB / 1.074 GB, free: 4.105 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.761e-05/0.39, allocations: 15.86 kB / 1.074 GB, free: 4.09 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.118e-06/0.39, allocations: 4 kB / 1.074 GB, free: 4.086 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.882e-05/0.3901, allocations: 91.27 kB / 1.074 GB, free: 3.996 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3901, allocations: 0 / 1.074 GB, free: 3.996 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002629/0.3904, allocations: 24 kB / 1.074 GB, free: 3.973 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 (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.000163/0.3905, allocations: 115.1 kB / 1.074 GB, free: 3.852 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003879/0.3909, allocations: 179.3 kB / 1.074 GB, free: 3.664 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.3909, allocations: 0 / 1.074 GB, free: 3.664 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001268/0.3911, allocations: 39.92 kB / 1.074 GB, free: 3.625 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002856/0.3914, allocations: 12.97 kB / 1.074 GB, free: 3.613 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003899/0.3918, allocations: 195.3 kB / 1.074 GB, free: 3.398 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002691/0.392, allocations: 0.6846 MB / 1.075 GB, free: 2.688 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.832e-05/0.3921, allocations: 15.77 kB / 1.075 GB, free: 2.672 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.648e-05/0.3921, allocations: 11.44 kB / 1.075 GB, free: 2.66 MB / 0.8262 GB Notification: Performance of SimCode: time 2.21e-07/0.3921, allocations: 0 / 1.075 GB, free: 2.66 MB / 0.8262 GB Notification: Performance of Templates: time 0.003964/0.3961, allocations: 1.375 MB / 1.077 GB, free: 1.305 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