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.00168/0.00168, allocations: 84.72 kB / 19.44 MB, free: 356 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.001997/0.001997, allocations: 157.7 kB / 22.75 MB, free: 1.68 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 1.547/1.547, allocations: 177.1 MB / 203.1 MB, free: 5.586 MB / 186.7 MB " [Timeout remaining time 178] 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 3.287/3.287, allocations: 429.6 MB / 0.673 GB, free: 3.891 MB / 0.6355 GB " [Timeout remaining time 176] 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.525e-06/2.525e-06, allocations: 0 / 0.8776 GB, free: 6.492 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.219e-05/3.472e-05, allocations: 2.312 kB / 0.8776 GB, free: 6.488 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.002889/0.002924, allocations: 0.7495 MB / 0.8783 GB, free: 5.766 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.002032/0.004956, allocations: 1.188 MB / 0.8795 GB, free: 4.566 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.397e-05/0.00503, allocations: 5.406 kB / 0.8795 GB, free: 4.562 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 3.932e-05/0.005069, allocations: 3.938 kB / 0.8795 GB, free: 4.559 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 9.6e-05/0.005165, allocations: 15.86 kB / 0.8795 GB, free: 4.543 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005869/0.005752, allocations: 134.7 kB / 0.8796 GB, free: 4.414 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0002388/0.005991, allocations: 131.7 kB / 0.8798 GB, free: 4.285 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001079/0.006099, allocations: 16.17 kB / 0.8798 GB, free: 4.266 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001765/0.006275, allocations: 71.88 kB / 0.8798 GB, free: 4.195 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 9.95e-05/0.006375, allocations: 31.94 kB / 0.8799 GB, free: 4.164 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 4.603e-05/0.006421, allocations: 12 kB / 0.8799 GB, free: 4.152 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 8.968e-05/0.00651, allocations: 24.59 kB / 0.8799 GB, free: 4.129 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 3.187e-05/0.006542, allocations: 19.91 kB / 0.8799 GB, free: 4.109 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 7.912e-05/0.006621, allocations: 41.56 kB / 0.88 GB, free: 4.07 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0002826/0.006904, allocations: 147.5 kB / 0.8801 GB, free: 3.926 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.094e-06/0.006906, allocations: 0 / 0.8801 GB, free: 3.926 MB / 0.8386 GB Notification: Performance of FrontEnd: time 8.02e-07/0.006907, allocations: 4 kB / 0.8801 GB, free: 3.922 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 5.791e-06/0.006913, allocations: 0.5 kB / 0.8801 GB, free: 3.922 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.0007182/0.007631, allocations: 341.2 kB / 0.8804 GB, free: 3.555 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.158e-05/0.007673, allocations: 12.03 kB / 0.8804 GB, free: 3.543 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001428/0.007815, allocations: 16.88 kB / 0.8805 GB, free: 3.527 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001369/0.007952, allocations: 122.4 kB / 0.8806 GB, free: 3.383 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.067e-05/0.007973, allocations: 4.375 kB / 0.8806 GB, free: 3.379 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.784e-05/0.008001, allocations: 12.38 kB / 0.8806 GB, free: 3.367 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002337/0.008234, allocations: 71.56 kB / 0.8807 GB, free: 3.293 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.728e-06/0.008244, allocations: 192 / 0.8807 GB, free: 3.293 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.469e-05/0.008259, allocations: 5.938 kB / 0.8807 GB, free: 3.289 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.714e-06/0.008267, allocations: 4.125 kB / 0.8807 GB, free: 3.285 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002274/0.008494, allocations: 51.89 kB / 0.8807 GB, free: 3.234 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005783/0.009072, allocations: 268.4 kB / 0.881 GB, free: 2.941 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001992/0.009271, allocations: 54.55 kB / 0.881 GB, free: 2.879 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001304/0.009402, allocations: 36.92 kB / 0.8811 GB, free: 2.84 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.524e-05/0.009427, allocations: 4 kB / 0.8811 GB, free: 2.836 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002759/0.009703, allocations: 87.36 kB / 0.8811 GB, free: 2.738 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=8): time 1.443e-06/0.009704, allocations: 0 / 0.8811 GB, free: 2.738 MB / 0.8386 GB Notification: Performance of matching and sorting (n=8): time 0.0005279/0.01023, allocations: 149.6 kB / 0.8813 GB, free: 2.586 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.706e-05/0.0103, allocations: 63.33 kB / 0.8814 GB, free: 2.512 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001319/0.01043, allocations: 121.8 kB / 0.8815 GB, free: 2.383 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.614e-05/0.01047, allocations: 29.7 kB / 0.8815 GB, free: 2.348 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 8.664e-05/0.01055, allocations: 100 kB / 0.8816 GB, free: 2.246 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.896e-05/0.01058, allocations: 19.86 kB / 0.8816 GB, free: 2.227 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.9e-05/0.01067, allocations: 37.7 kB / 0.8816 GB, free: 2.184 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001859/0.01086, allocations: 318.8 kB / 0.8819 GB, free: 1.863 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002085/0.01107, allocations: 85.66 kB / 0.882 GB, free: 1.773 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002459/0.01131, allocations: 122.8 kB / 0.8821 GB, free: 1.629 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003355/0.01165, allocations: 150.8 kB / 0.8823 GB, free: 1.457 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.01165, allocations: 4 kB / 0.8823 GB, free: 1.453 MB / 0.8386 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0005881/0.01224, allocations: 260.7 kB / 0.8825 GB, free: 1.18 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 4.651e-05/0.01229, allocations: 37.7 kB / 0.8826 GB, free: 1.137 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.763e-06/0.01229, allocations: 0 / 0.8826 GB, free: 1.137 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.29e-05/0.01231, allocations: 4 kB / 0.8826 GB, free: 1.133 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001082/0.01242, allocations: 11.98 kB / 0.8826 GB, free: 1.121 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.047e-05/0.01243, allocations: 8.156 kB / 0.8826 GB, free: 1.113 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002285/0.01266, allocations: 35.89 kB / 0.8826 GB, free: 1.078 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.532e-05/0.01269, allocations: 4 kB / 0.8826 GB, free: 1.074 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 0.0001444/0.01283, allocations: 133.1 kB / 0.8828 GB, free: 0.9375 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.089e-05/0.01286, allocations: 15.89 kB / 0.8828 GB, free: 0.9219 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003628/0.01323, allocations: 118.1 kB / 0.8829 GB, free: 0.7969 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.776e-06/0.01323, allocations: 4 kB / 0.8829 GB, free: 0.793 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.01323, allocations: 0 / 0.8829 GB, free: 0.793 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.01324, allocations: 3.984 kB / 0.8829 GB, free: 0.7891 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004833/0.01372, allocations: 318.1 kB / 0.8832 GB, free: 452 kB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.01372, allocations: 0 / 0.8832 GB, free: 452 kB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.733e-05/0.01379, allocations: 11.98 kB / 0.8832 GB, free: 440 kB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.01379, allocations: 0 / 0.8832 GB, free: 440 kB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.259e-05/0.01381, allocations: 4 kB / 0.8832 GB, free: 436 kB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/0.01381, allocations: 480 / 0.8832 GB, free: 436 kB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.01381, allocations: 4 kB / 0.8832 GB, free: 432 kB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004066/0.01422, allocations: 235.3 kB / 0.8835 GB, free: 180 kB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.318e-05/0.01423, allocations: 3.953 kB / 0.8835 GB, free: 176 kB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.982e-05/0.01425, allocations: 4.047 kB / 0.8835 GB, free: 172 kB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.469e-05/0.01434, allocations: 15.91 kB / 0.8835 GB, free: 156 kB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.968e-05/0.01439, allocations: 7.984 kB / 0.8835 GB, free: 148 kB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.087e-06/0.0144, allocations: 4 kB / 0.8835 GB, free: 144 kB / 0.8386 GB Notification: Performance of sorting global known variables: time 9.115e-05/0.01449, allocations: 91.27 kB / 0.8836 GB, free: 52 kB / 0.8386 GB Notification: Performance of sort global known variables: time 9e-08/0.01449, allocations: 4 kB / 0.8836 GB, free: 48 kB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002987/0.01479, allocations: 31.94 kB / 0.8836 GB, free: 16 kB / 0.8386 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.0001848/0.01498, allocations: 95.25 kB / 0.8837 GB, free: 15.91 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0004724/0.01545, allocations: 197 kB / 0.8839 GB, free: 15.7 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.01545, allocations: 0 / 0.8839 GB, free: 15.7 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0001357/0.01559, allocations: 32.23 kB / 0.8839 GB, free: 15.67 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003123/0.0159, allocations: 31.86 kB / 0.8839 GB, free: 15.64 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004764/0.01638, allocations: 176.8 kB / 0.8841 GB, free: 15.44 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.638e-05/0.01646, allocations: 71.33 kB / 0.8842 GB, free: 15.35 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 3.817e-05/0.0165, allocations: 4 kB / 0.8842 GB, free: 15.35 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.495e-05/0.01654, allocations: 12.5 kB / 0.8842 GB, free: 15.34 MB / 0.8542 GB Notification: Performance of SimCode: time 8.61e-07/0.01654, allocations: 4 kB / 0.8842 GB, free: 15.33 MB / 0.8542 GB Notification: Performance of Templates: time 0.005329/0.02187, allocations: 1.563 MB / 0.8857 GB, free: 13.82 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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe 2>&1) [Timeout 800] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.430790675920434]