Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001433/0.001433, allocations: 71.75 kB / 20.97 MB, free: 3.578 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.001596/0.001596, allocations: 169 kB / 24.28 MB, free: 280 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 1.014/1.014, allocations: 177.1 MB / 204.6 MB, free: 5.637 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.81/1.81, allocations: 359 MB / 0.6055 GB, free: 11.02 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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_11_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_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.803e-06/1.803e-06, allocations: 0 / 0.7871 GB, free: 12.85 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.467e-05/2.647e-05, allocations: 10.19 kB / 0.7871 GB, free: 12.84 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001343/0.00137, allocations: 0.6764 MB / 0.7877 GB, free: 12.18 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.001126/0.002496, allocations: 1.101 MB / 0.7888 GB, free: 11.07 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.724e-05/0.002543, allocations: 0 / 0.7888 GB, free: 11.07 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 2.939e-05/0.002573, allocations: 3.938 kB / 0.7888 GB, free: 11.06 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 7.128e-05/0.002644, allocations: 12.44 kB / 0.7888 GB, free: 11.05 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003139/0.002958, allocations: 44.7 kB / 0.7889 GB, free: 11.01 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0001023/0.00306, allocations: 51.84 kB / 0.7889 GB, free: 10.96 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001011/0.003161, allocations: 13.02 kB / 0.7889 GB, free: 10.95 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 8.274e-05/0.003244, allocations: 27.91 kB / 0.789 GB, free: 10.92 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 4.713e-05/0.003291, allocations: 15.98 kB / 0.789 GB, free: 10.9 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 1.81e-05/0.003309, allocations: 5.406 kB / 0.789 GB, free: 10.9 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 6.664e-05/0.003376, allocations: 23.97 kB / 0.789 GB, free: 10.88 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 2.157e-05/0.003397, allocations: 7.938 kB / 0.789 GB, free: 10.87 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 3.012e-05/0.003428, allocations: 15.98 kB / 0.789 GB, free: 10.85 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0001425/0.00357, allocations: 52.81 kB / 0.7891 GB, free: 10.8 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 1.903e-06/0.003572, allocations: 0 / 0.7891 GB, free: 10.8 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.022e-06/0.003573, allocations: 4 kB / 0.7891 GB, free: 10.8 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 4.989e-06/0.003578, allocations: 1.562 kB / 0.7891 GB, free: 10.8 MB / 0.7448 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.0005004/0.004078, allocations: 388.5 kB / 0.7895 GB, free: 10.38 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.451e-05/0.004123, allocations: 9.938 kB / 0.7895 GB, free: 10.37 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001104/0.004233, allocations: 8.891 kB / 0.7895 GB, free: 10.36 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.274e-05/0.004326, allocations: 112.6 kB / 0.7896 GB, free: 10.23 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.537e-05/0.004341, allocations: 384 / 0.7896 GB, free: 10.23 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.442e-05/0.004356, allocations: 12.36 kB / 0.7896 GB, free: 10.21 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001491/0.004505, allocations: 73.17 kB / 0.7897 GB, free: 10.14 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.004513, allocations: 192 / 0.7897 GB, free: 10.14 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.125e-05/0.004524, allocations: 384 / 0.7897 GB, free: 10.14 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.006e-05/0.004534, allocations: 4.375 kB / 0.7897 GB, free: 10.13 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.132e-05/0.004575, allocations: 7.938 kB / 0.7897 GB, free: 10.12 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003869/0.004962, allocations: 272.3 kB / 0.7899 GB, free: 9.824 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 9.381e-05/0.005056, allocations: 48.64 kB / 0.79 GB, free: 9.766 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.881e-05/0.005085, allocations: 15.67 kB / 0.79 GB, free: 9.746 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 1.911e-05/0.005104, allocations: 4 kB / 0.79 GB, free: 9.742 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.828e-05/0.005192, allocations: 65.12 kB / 0.7901 GB, free: 9.664 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=6): time 1.333e-06/0.005194, allocations: 0.8125 kB / 0.7901 GB, free: 9.664 MB / 0.7448 GB Notification: Performance of matching and sorting (n=6): time 0.000191/0.005385, allocations: 73.67 kB / 0.7901 GB, free: 9.586 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.735e-05/0.005432, allocations: 60.06 kB / 0.7902 GB, free: 9.516 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.322e-05/0.005515, allocations: 165.9 kB / 0.7903 GB, free: 9.336 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.213e-05/0.005527, allocations: 27.14 kB / 0.7904 GB, free: 9.305 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 4.702e-05/0.005574, allocations: 130.8 kB / 0.7905 GB, free: 9.172 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 1.791e-05/0.005592, allocations: 15.91 kB / 0.7905 GB, free: 9.156 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.541e-05/0.005628, allocations: 31.36 kB / 0.7905 GB, free: 9.117 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001216/0.005749, allocations: 498.5 kB / 0.791 GB, free: 8.621 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.269e-05/0.005772, allocations: 7.984 kB / 0.791 GB, free: 8.613 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.069e-05/0.005813, allocations: 42.75 kB / 0.7911 GB, free: 8.555 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.3e-05/0.005876, allocations: 58.67 kB / 0.7911 GB, free: 8.48 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.005878, allocations: 4.656 kB / 0.7911 GB, free: 8.477 MB / 0.7448 GB Notification: Performance of matching and sorting (n=8) (initialization): time 9.653e-05/0.005974, allocations: 70.16 kB / 0.7912 GB, free: 8.402 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.431e-05/0.005988, allocations: 9.594 kB / 0.7912 GB, free: 8.395 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.005994, allocations: 3.984 kB / 0.7912 GB, free: 8.391 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.297e-05/0.006007, allocations: 4 kB / 0.7912 GB, free: 8.387 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.961e-05/0.006077, allocations: 11.94 kB / 0.7912 GB, free: 8.375 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.999e-06/0.006082, allocations: 0.6562 kB / 0.7912 GB, free: 8.375 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.087e-05/0.006113, allocations: 17.23 kB / 0.7912 GB, free: 8.359 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.027e-06/0.006122, allocations: 4 kB / 0.7912 GB, free: 8.355 MB / 0.7448 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.635e-05/0.006198, allocations: 156.6 kB / 0.7914 GB, free: 8.191 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.651e-05/0.006214, allocations: 17.05 kB / 0.7914 GB, free: 8.176 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001355/0.00635, allocations: 70.05 kB / 0.7915 GB, free: 8.105 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.006353, allocations: 4 kB / 0.7915 GB, free: 8.102 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.117e-06/0.006357, allocations: 1.375 kB / 0.7915 GB, free: 8.102 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.006363, allocations: 0 / 0.7915 GB, free: 8.102 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004403/0.006803, allocations: 318 kB / 0.7918 GB, free: 7.75 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.006805, allocations: 0 / 0.7918 GB, free: 7.75 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.2e-05/0.006837, allocations: 13.73 kB / 0.7918 GB, free: 7.738 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.657e-06/0.00684, allocations: 4 kB / 0.7918 GB, free: 7.734 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.083e-06/0.006847, allocations: 4 kB / 0.7918 GB, free: 7.73 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.344e-06/0.00685, allocations: 160 / 0.7918 GB, free: 7.73 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.006851, allocations: 0 / 0.7918 GB, free: 7.73 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001173/0.006968, allocations: 225.1 kB / 0.792 GB, free: 7.492 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 5.911e-06/0.006974, allocations: 0 / 0.792 GB, free: 7.492 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.345e-05/0.006987, allocations: 7.984 kB / 0.792 GB, free: 7.484 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.273e-05/0.00703, allocations: 4.719 kB / 0.792 GB, free: 7.48 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.707e-05/0.007067, allocations: 3.984 kB / 0.792 GB, free: 7.477 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.441e-05/0.007082, allocations: 4.875 kB / 0.792 GB, free: 7.473 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 3.765e-05/0.007119, allocations: 127.2 kB / 0.7922 GB, free: 7.348 MB / 0.7448 GB Notification: Performance of sort global known variables: time 6e-08/0.007119, allocations: 1.562 kB / 0.7922 GB, free: 7.348 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0001715/0.007291, allocations: 11.94 kB / 0.7922 GB, free: 7.336 MB / 0.7448 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.0001571/0.007448, allocations: 111.2 kB / 0.7923 GB, free: 7.215 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0001284/0.007576, allocations: 44.62 kB / 0.7923 GB, free: 7.168 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.007578, allocations: 3.312 kB / 0.7923 GB, free: 7.168 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 3.888e-05/0.007617, allocations: 19.67 kB / 0.7923 GB, free: 7.145 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002248/0.007842, allocations: 19.81 kB / 0.7924 GB, free: 7.125 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004975/0.008339, allocations: 142.2 kB / 0.7925 GB, free: 6.957 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.634e-05/0.008376, allocations: 59.34 kB / 0.7926 GB, free: 6.879 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 2.071e-05/0.008396, allocations: 0.5 kB / 0.7926 GB, free: 6.879 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.287e-05/0.008419, allocations: 14.44 kB / 0.7926 GB, free: 6.867 MB / 0.7448 GB Notification: Performance of SimCode: time 1.072e-06/0.00842, allocations: 0 / 0.7926 GB, free: 6.867 MB / 0.7448 GB Notification: Performance of Templates: time 0.002636/0.01106, allocations: 0.8537 MB / 0.7934 GB, free: 6.051 MB / 0.7448 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.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.302607198012993]