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.001403/0.001403, allocations: 110.4 kB / 16.37 MB, free: 5.539 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.001274/0.001275, allocations: 197.1 kB / 17.31 MB, free: 5.18 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.454/1.454, allocations: 222.9 MB / 241 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.504/2.504, allocations: 442.6 MB / 0.7165 GB, free: 14.65 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001258/0.001258, allocations: 64.66 kB / 0.8773 GB, free: 10.96 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3608/0.3621, allocations: 153 MB / 1.027 GB, free: 2.035 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.002078/0.3642, allocations: 0.7772 MB / 1.027 GB, free: 1.266 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001484/0.3657, allocations: 1.151 MB / 1.029 GB, free: 100 kB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.529e-05/0.3658, allocations: 3.938 kB / 1.029 GB, free: 96 kB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 3.104e-05/0.3658, allocations: 3.938 kB / 1.029 GB, free: 92 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 8.226e-05/0.3659, allocations: 19.86 kB / 1.029 GB, free: 72 kB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005429/0.3665, allocations: 131.4 kB / 1.029 GB, free: 15.95 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002058/0.3667, allocations: 127.7 kB / 1.029 GB, free: 15.82 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001404/0.3668, allocations: 32.16 kB / 1.029 GB, free: 15.79 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000105/0.3669, allocations: 43.91 kB / 1.029 GB, free: 15.74 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001069/0.3671, allocations: 51.81 kB / 1.029 GB, free: 15.69 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.978e-05/0.3671, allocations: 15.98 kB / 1.029 GB, free: 15.68 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.311e-05/0.3672, allocations: 23.98 kB / 1.029 GB, free: 15.65 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.07e-05/0.3672, allocations: 11.94 kB / 1.029 GB, free: 15.64 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 7.475e-05/0.3673, allocations: 43.84 kB / 1.029 GB, free: 15.6 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001997/0.3675, allocations: 127.7 kB / 1.029 GB, free: 15.47 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/0.3675, allocations: 3.938 kB / 1.029 GB, free: 15.47 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.645e-06/0.3675, allocations: 0 / 1.029 GB, free: 15.47 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.041e-06/0.3675, allocations: 0 / 1.029 GB, free: 15.47 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.0006124/0.3682, allocations: 420.9 kB / 1.03 GB, free: 15 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.3682, allocations: 8.031 kB / 1.03 GB, free: 15 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.166e-05/0.3683, allocations: 12.84 kB / 1.03 GB, free: 14.98 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001324/0.3684, allocations: 176.3 kB / 1.03 GB, free: 14.77 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.85e-05/0.3684, allocations: 4.375 kB / 1.03 GB, free: 14.77 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.676e-05/0.3685, allocations: 16.38 kB / 1.03 GB, free: 14.75 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002019/0.3687, allocations: 70.16 kB / 1.03 GB, free: 14.68 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.138e-05/0.3687, allocations: 3.938 kB / 1.03 GB, free: 14.68 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.428e-05/0.3687, allocations: 0 / 1.03 GB, free: 14.68 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.793e-06/0.3687, allocations: 7.938 kB / 1.03 GB, free: 14.67 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001825/0.3689, allocations: 43.95 kB / 1.03 GB, free: 14.62 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000526/0.3694, allocations: 348.6 kB / 1.03 GB, free: 14.23 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001752/0.3696, allocations: 58.55 kB / 1.03 GB, free: 14.17 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.096e-05/0.3697, allocations: 32.91 kB / 1.03 GB, free: 14.13 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.162e-05/0.3698, allocations: 0 / 1.03 GB, free: 14.13 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002329/0.37, allocations: 91.36 kB / 1.03 GB, free: 14.03 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=8): time 1.392e-06/0.37, allocations: 0 / 1.03 GB, free: 14.03 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8): time 0.0004493/0.3705, allocations: 153.5 kB / 1.031 GB, free: 13.88 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.388e-05/0.3705, allocations: 59.41 kB / 1.031 GB, free: 13.8 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.818e-05/0.3706, allocations: 117.8 kB / 1.031 GB, free: 13.68 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.807e-05/0.3707, allocations: 33.7 kB / 1.031 GB, free: 13.64 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.207e-05/0.3707, allocations: 96.03 kB / 1.031 GB, free: 13.54 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.225e-05/0.3708, allocations: 19.75 kB / 1.031 GB, free: 13.52 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.637e-05/0.3708, allocations: 41.69 kB / 1.031 GB, free: 13.48 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001161/0.371, allocations: 318.8 kB / 1.031 GB, free: 13.16 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000149/0.3711, allocations: 51.95 kB / 1.031 GB, free: 13.11 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001656/0.3713, allocations: 93.11 kB / 1.031 GB, free: 13 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002652/0.3716, allocations: 158.7 kB / 1.032 GB, free: 12.82 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.3716, allocations: 0 / 1.032 GB, free: 12.82 MB / 0.8106 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004119/0.372, allocations: 207.1 kB / 1.032 GB, free: 12.6 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.895e-05/0.372, allocations: 41.69 kB / 1.032 GB, free: 12.55 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.381e-06/0.372, allocations: 0 / 1.032 GB, free: 12.55 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.792e-05/0.3721, allocations: 4.156 kB / 1.032 GB, free: 12.55 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001047/0.3722, allocations: 15.98 kB / 1.032 GB, free: 12.54 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.284e-06/0.3722, allocations: 4 kB / 1.032 GB, free: 12.53 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001909/0.3724, allocations: 35.88 kB / 1.032 GB, free: 12.5 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.827e-05/0.3724, allocations: 15.98 kB / 1.032 GB, free: 12.48 MB / 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 (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 9.989e-05/0.3725, allocations: 125.7 kB / 1.032 GB, free: 12.35 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.27e-05/0.3726, allocations: 11.84 kB / 1.032 GB, free: 12.34 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002861/0.3728, allocations: 134 kB / 1.032 GB, free: 12.2 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.3729, allocations: 0 / 1.032 GB, free: 12.2 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.3729, allocations: 0 / 1.032 GB, free: 12.2 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.768e-06/0.3729, allocations: 0 / 1.032 GB, free: 12.2 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003944/0.3733, allocations: 382.8 kB / 1.032 GB, free: 11.77 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.639e-06/0.3733, allocations: 3.984 kB / 1.032 GB, free: 11.77 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.581e-05/0.3733, allocations: 12 kB / 1.033 GB, free: 11.75 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.3734, allocations: 0 / 1.033 GB, free: 11.75 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.257e-05/0.3734, allocations: 7.984 kB / 1.033 GB, free: 11.75 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.3734, allocations: 0 / 1.033 GB, free: 11.75 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.3734, allocations: 3.938 kB / 1.033 GB, free: 11.74 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002783/0.3737, allocations: 215.4 kB / 1.033 GB, free: 11.52 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.749e-05/0.3737, allocations: 85.11 kB / 1.033 GB, free: 11.41 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.681e-05/0.3737, allocations: 4 kB / 1.033 GB, free: 11.41 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.28e-05/0.3738, allocations: 7.984 kB / 1.033 GB, free: 11.4 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.881e-05/0.3739, allocations: 11.92 kB / 1.033 GB, free: 11.39 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.713e-06/0.3739, allocations: 3.938 kB / 1.033 GB, free: 11.39 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.947e-05/0.3739, allocations: 87.28 kB / 1.033 GB, free: 11.3 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3739, allocations: 4 kB / 1.033 GB, free: 11.3 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002734/0.3742, allocations: 27.98 kB / 1.033 GB, free: 11.27 MB / 0.8106 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.0001416/0.3744, allocations: 103.2 kB / 1.033 GB, free: 11.16 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003625/0.3747, allocations: 175.3 kB / 1.033 GB, free: 10.98 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.3748, allocations: 0 / 1.033 GB, free: 10.98 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001189/0.3749, allocations: 47.89 kB / 1.033 GB, free: 10.93 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002777/0.3752, allocations: 20.3 kB / 1.033 GB, free: 10.91 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003855/0.3756, allocations: 171.1 kB / 1.033 GB, free: 10.71 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00023/0.3758, allocations: 0.6885 MB / 1.034 GB, free: 9.996 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.007e-05/0.3758, allocations: 4 kB / 1.034 GB, free: 9.992 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.533e-05/0.3759, allocations: 11.44 kB / 1.034 GB, free: 9.984 MB / 0.8106 GB Notification: Performance of SimCode: time 2.1e-07/0.3759, allocations: 3.938 kB / 1.034 GB, free: 9.98 MB / 0.8106 GB Notification: Performance of Templates: time 0.003946/0.3798, allocations: 1.439 MB / 1.036 GB, free: 8.559 MB / 0.8106 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 -s cvode -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/jenkins1/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