Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.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.0009564/0.0009564, allocations: 83.59 kB / 20.45 MB, free: 4.121 MB / 18.57 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.0009781/0.0009781, allocations: 169 kB / 23.82 MB, free: 0.7461 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.9604/0.9604, allocations: 177.1 MB / 204.2 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.807/1.807, allocations: 377.8 MB / 0.6236 GB, free: 8.535 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/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.Sampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sampler1.u|sampler1.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sampler1.u|sampler1.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 3.717e-06/3.717e-06, allocations: 0 / 0.8115 GB, free: 1.73 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.608e-05/2.98e-05, allocations: 6.578 kB / 0.8115 GB, free: 1.727 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001543/0.001573, allocations: 0.6862 MB / 0.8122 GB, free: 1.059 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001159/0.002732, allocations: 1.119 MB / 0.8133 GB, free: 15.93 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.363e-05/0.002776, allocations: 0.8125 kB / 0.8133 GB, free: 15.93 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 2.954e-05/0.002805, allocations: 0 / 0.8133 GB, free: 15.93 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 7.101e-05/0.002876, allocations: 8.938 kB / 0.8133 GB, free: 15.92 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003067/0.003183, allocations: 47.7 kB / 0.8133 GB, free: 15.87 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 9.731e-05/0.00328, allocations: 51.78 kB / 0.8134 GB, free: 15.82 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 9.186e-05/0.003372, allocations: 9.453 kB / 0.8134 GB, free: 15.81 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 7.753e-05/0.00345, allocations: 31.97 kB / 0.8134 GB, free: 15.78 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 4.398e-05/0.003494, allocations: 7.984 kB / 0.8134 GB, free: 15.77 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 1.636e-05/0.00351, allocations: 5.75 kB / 0.8134 GB, free: 15.77 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 6.605e-05/0.003576, allocations: 23.92 kB / 0.8135 GB, free: 15.75 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 2.336e-05/0.003599, allocations: 15.97 kB / 0.8135 GB, free: 15.73 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 2.729e-05/0.003627, allocations: 8 kB / 0.8135 GB, free: 15.72 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0001361/0.003763, allocations: 51.81 kB / 0.8135 GB, free: 15.67 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.003765, allocations: 1.719 kB / 0.8135 GB, free: 15.67 MB / 0.7761 GB Notification: Performance of FrontEnd: time 9.92e-07/0.003766, allocations: 0 / 0.8135 GB, free: 15.67 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 5.641e-06/0.003772, allocations: 7.922 kB / 0.8135 GB, free: 15.66 MB / 0.7761 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004678/0.00424, allocations: 385.9 kB / 0.8139 GB, free: 15.25 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.709e-05/0.004277, allocations: 8.031 kB / 0.8139 GB, free: 15.24 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001074/0.004384, allocations: 16.88 kB / 0.8139 GB, free: 15.23 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.197e-05/0.004466, allocations: 107 kB / 0.814 GB, free: 15.1 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.875e-05/0.004485, allocations: 8.375 kB / 0.814 GB, free: 15.09 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.297e-06/0.004494, allocations: 384 / 0.814 GB, free: 15.09 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001299/0.004624, allocations: 66.94 kB / 0.8141 GB, free: 15.02 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.947e-06/0.004633, allocations: 192 / 0.8141 GB, free: 15.02 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.019e-05/0.004644, allocations: 384 / 0.8141 GB, free: 15.02 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.446e-06/0.004652, allocations: 384 / 0.8141 GB, free: 15.02 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.18e-05/0.004694, allocations: 24.56 kB / 0.8141 GB, free: 14.99 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003689/0.005063, allocations: 272.2 kB / 0.8144 GB, free: 14.69 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 9.247e-05/0.005155, allocations: 40.72 kB / 0.8144 GB, free: 14.64 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.598e-05/0.005181, allocations: 19.73 kB / 0.8145 GB, free: 14.62 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 1.75e-05/0.005199, allocations: 4 kB / 0.8145 GB, free: 14.61 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.789e-05/0.005287, allocations: 64.94 kB / 0.8145 GB, free: 14.54 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=6): time 1.492e-06/0.005288, allocations: 4.656 kB / 0.8145 GB, free: 14.53 MB / 0.7761 GB Notification: Performance of matching and sorting (n=6): time 0.0001913/0.005479, allocations: 70.95 kB / 0.8146 GB, free: 14.46 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.625e-05/0.005526, allocations: 51.41 kB / 0.8146 GB, free: 14.39 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.366e-05/0.005609, allocations: 165.9 kB / 0.8148 GB, free: 14.21 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 1.283e-05/0.005622, allocations: 25.7 kB / 0.8148 GB, free: 14.18 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 4.777e-05/0.00567, allocations: 140 kB / 0.815 GB, free: 14.04 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 1.788e-05/0.005688, allocations: 11.89 kB / 0.815 GB, free: 14.03 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.386e-05/0.005722, allocations: 27.38 kB / 0.815 GB, free: 14 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001042/0.005826, allocations: 0.4897 MB / 0.8155 GB, free: 13.5 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.218e-05/0.005848, allocations: 8.5 kB / 0.8155 GB, free: 13.49 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.96e-05/0.005888, allocations: 50.67 kB / 0.8155 GB, free: 13.42 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.002e-05/0.005948, allocations: 59.83 kB / 0.8156 GB, free: 13.35 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.00595, allocations: 0.5 kB / 0.8156 GB, free: 13.35 MB / 0.7761 GB Notification: Performance of matching and sorting (n=8) (initialization): time 9.452e-05/0.006044, allocations: 74.95 kB / 0.8157 GB, free: 13.27 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.537e-05/0.00606, allocations: 11.94 kB / 0.8157 GB, free: 13.26 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/0.006065, allocations: 0.8438 kB / 0.8157 GB, free: 13.26 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.215e-05/0.006077, allocations: 0 / 0.8157 GB, free: 13.26 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.432e-05/0.006151, allocations: 12 kB / 0.8157 GB, free: 13.25 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.355e-06/0.00616, allocations: 13.64 kB / 0.8157 GB, free: 13.23 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.724e-05/0.006187, allocations: 7.938 kB / 0.8157 GB, free: 13.23 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.112e-05/0.006198, allocations: 0 / 0.8157 GB, free: 13.23 MB / 0.7761 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 (sampler1.firstTrigger,$PRE.sampler1.firstTrigger,sampler1.sampleTrigger,$whenCondition1,sampler1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * 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 7.069e-05/0.006269, allocations: 161.4 kB / 0.8159 GB, free: 13.06 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.128e-05/0.00628, allocations: 11.89 kB / 0.8159 GB, free: 13.05 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001153/0.006395, allocations: 70.11 kB / 0.8159 GB, free: 12.97 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.006398, allocations: 2.25 kB / 0.8159 GB, free: 12.97 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.075e-06/0.006401, allocations: 0 / 0.8159 GB, free: 12.97 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.006404, allocations: 0 / 0.8159 GB, free: 12.97 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002047/0.006609, allocations: 321.4 kB / 0.8162 GB, free: 12.62 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.00661, allocations: 0 / 0.8162 GB, free: 12.62 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.182e-05/0.006642, allocations: 11.98 kB / 0.8163 GB, free: 12.61 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.915e-06/0.006645, allocations: 2.094 kB / 0.8163 GB, free: 12.61 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.785e-06/0.006653, allocations: 0 / 0.8163 GB, free: 12.61 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.006654, allocations: 0 / 0.8163 GB, free: 12.61 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.006656, allocations: 3.938 kB / 0.8163 GB, free: 12.6 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001192/0.006775, allocations: 227.8 kB / 0.8165 GB, free: 12.36 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 7.233e-06/0.006782, allocations: 4.5 kB / 0.8165 GB, free: 12.36 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.089e-05/0.006793, allocations: 0 / 0.8165 GB, free: 12.36 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.182e-05/0.006835, allocations: 4.719 kB / 0.8165 GB, free: 12.35 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.073e-05/0.006875, allocations: 13.89 kB / 0.8165 GB, free: 12.34 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.214e-05/0.006888, allocations: 4 kB / 0.8165 GB, free: 12.34 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 3.916e-05/0.006927, allocations: 127.2 kB / 0.8166 GB, free: 12.21 MB / 0.7761 GB Notification: Performance of sort global known variables: time 5.1e-08/0.006927, allocations: 0 / 0.8166 GB, free: 12.21 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0001647/0.007092, allocations: 15.95 kB / 0.8166 GB, free: 12.2 MB / 0.7761 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (sampler1.sampleTrigger,$whenCondition1,sampler1.y,sampler1.firstTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001358/0.007227, allocations: 104.5 kB / 0.8167 GB, free: 12.09 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0001121/0.007339, allocations: 40.3 kB / 0.8168 GB, free: 12.04 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.007341, allocations: 3.5 kB / 0.8168 GB, free: 12.04 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 3.519e-05/0.007376, allocations: 23.61 kB / 0.8168 GB, free: 12.02 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001982/0.007575, allocations: 23.86 kB / 0.8168 GB, free: 11.99 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004713/0.008046, allocations: 126.4 kB / 0.8169 GB, free: 11.84 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.878e-05/0.008085, allocations: 63.2 kB / 0.817 GB, free: 11.76 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 3.039e-05/0.008115, allocations: 6.094 kB / 0.817 GB, free: 11.75 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.036e-05/0.008145, allocations: 16.5 kB / 0.817 GB, free: 11.74 MB / 0.7761 GB Notification: Performance of SimCode: time 6.11e-07/0.008146, allocations: 0 / 0.817 GB, free: 11.74 MB / 0.7761 GB Notification: Performance of Templates: time 0.002932/0.01108, allocations: 0.8965 MB / 0.8179 GB, free: 10.87 MB / 0.7761 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler.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.0292339930310845]