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.0009985/0.0009985, allocations: 87.58 kB / 20.45 MB, free: 4.117 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.001972/0.001972, allocations: 161 kB / 23.82 MB, free: 0.75 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.079/1.079, allocations: 177.1 MB / 204.2 MB, free: 5.262 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.958/1.958, allocations: 377.8 MB / 0.6236 GB, free: 8.543 MB / 0.5886 GB " [Timeout remaining time 177] 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 2.324e-06/2.324e-06, allocations: 0 / 0.8115 GB, free: 1.746 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.559e-05/2.791e-05, allocations: 5.688 kB / 0.8115 GB, free: 1.742 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001375/0.001403, allocations: 0.6771 MB / 0.8122 GB, free: 1.086 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001117/0.00252, allocations: 1.117 MB / 0.8133 GB, free: 15.96 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.538e-05/0.002566, allocations: 0 / 0.8133 GB, free: 15.96 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 3.118e-05/0.002597, allocations: 3.938 kB / 0.8133 GB, free: 15.95 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 7.081e-05/0.002668, allocations: 8.594 kB / 0.8133 GB, free: 15.95 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003066/0.002974, allocations: 47.7 kB / 0.8133 GB, free: 15.9 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 8.96e-05/0.003064, allocations: 49.09 kB / 0.8134 GB, free: 15.85 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 9.268e-05/0.003157, allocations: 7.984 kB / 0.8134 GB, free: 15.84 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 7.982e-05/0.003237, allocations: 27.97 kB / 0.8134 GB, free: 15.82 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 4.508e-05/0.003282, allocations: 18.36 kB / 0.8134 GB, free: 15.8 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 1.709e-05/0.003299, allocations: 4 kB / 0.8134 GB, free: 15.8 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 6.981e-05/0.003368, allocations: 23.97 kB / 0.8135 GB, free: 15.77 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 2.094e-05/0.003389, allocations: 8 kB / 0.8135 GB, free: 15.77 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 2.9e-05/0.003418, allocations: 15.92 kB / 0.8135 GB, free: 15.75 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0001478/0.003566, allocations: 51.81 kB / 0.8135 GB, free: 15.7 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 2.354e-06/0.003569, allocations: 1.531 kB / 0.8135 GB, free: 15.7 MB / 0.7761 GB Notification: Performance of FrontEnd: time 8.51e-07/0.003569, allocations: 0 / 0.8135 GB, free: 15.7 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 4.608e-06/0.003574, allocations: 0 / 0.8135 GB, free: 15.7 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.0004747/0.004049, allocations: 393.9 kB / 0.8139 GB, free: 15.28 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.938e-05/0.004088, allocations: 8.031 kB / 0.8139 GB, free: 15.27 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001039/0.004192, allocations: 12.89 kB / 0.8139 GB, free: 15.26 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.095e-05/0.004283, allocations: 112.6 kB / 0.814 GB, free: 15.12 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.337e-05/0.004296, allocations: 9.906 kB / 0.814 GB, free: 15.11 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.32e-05/0.004309, allocations: 384 / 0.814 GB, free: 15.11 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001326/0.004442, allocations: 62.94 kB / 0.8141 GB, free: 15.04 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.749e-06/0.004452, allocations: 4.188 kB / 0.8141 GB, free: 15.04 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.002e-05/0.004462, allocations: 1.438 kB / 0.8141 GB, free: 15.04 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.608e-06/0.004471, allocations: 4.359 kB / 0.8141 GB, free: 15.04 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.606e-05/0.004518, allocations: 20.39 kB / 0.8141 GB, free: 15.02 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003575/0.004875, allocations: 268.2 kB / 0.8144 GB, free: 14.72 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 8.599e-05/0.004961, allocations: 44.02 kB / 0.8144 GB, free: 14.66 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.584e-05/0.004987, allocations: 15.67 kB / 0.8144 GB, free: 14.64 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 2.065e-05/0.005007, allocations: 0.7188 kB / 0.8144 GB, free: 14.64 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.166e-05/0.005089, allocations: 65.06 kB / 0.8145 GB, free: 14.57 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=6): time 1.593e-06/0.005091, allocations: 0.5312 kB / 0.8145 GB, free: 14.57 MB / 0.7761 GB Notification: Performance of matching and sorting (n=6): time 0.0001891/0.00528, allocations: 79.05 kB / 0.8146 GB, free: 14.48 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.317e-05/0.005313, allocations: 51.41 kB / 0.8146 GB, free: 14.42 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.628e-05/0.005389, allocations: 166.2 kB / 0.8148 GB, free: 14.24 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 1.173e-05/0.005401, allocations: 25.7 kB / 0.8148 GB, free: 14.21 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 5.357e-05/0.005455, allocations: 140 kB / 0.815 GB, free: 14.07 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 1.709e-05/0.005472, allocations: 7.906 kB / 0.815 GB, free: 14.06 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.586e-05/0.005507, allocations: 35.3 kB / 0.815 GB, free: 14.02 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001066/0.005614, allocations: 497 kB / 0.8155 GB, free: 13.52 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.266e-05/0.005637, allocations: 8.234 kB / 0.8155 GB, free: 13.52 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.846e-05/0.005675, allocations: 51.66 kB / 0.8155 GB, free: 13.45 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.247e-05/0.005738, allocations: 59.77 kB / 0.8156 GB, free: 13.38 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.00574, allocations: 0 / 0.8156 GB, free: 13.38 MB / 0.7761 GB Notification: Performance of matching and sorting (n=8) (initialization): time 9.635e-05/0.005836, allocations: 70.44 kB / 0.8156 GB, free: 13.3 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.538e-05/0.005851, allocations: 16.8 kB / 0.8157 GB, free: 13.29 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-06/0.005856, allocations: 0 / 0.8157 GB, free: 13.29 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.467e-05/0.005871, allocations: 1.562 kB / 0.8157 GB, free: 13.29 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.422e-05/0.005945, allocations: 11.94 kB / 0.8157 GB, free: 13.27 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.833e-06/0.005952, allocations: 4.156 kB / 0.8157 GB, free: 13.27 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.1e-05/0.005983, allocations: 15.92 kB / 0.8157 GB, free: 13.25 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.845e-06/0.005991, allocations: 9.078 kB / 0.8157 GB, free: 13.25 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.292e-05/0.006064, allocations: 160.6 kB / 0.8159 GB, free: 13.08 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.139e-05/0.006075, allocations: 15.08 kB / 0.8159 GB, free: 13.07 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001189/0.006194, allocations: 70.11 kB / 0.8159 GB, free: 12.99 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.824e-06/0.006196, allocations: 0 / 0.8159 GB, free: 12.99 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.006199, allocations: 3.938 kB / 0.8159 GB, free: 12.99 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.006202, allocations: 0 / 0.8159 GB, free: 12.99 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002149/0.006417, allocations: 313.4 kB / 0.8162 GB, free: 12.64 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/0.006419, allocations: 0 / 0.8162 GB, free: 12.64 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.348e-05/0.006453, allocations: 11.98 kB / 0.8163 GB, free: 12.63 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.006455, allocations: 0 / 0.8163 GB, free: 12.63 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.843e-06/0.006462, allocations: 0.5 kB / 0.8163 GB, free: 12.63 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.006464, allocations: 1.938 kB / 0.8163 GB, free: 12.63 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.006466, allocations: 3.938 kB / 0.8163 GB, free: 12.62 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001157/0.006581, allocations: 219.8 kB / 0.8165 GB, free: 12.39 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 8.255e-06/0.00659, allocations: 7.984 kB / 0.8165 GB, free: 12.38 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.079e-05/0.006601, allocations: 192 / 0.8165 GB, free: 12.38 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.454e-05/0.006645, allocations: 8.875 kB / 0.8165 GB, free: 12.38 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.565e-05/0.006681, allocations: 7.984 kB / 0.8165 GB, free: 12.37 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.101e-05/0.006692, allocations: 0.8438 kB / 0.8165 GB, free: 12.37 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 3.953e-05/0.006731, allocations: 127.2 kB / 0.8166 GB, free: 12.24 MB / 0.7761 GB Notification: Performance of sort global known variables: time 6.1e-08/0.006731, allocations: 0 / 0.8166 GB, free: 12.24 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.000167/0.006898, allocations: 21.22 kB / 0.8166 GB, free: 12.22 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.0001234/0.007022, allocations: 107.2 kB / 0.8167 GB, free: 12.11 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0001053/0.007127, allocations: 42.05 kB / 0.8168 GB, free: 12.07 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.283e-06/0.007128, allocations: 0 / 0.8168 GB, free: 12.07 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 3.196e-05/0.00716, allocations: 23.61 kB / 0.8168 GB, free: 12.04 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002059/0.007366, allocations: 19.88 kB / 0.8168 GB, free: 12.02 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004965/0.007863, allocations: 133.4 kB / 0.8169 GB, free: 11.86 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.72e-05/0.0079, allocations: 63.2 kB / 0.817 GB, free: 11.78 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 2.271e-05/0.007923, allocations: 4 kB / 0.817 GB, free: 11.78 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.65e-05/0.007949, allocations: 12.5 kB / 0.817 GB, free: 11.77 MB / 0.7761 GB Notification: Performance of SimCode: time 9.22e-07/0.00795, allocations: 0.9062 kB / 0.817 GB, free: 11.77 MB / 0.7761 GB Notification: Performance of Templates: time 0.002843/0.01079, allocations: 0.8436 MB / 0.8178 GB, free: 10.95 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.429476810153574]