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.0009669/0.0009669, 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.0009293/0.0009293, 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 0.956/0.956, allocations: 177.1 MB / 204.2 MB, free: 5.258 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.879/1.879, allocations: 359 MB / 0.6052 GB, free: 11 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.004e-06/2.004e-06, allocations: 0 / 0.7871 GB, free: 12.52 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.386e-05/2.586e-05, allocations: 2.906 kB / 0.7871 GB, free: 12.51 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001324/0.00135, allocations: 0.6751 MB / 0.7877 GB, free: 11.86 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.001114/0.002465, allocations: 1.11 MB / 0.7888 GB, free: 10.73 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.946e-05/0.002504, allocations: 4 kB / 0.7888 GB, free: 10.73 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 2.706e-05/0.002531, allocations: 0 / 0.7888 GB, free: 10.73 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 6.414e-05/0.002595, allocations: 7.875 kB / 0.7888 GB, free: 10.72 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002776/0.002873, allocations: 48.73 kB / 0.7889 GB, free: 10.68 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 8.334e-05/0.002956, allocations: 47.84 kB / 0.7889 GB, free: 10.63 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 9.023e-05/0.003047, allocations: 12.48 kB / 0.7889 GB, free: 10.62 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 7.837e-05/0.003125, allocations: 33.25 kB / 0.789 GB, free: 10.59 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 4.054e-05/0.003165, allocations: 11.98 kB / 0.789 GB, free: 10.57 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 1.568e-05/0.003181, allocations: 4 kB / 0.789 GB, free: 10.57 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 6.023e-05/0.003241, allocations: 27.91 kB / 0.789 GB, free: 10.54 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 2.143e-05/0.003263, allocations: 12.52 kB / 0.789 GB, free: 10.53 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 2.71e-05/0.00329, allocations: 12.62 kB / 0.789 GB, free: 10.52 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0001229/0.003413, allocations: 55.8 kB / 0.7891 GB, free: 10.46 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 1.744e-06/0.003415, allocations: 1.031 kB / 0.7891 GB, free: 10.46 MB / 0.7448 GB Notification: Performance of FrontEnd: time 9.32e-07/0.003415, allocations: 0 / 0.7891 GB, free: 10.46 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 4.328e-06/0.00342, allocations: 0 / 0.7891 GB, free: 10.46 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.000422/0.003842, allocations: 382 kB / 0.7895 GB, free: 10.05 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.513e-05/0.003877, allocations: 8.031 kB / 0.7895 GB, free: 10.05 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.579e-05/0.003973, allocations: 25.78 kB / 0.7895 GB, free: 10.02 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.546e-05/0.004048, allocations: 104.6 kB / 0.7896 GB, free: 9.895 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.908e-06/0.004058, allocations: 5.125 kB / 0.7896 GB, free: 9.891 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.118e-05/0.004069, allocations: 4.375 kB / 0.7896 GB, free: 9.887 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001212/0.00419, allocations: 69.45 kB / 0.7897 GB, free: 9.812 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.975e-06/0.004198, allocations: 192 / 0.7897 GB, free: 9.812 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.877e-06/0.004207, allocations: 384 / 0.7897 GB, free: 9.812 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.131e-06/0.004213, allocations: 384 / 0.7897 GB, free: 9.812 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.791e-05/0.004251, allocations: 19.92 kB / 0.7897 GB, free: 9.793 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003227/0.004574, allocations: 275.7 kB / 0.7899 GB, free: 9.488 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 8.153e-05/0.004656, allocations: 36.75 kB / 0.79 GB, free: 9.441 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.763e-05/0.004683, allocations: 19.8 kB / 0.79 GB, free: 9.418 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 2.979e-05/0.004713, allocations: 3.984 kB / 0.79 GB, free: 9.414 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.926e-05/0.004792, allocations: 68.98 kB / 0.7901 GB, free: 9.332 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=6): time 9.82e-07/0.004793, allocations: 4.469 kB / 0.7901 GB, free: 9.328 MB / 0.7448 GB Notification: Performance of matching and sorting (n=6): time 0.0001761/0.004969, allocations: 66.41 kB / 0.7901 GB, free: 9.258 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.357e-05/0.005003, allocations: 51.41 kB / 0.7902 GB, free: 9.195 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.346e-05/0.005076, allocations: 170.4 kB / 0.7903 GB, free: 9.012 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.283e-05/0.005089, allocations: 29.7 kB / 0.7904 GB, free: 8.977 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 4.55e-05/0.005135, allocations: 136.5 kB / 0.7905 GB, free: 8.84 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 1.798e-05/0.005153, allocations: 15.89 kB / 0.7905 GB, free: 8.824 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.456e-05/0.005187, allocations: 31.31 kB / 0.7905 GB, free: 8.785 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001095/0.005297, allocations: 496.1 kB / 0.791 GB, free: 8.289 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.257e-05/0.005319, allocations: 12.53 kB / 0.791 GB, free: 8.277 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.723e-05/0.005357, allocations: 47.34 kB / 0.7911 GB, free: 8.215 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.91e-05/0.005416, allocations: 51.53 kB / 0.7911 GB, free: 8.148 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/0.005419, allocations: 5.156 kB / 0.7911 GB, free: 8.145 MB / 0.7448 GB Notification: Performance of matching and sorting (n=8) (initialization): time 8.92e-05/0.005508, allocations: 74.92 kB / 0.7912 GB, free: 8.066 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.375e-05/0.005522, allocations: 13.66 kB / 0.7912 GB, free: 8.055 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.005526, allocations: 0 / 0.7912 GB, free: 8.055 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.706e-05/0.005543, allocations: 0 / 0.7912 GB, free: 8.055 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.462e-05/0.005608, allocations: 9.844 kB / 0.7912 GB, free: 8.047 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.263e-06/0.005615, allocations: 7.984 kB / 0.7912 GB, free: 8.039 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.194e-05/0.005647, allocations: 4 kB / 0.7912 GB, free: 8.035 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.194e-06/0.005654, allocations: 160 / 0.7912 GB, free: 8.035 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 6.764e-05/0.005722, allocations: 165.9 kB / 0.7914 GB, free: 7.863 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.071e-05/0.005733, allocations: 11.89 kB / 0.7914 GB, free: 7.852 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003751/0.006108, allocations: 78.09 kB / 0.7915 GB, free: 7.773 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.382e-06/0.006109, allocations: 0 / 0.7915 GB, free: 7.773 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.516e-06/0.006113, allocations: 1.688 kB / 0.7915 GB, free: 7.773 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.006116, allocations: 0 / 0.7915 GB, free: 7.773 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000201/0.006318, allocations: 325.3 kB / 0.7918 GB, free: 7.414 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.514e-06/0.00632, allocations: 5.938 kB / 0.7918 GB, free: 7.41 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.724e-05/0.006347, allocations: 7.984 kB / 0.7918 GB, free: 7.402 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.006349, allocations: 0 / 0.7918 GB, free: 7.402 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.923e-06/0.006356, allocations: 0 / 0.7918 GB, free: 7.402 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.006357, allocations: 0 / 0.7918 GB, free: 7.402 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.006359, allocations: 6.391 kB / 0.7918 GB, free: 7.398 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001095/0.006469, allocations: 223.8 kB / 0.792 GB, free: 7.16 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 6.603e-06/0.006476, allocations: 4 kB / 0.792 GB, free: 7.156 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.069e-05/0.006486, allocations: 0 / 0.792 GB, free: 7.156 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.264e-05/0.006529, allocations: 8 kB / 0.792 GB, free: 7.148 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.354e-05/0.006562, allocations: 7.984 kB / 0.792 GB, free: 7.141 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.042e-05/0.006573, allocations: 0.5312 kB / 0.792 GB, free: 7.141 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 4.188e-05/0.006615, allocations: 129.1 kB / 0.7922 GB, free: 7.016 MB / 0.7448 GB Notification: Performance of sort global known variables: time 7e-08/0.006615, allocations: 0 / 0.7922 GB, free: 7.016 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0001635/0.006778, allocations: 16 kB / 0.7922 GB, free: 7 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.0001027/0.006881, allocations: 99.19 kB / 0.7923 GB, free: 6.891 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 9.856e-05/0.00698, allocations: 42.17 kB / 0.7923 GB, free: 6.848 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.122e-06/0.006981, allocations: 0 / 0.7923 GB, free: 6.848 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 3.291e-05/0.007014, allocations: 27.67 kB / 0.7923 GB, free: 6.816 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001863/0.0072, allocations: 22.03 kB / 0.7924 GB, free: 6.797 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004289/0.007629, allocations: 151 kB / 0.7925 GB, free: 6.621 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.115e-05/0.00766, allocations: 56.14 kB / 0.7926 GB, free: 6.547 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 2.053e-05/0.00768, allocations: 5.156 kB / 0.7926 GB, free: 6.543 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.333e-05/0.007704, allocations: 12.5 kB / 0.7926 GB, free: 6.531 MB / 0.7448 GB Notification: Performance of SimCode: time 5.01e-07/0.007704, allocations: 0 / 0.7926 GB, free: 6.531 MB / 0.7448 GB Notification: Performance of Templates: time 0.002474/0.01018, allocations: 0.8479 MB / 0.7934 GB, free: 5.715 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.1455830140039325]