Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.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.001082/0.001082, allocations: 81.95 kB / 21.47 MB, free: 3.031 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.001128/0.001128, allocations: 164.7 kB / 24.87 MB, free: 8.891 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.006/1.006, allocations: 177.1 MB / 205.3 MB, free: 5.492 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.837/1.837, allocations: 359 MB / 0.6063 GB, free: 10.88 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.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.575e-06/2.575e-06, allocations: 0 / 0.7883 GB, free: 12.22 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.59e-05/3.847e-05, allocations: 2.312 kB / 0.7883 GB, free: 12.21 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.002446/0.002484, allocations: 0.7067 MB / 0.789 GB, free: 11.53 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.001801/0.004286, allocations: 1.125 MB / 0.7901 GB, free: 10.39 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.158e-05/0.004357, allocations: 0 / 0.7901 GB, free: 10.39 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 4.008e-05/0.004397, allocations: 4.594 kB / 0.7901 GB, free: 10.39 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 9.429e-05/0.004491, allocations: 7.922 kB / 0.7901 GB, free: 10.38 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003807/0.004872, allocations: 57.94 kB / 0.7901 GB, free: 10.32 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0001457/0.005018, allocations: 75.7 kB / 0.7902 GB, free: 10.25 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001083/0.005126, allocations: 8 kB / 0.7902 GB, free: 10.24 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001244/0.005251, allocations: 39.95 kB / 0.7903 GB, free: 10.2 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 6.945e-05/0.00532, allocations: 27.89 kB / 0.7903 GB, free: 10.18 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 2.249e-05/0.005343, allocations: 4.969 kB / 0.7903 GB, free: 10.17 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 8.539e-05/0.005428, allocations: 23.98 kB / 0.7903 GB, free: 10.15 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 2.766e-05/0.005456, allocations: 15.98 kB / 0.7903 GB, free: 10.13 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 3.702e-05/0.005493, allocations: 20.66 kB / 0.7904 GB, free: 10.11 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.000187/0.00568, allocations: 63.8 kB / 0.7904 GB, free: 10.05 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.005684, allocations: 2.469 kB / 0.7904 GB, free: 10.05 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.884e-06/0.005685, allocations: 0 / 0.7904 GB, free: 10.05 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 5.41e-06/0.005691, allocations: 0 / 0.7904 GB, free: 10.05 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0006441/0.006335, allocations: 404.4 kB / 0.7908 GB, free: 9.617 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 5.227e-05/0.006387, allocations: 13.77 kB / 0.7908 GB, free: 9.605 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001413/0.006529, allocations: 16.83 kB / 0.7908 GB, free: 9.59 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001222/0.006651, allocations: 116.6 kB / 0.7909 GB, free: 9.449 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.609e-05/0.006677, allocations: 384 / 0.7909 GB, free: 9.449 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.726e-05/0.006694, allocations: 8.375 kB / 0.7909 GB, free: 9.441 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001696/0.006864, allocations: 71.52 kB / 0.791 GB, free: 9.363 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.929e-06/0.006874, allocations: 0.6875 kB / 0.791 GB, free: 9.363 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.535e-05/0.006889, allocations: 8.359 kB / 0.791 GB, free: 9.355 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.528e-06/0.006898, allocations: 5.531 kB / 0.791 GB, free: 9.352 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.602e-05/0.006954, allocations: 23.8 kB / 0.7911 GB, free: 9.328 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004801/0.007435, allocations: 277.7 kB / 0.7913 GB, free: 9.031 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001288/0.007563, allocations: 51.05 kB / 0.7914 GB, free: 8.969 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.484e-05/0.007598, allocations: 21.42 kB / 0.7914 GB, free: 8.945 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 1.942e-05/0.007618, allocations: 0 / 0.7914 GB, free: 8.945 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001201/0.007738, allocations: 81.14 kB / 0.7915 GB, free: 8.852 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=10): time 1.603e-06/0.007739, allocations: 0 / 0.7915 GB, free: 8.852 MB / 0.7448 GB Notification: Performance of matching and sorting (n=10): time 0.0002895/0.008029, allocations: 110.8 kB / 0.7916 GB, free: 8.738 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.295e-05/0.008102, allocations: 63.39 kB / 0.7916 GB, free: 8.664 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000138/0.00824, allocations: 161.9 kB / 0.7918 GB, free: 8.488 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 2.792e-05/0.008268, allocations: 33.7 kB / 0.7918 GB, free: 8.449 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 7.965e-05/0.008347, allocations: 133 kB / 0.7919 GB, free: 8.312 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 4.483e-05/0.008392, allocations: 31.77 kB / 0.792 GB, free: 8.281 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.295e-05/0.008465, allocations: 39.36 kB / 0.792 GB, free: 8.234 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.000202/0.008667, allocations: 0.4923 MB / 0.7925 GB, free: 7.73 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.018e-05/0.008707, allocations: 11.98 kB / 0.7925 GB, free: 7.719 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.945e-05/0.008777, allocations: 49.56 kB / 0.7926 GB, free: 7.66 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005115/0.009288, allocations: 55.05 kB / 0.7926 GB, free: 7.594 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.009292, allocations: 0 / 0.7926 GB, free: 7.594 MB / 0.7448 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002009/0.009492, allocations: 97.88 kB / 0.7927 GB, free: 7.492 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 2.424e-05/0.009517, allocations: 8.531 kB / 0.7927 GB, free: 7.484 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.227e-06/0.009526, allocations: 3.938 kB / 0.7927 GB, free: 7.48 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.505e-05/0.009541, allocations: 4.703 kB / 0.7927 GB, free: 7.477 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001367/0.009678, allocations: 27.94 kB / 0.7927 GB, free: 7.449 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.198e-06/0.009682, allocations: 0.5312 kB / 0.7927 GB, free: 7.449 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.666e-05/0.009728, allocations: 13.64 kB / 0.7928 GB, free: 7.438 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.142e-05/0.00974, allocations: 4 kB / 0.7928 GB, free: 7.434 MB / 0.7448 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 (firOrdHol.firstTrigger,$PRE.firOrdHol.firstTrigger,firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.c,$PRE.firOrdHol.c,firOrdHol.pre_uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.uSample,$PRE.firOrdHol.uSample,firOrdHol.tSample,$PRE.firOrdHol.tSample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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 0.0001271/0.009867, allocations: 168.5 kB / 0.7929 GB, free: 7.258 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.389e-05/0.009891, allocations: 8.453 kB / 0.7929 GB, free: 7.25 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002041/0.01009, allocations: 110 kB / 0.793 GB, free: 7.141 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.0101, allocations: 0.5938 kB / 0.793 GB, free: 7.141 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.645e-06/0.0101, allocations: 0.7812 kB / 0.793 GB, free: 7.141 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.01011, allocations: 7.938 kB / 0.793 GB, free: 7.133 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003831/0.01049, allocations: 343.6 kB / 0.7934 GB, free: 6.766 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.01049, allocations: 0 / 0.7934 GB, free: 6.766 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.741e-05/0.01055, allocations: 8 kB / 0.7934 GB, free: 6.758 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.131e-06/0.01056, allocations: 4.844 kB / 0.7934 GB, free: 6.754 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.211e-05/0.01057, allocations: 7.984 kB / 0.7934 GB, free: 6.746 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.936e-06/0.01057, allocations: 0 / 0.7934 GB, free: 6.746 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.01057, allocations: 0.7812 kB / 0.7934 GB, free: 6.746 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002239/0.0108, allocations: 247.9 kB / 0.7936 GB, free: 6.484 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 1.412e-05/0.01081, allocations: 17.16 kB / 0.7936 GB, free: 6.469 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.307e-05/0.01083, allocations: 3.938 kB / 0.7936 GB, free: 6.465 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.262e-05/0.01093, allocations: 7.984 kB / 0.7937 GB, free: 6.457 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.493e-05/0.01097, allocations: 12.83 kB / 0.7937 GB, free: 6.445 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.716e-06/0.01098, allocations: 0 / 0.7937 GB, free: 6.445 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 4.841e-05/0.01103, allocations: 124.5 kB / 0.7938 GB, free: 6.324 MB / 0.7448 GB Notification: Performance of sort global known variables: time 8.1e-08/0.01103, allocations: 4 kB / 0.7938 GB, free: 6.32 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0002949/0.01132, allocations: 19.98 kB / 0.7938 GB, free: 6.301 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: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001996/0.01152, allocations: 106 kB / 0.7939 GB, free: 6.188 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0001765/0.0117, allocations: 63.53 kB / 0.794 GB, free: 6.121 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.574e-06/0.0117, allocations: 1.812 kB / 0.794 GB, free: 6.121 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 6.639e-05/0.01177, allocations: 31.66 kB / 0.794 GB, free: 6.086 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003196/0.01209, allocations: 12.31 kB / 0.794 GB, free: 6.074 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005608/0.01265, allocations: 173.2 kB / 0.7942 GB, free: 5.879 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.777e-05/0.0127, allocations: 55.36 kB / 0.7942 GB, free: 5.805 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 3.706e-05/0.01273, allocations: 12.48 kB / 0.7942 GB, free: 5.793 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.039e-05/0.0128, allocations: 74.7 kB / 0.7943 GB, free: 5.719 MB / 0.7448 GB Notification: Performance of SimCode: time 9.32e-07/0.01281, allocations: 0 / 0.7943 GB, free: 5.719 MB / 0.7448 GB Notification: Performance of Templates: time 0.004014/0.01682, allocations: 1.217 MB / 0.7955 GB, free: 4.543 MB / 0.7448 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.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.18872257694602]