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.001045/0.001045, allocations: 83.59 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.001404/0.001404, allocations: 165 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.939/0.939, allocations: 177.1 MB / 204.2 MB, free: 5.648 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.8/1.8, allocations: 359 MB / 0.6052 GB, free: 10.99 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 2.024e-06/2.024e-06, allocations: 0 / 0.7871 GB, free: 12.49 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.464e-05/2.666e-05, allocations: 7.297 kB / 0.7871 GB, free: 12.48 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001322/0.001349, allocations: 0.6787 MB / 0.7878 GB, free: 11.82 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.001155/0.002504, allocations: 1.108 MB / 0.7888 GB, free: 10.7 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.523e-05/0.002549, allocations: 1 kB / 0.7888 GB, free: 10.7 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 3.223e-05/0.002581, allocations: 3.938 kB / 0.7888 GB, free: 10.7 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 6.906e-05/0.00265, allocations: 8.609 kB / 0.7888 GB, free: 10.69 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.000321/0.002971, allocations: 50 kB / 0.7889 GB, free: 10.64 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 9.709e-05/0.003068, allocations: 51.83 kB / 0.7889 GB, free: 10.59 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001023/0.003171, allocations: 12 kB / 0.789 GB, free: 10.58 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 7.336e-05/0.003244, allocations: 23.97 kB / 0.789 GB, free: 10.56 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 4.391e-05/0.003288, allocations: 19.97 kB / 0.789 GB, free: 10.54 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 1.745e-05/0.003305, allocations: 4 kB / 0.789 GB, free: 10.54 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 5.818e-05/0.003363, allocations: 20.98 kB / 0.789 GB, free: 10.52 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 2.081e-05/0.003384, allocations: 11.98 kB / 0.789 GB, free: 10.5 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 2.771e-05/0.003412, allocations: 8 kB / 0.789 GB, free: 10.5 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0001657/0.003578, allocations: 68.28 kB / 0.7891 GB, free: 10.43 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.003581, allocations: 0 / 0.7891 GB, free: 10.43 MB / 0.7448 GB Notification: Performance of FrontEnd: time 7.52e-07/0.003582, allocations: 1.156 kB / 0.7891 GB, free: 10.43 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 8.706e-06/0.003591, allocations: 0 / 0.7891 GB, free: 10.43 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.0006898/0.004281, allocations: 382.7 kB / 0.7895 GB, free: 10.02 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 5.188e-05/0.004333, allocations: 8.031 kB / 0.7895 GB, free: 10.01 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001542/0.004487, allocations: 16.88 kB / 0.7895 GB, free: 9.996 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001302/0.004617, allocations: 108.6 kB / 0.7896 GB, free: 9.863 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.248e-05/0.004639, allocations: 4.375 kB / 0.7896 GB, free: 9.859 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.546e-05/0.004655, allocations: 6.406 kB / 0.7896 GB, free: 9.855 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002025/0.004857, allocations: 66.88 kB / 0.7897 GB, free: 9.781 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.054e-05/0.004868, allocations: 192 / 0.7897 GB, free: 9.781 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.247e-05/0.00488, allocations: 384 / 0.7897 GB, free: 9.781 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.226e-05/0.004893, allocations: 4.375 kB / 0.7897 GB, free: 9.777 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.38e-05/0.004936, allocations: 17.48 kB / 0.7897 GB, free: 9.762 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003567/0.005293, allocations: 271.7 kB / 0.79 GB, free: 9.461 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 8.923e-05/0.005382, allocations: 42.98 kB / 0.79 GB, free: 9.406 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.801e-05/0.00541, allocations: 25.5 kB / 0.79 GB, free: 9.379 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 1.791e-05/0.005428, allocations: 0 / 0.79 GB, free: 9.379 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.872e-05/0.005517, allocations: 64.98 kB / 0.7901 GB, free: 9.301 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=6): time 1.292e-06/0.005518, allocations: 0 / 0.7901 GB, free: 9.301 MB / 0.7448 GB Notification: Performance of matching and sorting (n=6): time 0.0001905/0.005709, allocations: 70.75 kB / 0.7901 GB, free: 9.227 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.936e-05/0.005758, allocations: 55.34 kB / 0.7902 GB, free: 9.16 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.651e-05/0.005835, allocations: 165.9 kB / 0.7904 GB, free: 8.98 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.165e-05/0.005846, allocations: 27.64 kB / 0.7904 GB, free: 8.949 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 4.552e-05/0.005892, allocations: 134.8 kB / 0.7905 GB, free: 8.812 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 2.116e-05/0.005913, allocations: 23.95 kB / 0.7905 GB, free: 8.789 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.377e-05/0.005947, allocations: 27.38 kB / 0.7906 GB, free: 8.754 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001178/0.006065, allocations: 496.1 kB / 0.791 GB, free: 8.258 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.292e-05/0.006088, allocations: 10.59 kB / 0.791 GB, free: 8.25 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.754e-05/0.006125, allocations: 42.73 kB / 0.7911 GB, free: 8.191 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.602e-05/0.006191, allocations: 58.69 kB / 0.7911 GB, free: 8.117 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.006194, allocations: 0 / 0.7911 GB, free: 8.117 MB / 0.7448 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001012/0.006295, allocations: 78.31 kB / 0.7912 GB, free: 8.035 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.453e-05/0.00631, allocations: 8.469 kB / 0.7912 GB, free: 8.027 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.69e-06/0.006315, allocations: 4 kB / 0.7912 GB, free: 8.023 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.419e-05/0.006329, allocations: 1.656 kB / 0.7912 GB, free: 8.023 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.742e-05/0.006407, allocations: 15.92 kB / 0.7912 GB, free: 8.008 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.21e-06/0.006412, allocations: 0 / 0.7912 GB, free: 8.008 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.671e-05/0.006439, allocations: 7.938 kB / 0.7913 GB, free: 8 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.436e-06/0.006447, allocations: 4.812 kB / 0.7913 GB, free: 7.996 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.368e-05/0.006521, allocations: 161.6 kB / 0.7914 GB, free: 7.828 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.088e-05/0.006532, allocations: 11.89 kB / 0.7914 GB, free: 7.816 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001128/0.006645, allocations: 74.55 kB / 0.7915 GB, free: 7.742 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.006648, allocations: 5.156 kB / 0.7915 GB, free: 7.738 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.006654, allocations: 4.062 kB / 0.7915 GB, free: 7.734 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.868e-06/0.006658, allocations: 0 / 0.7915 GB, free: 7.734 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002087/0.006866, allocations: 318.8 kB / 0.7918 GB, free: 7.383 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.006868, allocations: 0 / 0.7918 GB, free: 7.383 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.191e-05/0.0069, allocations: 7.938 kB / 0.7918 GB, free: 7.375 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.252e-06/0.006906, allocations: 4.844 kB / 0.7918 GB, free: 7.371 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.925e-06/0.006914, allocations: 0 / 0.7918 GB, free: 7.371 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.006916, allocations: 3.938 kB / 0.7918 GB, free: 7.367 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.006919, allocations: 4.828 kB / 0.7918 GB, free: 7.363 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001413/0.00706, allocations: 219.8 kB / 0.792 GB, free: 7.129 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 9.708e-06/0.00707, allocations: 5.281 kB / 0.792 GB, free: 7.125 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.26e-05/0.007082, allocations: 0 / 0.792 GB, free: 7.125 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.888e-05/0.007131, allocations: 8 kB / 0.792 GB, free: 7.117 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.612e-05/0.007177, allocations: 4.828 kB / 0.7921 GB, free: 7.113 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.612e-05/0.007193, allocations: 4 kB / 0.7921 GB, free: 7.109 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 5.045e-05/0.007244, allocations: 128.2 kB / 0.7922 GB, free: 6.984 MB / 0.7448 GB Notification: Performance of sort global known variables: time 5.1e-08/0.007244, allocations: 0 / 0.7922 GB, free: 6.984 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0001763/0.00742, allocations: 16 kB / 0.7922 GB, free: 6.969 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.0001881/0.007608, allocations: 100.6 kB / 0.7923 GB, free: 6.859 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0001572/0.007766, allocations: 40.97 kB / 0.7923 GB, free: 6.816 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.007767, allocations: 0 / 0.7923 GB, free: 6.816 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 4.152e-05/0.007809, allocations: 23.62 kB / 0.7924 GB, free: 6.789 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002478/0.008057, allocations: 23.27 kB / 0.7924 GB, free: 6.77 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005138/0.008571, allocations: 146.2 kB / 0.7925 GB, free: 6.598 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.065e-05/0.008611, allocations: 55.36 kB / 0.7926 GB, free: 6.523 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 2.411e-05/0.008635, allocations: 8 kB / 0.7926 GB, free: 6.516 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.601e-05/0.008661, allocations: 12.98 kB / 0.7926 GB, free: 6.504 MB / 0.7448 GB Notification: Performance of SimCode: time 7.62e-07/0.008662, allocations: 1.344 kB / 0.7926 GB, free: 6.504 MB / 0.7448 GB Notification: Performance of Templates: time 0.002851/0.01151, allocations: 0.9044 MB / 0.7935 GB, free: 5.633 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: 4.9952832739800215]