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.001404/0.001404, allocations: 80.92 kB / 20.75 MB, free: 3.742 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.001687/0.001687, allocations: 161 kB / 24.17 MB, free: 332 kB / 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.9982/0.9982, allocations: 177.1 MB / 204.6 MB, free: 5.492 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo): time 1.916/1.916, allocations: 377.9 MB / 0.624 GB, free: 8.344 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-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.194e-06/2.194e-06, allocations: 0 / 0.76 GB, free: 6.672 MB / 0.7136 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.223e-05/2.443e-05, allocations: 3.078 kB / 0.76 GB, free: 6.668 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001421/0.001446, allocations: 0.6793 MB / 0.7607 GB, free: 6.008 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.00143/0.002876, allocations: 1.122 MB / 0.7618 GB, free: 4.875 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.906e-05/0.002925, allocations: 0 / 0.7618 GB, free: 4.875 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 3.02e-05/0.002955, allocations: 3.938 kB / 0.7618 GB, free: 4.871 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 7.216e-05/0.003027, allocations: 12.34 kB / 0.7618 GB, free: 4.863 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002824/0.00331, allocations: 43.83 kB / 0.7618 GB, free: 4.82 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 9.998e-05/0.00341, allocations: 48.11 kB / 0.7619 GB, free: 4.781 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 7.935e-05/0.003489, allocations: 9.125 kB / 0.7619 GB, free: 4.773 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 9.436e-05/0.003583, allocations: 34.03 kB / 0.7619 GB, free: 4.742 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 5.024e-05/0.003634, allocations: 13.41 kB / 0.7619 GB, free: 4.73 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 1.501e-05/0.003649, allocations: 4.969 kB / 0.7619 GB, free: 4.727 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 6.736e-05/0.003716, allocations: 24.8 kB / 0.7619 GB, free: 4.703 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 2.285e-05/0.003739, allocations: 18.27 kB / 0.762 GB, free: 4.688 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 2.076e-05/0.00376, allocations: 8.656 kB / 0.762 GB, free: 4.68 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.0001128/0.003873, allocations: 57.48 kB / 0.762 GB, free: 4.625 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 2.445e-06/0.003875, allocations: 0 / 0.762 GB, free: 4.625 MB / 0.7136 GB Notification: Performance of FrontEnd: time 9.92e-07/0.003876, allocations: 1.625 kB / 0.762 GB, free: 4.625 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 3.196e-06/0.003879, allocations: 0 / 0.762 GB, free: 4.625 MB / 0.7136 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.0003529/0.004232, allocations: 257.8 kB / 0.7623 GB, free: 4.348 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.18e-05/0.004264, allocations: 8.031 kB / 0.7623 GB, free: 4.34 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.303e-05/0.004347, allocations: 12.92 kB / 0.7623 GB, free: 4.328 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.784e-05/0.004425, allocations: 111.8 kB / 0.7624 GB, free: 4.195 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.638e-06/0.004434, allocations: 384 / 0.7624 GB, free: 4.195 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.245e-05/0.004447, allocations: 8.375 kB / 0.7624 GB, free: 4.188 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001023/0.004549, allocations: 62.92 kB / 0.7625 GB, free: 4.117 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.713e-06/0.004556, allocations: 192 / 0.7625 GB, free: 4.117 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.935e-06/0.004564, allocations: 1.125 kB / 0.7625 GB, free: 4.117 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.96e-06/0.004569, allocations: 384 / 0.7625 GB, free: 4.117 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.204e-05/0.004591, allocations: 8.688 kB / 0.7625 GB, free: 4.109 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002386/0.004829, allocations: 172.1 kB / 0.7626 GB, free: 3.926 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 6.75e-05/0.004897, allocations: 35.39 kB / 0.7627 GB, free: 3.883 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.356e-05/0.00491, allocations: 11.05 kB / 0.7627 GB, free: 3.871 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.792e-05/0.004928, allocations: 7.984 kB / 0.7627 GB, free: 3.863 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.403e-05/0.004992, allocations: 47.53 kB / 0.7627 GB, free: 3.805 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=6): time 1.262e-06/0.004994, allocations: 0 / 0.7627 GB, free: 3.805 MB / 0.7136 GB Notification: Performance of matching and sorting (n=6): time 0.0001119/0.005106, allocations: 73.48 kB / 0.7628 GB, free: 3.727 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.528e-05/0.005141, allocations: 52.88 kB / 0.7629 GB, free: 3.664 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.104e-05/0.005192, allocations: 110.7 kB / 0.763 GB, free: 3.543 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.242e-05/0.005204, allocations: 29.7 kB / 0.763 GB, free: 3.508 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 2.843e-05/0.005233, allocations: 84.14 kB / 0.7631 GB, free: 3.422 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 1.425e-05/0.005247, allocations: 13.14 kB / 0.7631 GB, free: 3.41 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.992e-05/0.005277, allocations: 25.7 kB / 0.7631 GB, free: 3.379 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 6.815e-05/0.005345, allocations: 314.8 kB / 0.7634 GB, free: 3.062 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.17e-05/0.005357, allocations: 5.25 kB / 0.7634 GB, free: 3.059 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.725e-05/0.005384, allocations: 31.42 kB / 0.7634 GB, free: 3.016 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.8e-05/0.005432, allocations: 54.42 kB / 0.7635 GB, free: 2.953 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.524e-06/0.005434, allocations: 0 / 0.7635 GB, free: 2.953 MB / 0.7136 GB Notification: Performance of matching and sorting (n=8) (initialization): time 7.909e-05/0.005514, allocations: 69.55 kB / 0.7636 GB, free: 2.879 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.101e-05/0.005525, allocations: 4 kB / 0.7636 GB, free: 2.875 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-06/0.005529, allocations: 0 / 0.7636 GB, free: 2.875 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.346e-05/0.005542, allocations: 7.938 kB / 0.7636 GB, free: 2.867 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.998e-05/0.005602, allocations: 14.73 kB / 0.7636 GB, free: 2.855 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.008e-06/0.005606, allocations: 0 / 0.7636 GB, free: 2.855 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.565e-05/0.005632, allocations: 7.953 kB / 0.7636 GB, free: 2.848 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.382e-06/0.005638, allocations: 0 / 0.7636 GB, free: 2.848 MB / 0.7136 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 6.47e-05/0.005703, allocations: 121.8 kB / 0.7637 GB, free: 2.719 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.236e-06/0.005711, allocations: 4 kB / 0.7637 GB, free: 2.715 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.92e-05/0.005791, allocations: 54.11 kB / 0.7638 GB, free: 2.656 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.005795, allocations: 9.25 kB / 0.7638 GB, free: 2.648 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.634e-06/0.005796, allocations: 0 / 0.7638 GB, free: 2.648 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.0058, allocations: 0 / 0.7638 GB, free: 2.648 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001624/0.005962, allocations: 207.4 kB / 0.764 GB, free: 2.422 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.005964, allocations: 0 / 0.764 GB, free: 2.422 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.496e-05/0.005989, allocations: 5.125 kB / 0.764 GB, free: 2.418 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.005991, allocations: 3.062 kB / 0.764 GB, free: 2.418 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.233e-06/0.005998, allocations: 7.922 kB / 0.764 GB, free: 2.41 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.006002, allocations: 4 kB / 0.764 GB, free: 2.406 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.006003, allocations: 0 / 0.764 GB, free: 2.406 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.799e-05/0.006081, allocations: 147.5 kB / 0.7641 GB, free: 2.246 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 8.937e-06/0.00609, allocations: 11.94 kB / 0.7641 GB, free: 2.234 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.052e-05/0.0061, allocations: 7.922 kB / 0.7642 GB, free: 2.227 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.891e-05/0.006139, allocations: 7.938 kB / 0.7642 GB, free: 2.219 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.446e-05/0.006163, allocations: 7.109 kB / 0.7642 GB, free: 2.215 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.015e-05/0.006174, allocations: 8 kB / 0.7642 GB, free: 2.207 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 1.274e-05/0.006186, allocations: 8.859 kB / 0.7642 GB, free: 2.195 MB / 0.7136 GB Notification: Performance of sort global known variables: time 5e-08/0.006186, allocations: 0 / 0.7642 GB, free: 2.195 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.000139/0.006325, allocations: 12 kB / 0.7642 GB, free: 2.184 MB / 0.7136 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.0001092/0.006435, allocations: 80.41 kB / 0.7643 GB, free: 2.098 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 6.98e-05/0.006504, allocations: 34.59 kB / 0.7643 GB, free: 2.062 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.006507, allocations: 4 kB / 0.7643 GB, free: 2.059 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 2.522e-05/0.006532, allocations: 12.86 kB / 0.7643 GB, free: 2.043 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001308/0.006663, allocations: 12.52 kB / 0.7643 GB, free: 2.031 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003636/0.007026, allocations: 155.6 kB / 0.7645 GB, free: 1.855 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.081e-05/0.007057, allocations: 55.36 kB / 0.7645 GB, free: 1.781 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 2.094e-05/0.007078, allocations: 3.984 kB / 0.7645 GB, free: 1.777 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.415e-05/0.007122, allocations: 55.38 kB / 0.7646 GB, free: 1.723 MB / 0.7136 GB Notification: Performance of SimCode: time 5.91e-07/0.007123, allocations: 0 / 0.7646 GB, free: 1.723 MB / 0.7136 GB Notification: Performance of Templates: time 0.002427/0.00955, allocations: 0.8612 MB / 0.7654 GB, free: 0.9102 MB / 0.7136 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: 4.968603740911931]