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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009169/0.0009169, allocations: 93.16 kB / 19.65 MB, free: 292 kB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009084/0.0009084, allocations: 172.9 kB / 23.02 MB, free: 1.559 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.984/0.984, allocations: 177.1 MB / 203.4 MB, free: 5.641 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.076/2.076, allocations: 429.5 MB / 0.6733 GB, free: 3.82 MB / 0.6355 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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=2500,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.434e-06/2.434e-06, allocations: 0 / 0.8781 GB, free: 6.281 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.094e-05/3.337e-05, allocations: 2.812 kB / 0.8782 GB, free: 6.277 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.002014/0.002047, allocations: 0.7749 MB / 0.8789 GB, free: 5.527 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001621/0.003668, allocations: 1.212 MB / 0.8801 GB, free: 4.309 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.803e-05/0.003726, allocations: 0 / 0.8801 GB, free: 4.309 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 3.927e-05/0.003765, allocations: 15.86 kB / 0.8801 GB, free: 4.293 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 9.164e-05/0.003857, allocations: 19.8 kB / 0.8801 GB, free: 4.273 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004342/0.004291, allocations: 131.6 kB / 0.8803 GB, free: 4.145 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0001464/0.004438, allocations: 131.7 kB / 0.8804 GB, free: 4.016 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 9.945e-05/0.004537, allocations: 18.83 kB / 0.8804 GB, free: 3.996 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001056/0.004643, allocations: 75.86 kB / 0.8805 GB, free: 3.922 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 7.359e-05/0.004716, allocations: 31.95 kB / 0.8805 GB, free: 3.891 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 2.33e-05/0.00474, allocations: 12 kB / 0.8805 GB, free: 3.879 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 6.302e-05/0.004803, allocations: 31.91 kB / 0.8805 GB, free: 3.848 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 2.518e-05/0.004828, allocations: 19.92 kB / 0.8806 GB, free: 3.828 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 5.512e-05/0.004883, allocations: 35.91 kB / 0.8806 GB, free: 3.793 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0001541/0.005037, allocations: 108.6 kB / 0.8807 GB, free: 3.688 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.344e-06/0.005039, allocations: 0 / 0.8807 GB, free: 3.688 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.172e-06/0.005041, allocations: 0 / 0.8807 GB, free: 3.688 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.498e-06/0.005045, allocations: 1.125 kB / 0.8807 GB, free: 3.688 MB / 0.8386 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.0004341/0.005479, allocations: 438.1 kB / 0.8811 GB, free: 3.219 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.659e-05/0.005516, allocations: 13.62 kB / 0.8811 GB, free: 3.207 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000106/0.005622, allocations: 16.83 kB / 0.8811 GB, free: 3.191 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.771e-05/0.0057, allocations: 116.6 kB / 0.8813 GB, free: 3.051 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.333e-05/0.005713, allocations: 4.375 kB / 0.8813 GB, free: 3.047 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.617e-05/0.005729, allocations: 9.969 kB / 0.8813 GB, free: 3.039 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000132/0.005861, allocations: 78.86 kB / 0.8813 GB, free: 2.953 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.183e-06/0.005868, allocations: 192 / 0.8813 GB, free: 2.953 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.037e-05/0.005879, allocations: 384 / 0.8813 GB, free: 2.953 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.095e-06/0.005887, allocations: 8.125 kB / 0.8814 GB, free: 2.945 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.606e-05/0.005923, allocations: 14.95 kB / 0.8814 GB, free: 2.934 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003699/0.006293, allocations: 327.5 kB / 0.8817 GB, free: 2.578 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 8.26e-05/0.006375, allocations: 47.05 kB / 0.8817 GB, free: 2.52 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.494e-05/0.0064, allocations: 15.62 kB / 0.8817 GB, free: 2.5 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.581e-05/0.006416, allocations: 4 kB / 0.8817 GB, free: 2.496 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.333e-05/0.006509, allocations: 81.91 kB / 0.8818 GB, free: 2.402 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=8): time 1.092e-06/0.00651, allocations: 0 / 0.8818 GB, free: 2.402 MB / 0.8386 GB Notification: Performance of matching and sorting (n=8): time 0.0001915/0.006702, allocations: 99.28 kB / 0.8819 GB, free: 2.301 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.086e-05/0.006733, allocations: 59.41 kB / 0.882 GB, free: 2.23 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.94e-05/0.006812, allocations: 177.9 kB / 0.8821 GB, free: 2.039 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.906e-05/0.006831, allocations: 33.7 kB / 0.8822 GB, free: 2 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.994e-05/0.006881, allocations: 140.2 kB / 0.8823 GB, free: 1.859 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.967e-05/0.006901, allocations: 27.78 kB / 0.8823 GB, free: 1.832 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.192e-05/0.006953, allocations: 47.3 kB / 0.8824 GB, free: 1.777 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 9.807e-05/0.007051, allocations: 0.4884 MB / 0.8829 GB, free: 1.277 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.005e-05/0.007121, allocations: 61.69 kB / 0.8829 GB, free: 1.211 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.985e-05/0.007211, allocations: 127.7 kB / 0.883 GB, free: 1.055 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001052/0.007316, allocations: 127.8 kB / 0.8832 GB, free: 0.8984 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.604e-06/0.007319, allocations: 0 / 0.8832 GB, free: 0.8984 MB / 0.8386 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002123/0.007531, allocations: 220.9 kB / 0.8834 GB, free: 0.6641 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 3.189e-05/0.007563, allocations: 29.7 kB / 0.8834 GB, free: 0.6289 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.00757, allocations: 4 kB / 0.8834 GB, free: 0.625 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.46e-05/0.007585, allocations: 0 / 0.8834 GB, free: 0.625 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.704e-05/0.007672, allocations: 19.92 kB / 0.8834 GB, free: 0.6055 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.985e-06/0.00768, allocations: 4 kB / 0.8834 GB, free: 0.6016 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.559e-05/0.007775, allocations: 27.97 kB / 0.8834 GB, free: 0.5742 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.523e-05/0.007791, allocations: 4 kB / 0.8835 GB, free: 0.5703 MB / 0.8386 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.26e-05/0.007883, allocations: 168.6 kB / 0.8836 GB, free: 404 kB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.681e-05/0.0079, allocations: 15.88 kB / 0.8836 GB, free: 388 kB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000151/0.008051, allocations: 94.05 kB / 0.8837 GB, free: 284 kB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.008053, allocations: 0 / 0.8837 GB, free: 284 kB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.008059, allocations: 4 kB / 0.8837 GB, free: 280 kB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.008063, allocations: 0 / 0.8837 GB, free: 280 kB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003005/0.008363, allocations: 337.4 kB / 0.884 GB, free: 15.9 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.008365, allocations: 0 / 0.884 GB, free: 15.9 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.795e-05/0.008403, allocations: 11.94 kB / 0.8841 GB, free: 15.89 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.467e-06/0.008406, allocations: 0 / 0.8841 GB, free: 15.89 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.859e-06/0.008416, allocations: 4 kB / 0.8841 GB, free: 15.89 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.434e-06/0.008419, allocations: 4 kB / 0.8841 GB, free: 15.88 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.008422, allocations: 4 kB / 0.8841 GB, free: 15.88 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001455/0.008568, allocations: 243.8 kB / 0.8843 GB, free: 15.62 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 1.229e-05/0.00858, allocations: 15.88 kB / 0.8843 GB, free: 15.61 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.313e-05/0.008593, allocations: 0 / 0.8843 GB, free: 15.61 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.48e-05/0.008628, allocations: 4 kB / 0.8843 GB, free: 15.6 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.24e-05/0.00868, allocations: 3.984 kB / 0.8843 GB, free: 15.6 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.126e-05/0.008691, allocations: 8 kB / 0.8843 GB, free: 15.59 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 4.719e-05/0.008739, allocations: 135.1 kB / 0.8845 GB, free: 15.46 MB / 0.8542 GB Notification: Performance of sort global known variables: time 6e-08/0.008739, allocations: 0 / 0.8845 GB, free: 15.46 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0001916/0.00893, allocations: 28 kB / 0.8845 GB, free: 15.43 MB / 0.8542 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.0001812/0.009112, allocations: 107.2 kB / 0.8846 GB, free: 15.32 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0001979/0.009309, allocations: 172.4 kB / 0.8848 GB, free: 15.13 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.009311, allocations: 0 / 0.8848 GB, free: 15.13 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 3.986e-05/0.009351, allocations: 31.66 kB / 0.8848 GB, free: 15.09 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001946/0.009545, allocations: 15.92 kB / 0.8848 GB, free: 15.08 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005057/0.01005, allocations: 190.6 kB / 0.885 GB, free: 14.86 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.635e-05/0.01009, allocations: 59.34 kB / 0.885 GB, free: 14.79 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 2.298e-05/0.01011, allocations: 7.984 kB / 0.885 GB, free: 14.78 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.569e-05/0.01014, allocations: 16.5 kB / 0.8851 GB, free: 14.76 MB / 0.8542 GB Notification: Performance of SimCode: time 6.51e-07/0.01014, allocations: 0 / 0.8851 GB, free: 14.76 MB / 0.8542 GB Notification: Performance of Templates: time 0.003456/0.01359, allocations: 1.7 MB / 0.8867 GB, free: 13.11 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.makefile [Timeout 300] (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=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.360092475079]