Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001619/0.001619, allocations: 111.3 kB / 15.23 MB, free: 0.6406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002463/0.002463, allocations: 198.1 kB / 16.14 MB, free: 6.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.626/1.626, allocations: 222.9 MB / 239.8 MB, free: 4.641 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.226/3.226, allocations: 472.6 MB / 0.7447 GB, free: 5.012 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001882/0.001882, allocations: 64.25 kB / 0.9114 GB, free: 33.62 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3709/0.3728, allocations: 159.9 MB / 1.068 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.00222/0.3751, allocations: 0.7308 MB / 1.068 GB, free: 10.18 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001518/0.3766, allocations: 1.077 MB / 1.069 GB, free: 9.094 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.325e-05/0.3767, allocations: 0 / 1.069 GB, free: 9.094 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.39e-05/0.3768, allocations: 7.984 kB / 1.069 GB, free: 9.086 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.301e-05/0.3768, allocations: 3.938 kB / 1.069 GB, free: 9.082 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002778/0.3771, allocations: 43.89 kB / 1.069 GB, free: 9.039 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 9.961e-05/0.3772, allocations: 55.91 kB / 1.069 GB, free: 8.984 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001126/0.3774, allocations: 19.92 kB / 1.069 GB, free: 8.965 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 8.23e-05/0.3774, allocations: 23.91 kB / 1.069 GB, free: 8.941 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.66e-05/0.3775, allocations: 31.84 kB / 1.069 GB, free: 8.91 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.942e-05/0.3775, allocations: 4 kB / 1.069 GB, free: 8.906 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 7.454e-05/0.3776, allocations: 19.98 kB / 1.07 GB, free: 8.887 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.285e-05/0.3777, allocations: 15.97 kB / 1.07 GB, free: 8.871 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.729e-05/0.3777, allocations: 27.86 kB / 1.07 GB, free: 8.844 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001507/0.3779, allocations: 71.75 kB / 1.07 GB, free: 8.773 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.3779, allocations: 0 / 1.07 GB, free: 8.773 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.514e-06/0.3779, allocations: 4 kB / 1.07 GB, free: 8.77 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 9.578e-06/0.3779, allocations: 0 / 1.07 GB, free: 8.77 MB / 0.8262 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.0007045/0.3786, allocations: 379.7 kB / 1.07 GB, free: 8.348 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.063e-05/0.3787, allocations: 12.03 kB / 1.07 GB, free: 8.336 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.81e-05/0.3787, allocations: 12.83 kB / 1.07 GB, free: 8.324 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001332/0.3789, allocations: 164.3 kB / 1.07 GB, free: 8.125 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.264e-05/0.3789, allocations: 4.375 kB / 1.07 GB, free: 8.121 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.305e-05/0.3789, allocations: 8.375 kB / 1.07 GB, free: 8.113 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002476/0.3792, allocations: 86.14 kB / 1.07 GB, free: 8.023 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.222e-05/0.3792, allocations: 192 / 1.07 GB, free: 8.023 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.498e-05/0.3792, allocations: 7.875 kB / 1.07 GB, free: 8.016 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.3792, allocations: 0 / 1.07 GB, free: 8.016 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002232/0.3794, allocations: 55.95 kB / 1.07 GB, free: 7.961 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005454/0.38, allocations: 316.7 kB / 1.071 GB, free: 7.602 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002045/0.3802, allocations: 86.41 kB / 1.071 GB, free: 7.508 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001213/0.3804, allocations: 48.83 kB / 1.071 GB, free: 7.457 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.667e-05/0.3804, allocations: 3.984 kB / 1.071 GB, free: 7.453 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002549/0.3807, allocations: 87.36 kB / 1.071 GB, free: 7.355 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=10): time 1.553e-06/0.3807, allocations: 0 / 1.071 GB, free: 7.355 MB / 0.8262 GB Notification: Performance of matching and sorting (n=10): time 0.0005523/0.3812, allocations: 177.6 kB / 1.071 GB, free: 7.176 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.572e-05/0.3813, allocations: 59.34 kB / 1.071 GB, free: 7.105 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001607/0.3814, allocations: 109.8 kB / 1.071 GB, free: 6.988 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.494e-05/0.3815, allocations: 25.7 kB / 1.071 GB, free: 6.957 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.966e-05/0.3815, allocations: 88.38 kB / 1.071 GB, free: 6.863 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.092e-05/0.3816, allocations: 27.64 kB / 1.071 GB, free: 6.836 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.392e-05/0.3816, allocations: 33.7 kB / 1.071 GB, free: 6.797 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001456/0.3818, allocations: 318.8 kB / 1.072 GB, free: 6.477 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001342/0.3819, allocations: 35.97 kB / 1.072 GB, free: 6.441 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001428/0.3821, allocations: 64.36 kB / 1.072 GB, free: 6.371 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002584/0.3824, allocations: 114.3 kB / 1.072 GB, free: 6.25 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.3824, allocations: 0 / 1.072 GB, free: 6.25 MB / 0.8262 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003334/0.3827, allocations: 145.5 kB / 1.072 GB, free: 6.102 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.11e-05/0.3827, allocations: 4 kB / 1.072 GB, free: 6.098 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.3828, allocations: 0 / 1.072 GB, free: 6.098 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.99e-05/0.3828, allocations: 4 kB / 1.072 GB, free: 6.094 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001483/0.3829, allocations: 15.98 kB / 1.072 GB, free: 6.078 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.858e-06/0.3829, allocations: 8.062 kB / 1.072 GB, free: 6.07 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.873e-05/0.383, allocations: 15.83 kB / 1.072 GB, free: 6.055 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.603e-05/0.3831, allocations: 8 kB / 1.072 GB, free: 6.047 MB / 0.8262 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.0001437/0.3832, allocations: 122.6 kB / 1.072 GB, free: 5.918 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.295e-05/0.3832, allocations: 4 kB / 1.072 GB, free: 5.914 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003777/0.3836, allocations: 149.9 kB / 1.072 GB, free: 5.762 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.016e-06/0.3836, allocations: 4 kB / 1.072 GB, free: 5.758 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.3836, allocations: 0 / 1.072 GB, free: 5.758 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-06/0.3836, allocations: 0 / 1.072 GB, free: 5.758 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005712/0.3842, allocations: 414.3 kB / 1.073 GB, free: 5.297 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.946e-06/0.3842, allocations: 3.984 kB / 1.073 GB, free: 5.293 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.809e-05/0.3843, allocations: 8 kB / 1.073 GB, free: 5.285 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.29e-06/0.3843, allocations: 0 / 1.073 GB, free: 5.285 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.243e-05/0.3843, allocations: 7.922 kB / 1.073 GB, free: 5.277 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.126e-06/0.3843, allocations: 7.984 kB / 1.073 GB, free: 5.27 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.3843, allocations: 256 / 1.073 GB, free: 5.27 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003473/0.3847, allocations: 235.4 kB / 1.073 GB, free: 5.023 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000152/0.3849, allocations: 84.95 kB / 1.073 GB, free: 4.922 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.703e-05/0.3849, allocations: 11.98 kB / 1.073 GB, free: 4.91 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001092/0.385, allocations: 15.98 kB / 1.073 GB, free: 4.895 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.759e-05/0.3851, allocations: 4 kB / 1.073 GB, free: 4.891 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.277e-06/0.3851, allocations: 3.938 kB / 1.073 GB, free: 4.887 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.557e-05/0.3851, allocations: 91.27 kB / 1.073 GB, free: 4.797 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3851, allocations: 3.938 kB / 1.073 GB, free: 4.793 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000253/0.3854, allocations: 16 kB / 1.073 GB, free: 4.777 MB / 0.8262 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.0001726/0.3856, allocations: 107.2 kB / 1.073 GB, free: 4.664 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003072/0.3859, allocations: 100.2 kB / 1.073 GB, free: 4.566 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.3859, allocations: 0 / 1.073 GB, free: 4.566 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001386/0.386, allocations: 51.84 kB / 1.073 GB, free: 4.516 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002742/0.3863, allocations: 8 kB / 1.073 GB, free: 4.508 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003907/0.3867, allocations: 176.5 kB / 1.074 GB, free: 4.309 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002889/0.387, allocations: 0.6848 MB / 1.074 GB, free: 3.598 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.214e-05/0.3871, allocations: 8.422 kB / 1.074 GB, free: 3.59 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.616e-05/0.3871, allocations: 11.44 kB / 1.074 GB, free: 3.578 MB / 0.8262 GB Notification: Performance of SimCode: time 2.2e-07/0.3871, allocations: 0 / 1.074 GB, free: 3.578 MB / 0.8262 GB Notification: Performance of Templates: time 0.003563/0.3907, allocations: 0.9191 MB / 1.075 GB, free: 2.664 MB / 0.8262 GB make -j1 -f Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.makefile (rm -f Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & ./Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1)