Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Examples.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001613/0.001614, allocations: 101.9 kB / 16.27 MB, free: 6.418 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.001869/0.001869, allocations: 190.3 kB / 17.2 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.611/1.611, allocations: 205.1 MB / 223.1 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.809/1.809, allocations: 292.3 MB / 0.5495 GB, free: 17.52 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001492/0.001492, allocations: 71.91 kB / 0.6722 GB, free: 6.496 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2905/0.292, allocations: 114.5 MB / 0.784 GB, free: 3.836 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.002395/0.2944, allocations: 0.6885 MB / 0.7847 GB, free: 3.145 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001702/0.2962, allocations: 1.067 MB / 0.7858 GB, free: 2.062 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.619e-05/0.2963, allocations: 0 / 0.7858 GB, free: 2.062 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 3.35e-05/0.2963, allocations: 3.938 kB / 0.7858 GB, free: 2.059 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 8.477e-05/0.2964, allocations: 11.91 kB / 0.7858 GB, free: 2.047 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003632/0.2968, allocations: 51.83 kB / 0.7858 GB, free: 1.996 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0001183/0.2969, allocations: 67.84 kB / 0.7859 GB, free: 1.93 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001276/0.297, allocations: 7.984 kB / 0.7859 GB, free: 1.922 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 8.287e-05/0.2971, allocations: 27.92 kB / 0.7859 GB, free: 1.895 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 7.222e-05/0.2972, allocations: 35.89 kB / 0.7859 GB, free: 1.859 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 2.023e-05/0.2972, allocations: 8 kB / 0.786 GB, free: 1.852 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 8.004e-05/0.2973, allocations: 23.92 kB / 0.786 GB, free: 1.828 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 2.466e-05/0.2974, allocations: 19.86 kB / 0.786 GB, free: 1.809 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 5.787e-05/0.2974, allocations: 35.84 kB / 0.786 GB, free: 1.773 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0001697/0.2976, allocations: 71.81 kB / 0.7861 GB, free: 1.703 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.2976, allocations: 0 / 0.7861 GB, free: 1.703 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.413e-06/0.2976, allocations: 0 / 0.7861 GB, free: 1.703 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 5.881e-06/0.2976, allocations: 0 / 0.7861 GB, free: 1.703 MB / 0.6544 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.0008187/0.2984, allocations: 375.7 kB / 0.7865 GB, free: 1.285 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.346e-05/0.2985, allocations: 12.03 kB / 0.7865 GB, free: 1.273 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.711e-05/0.2986, allocations: 4.844 kB / 0.7865 GB, free: 1.27 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000147/0.2987, allocations: 176.3 kB / 0.7866 GB, free: 1.059 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.435e-05/0.2987, allocations: 8.375 kB / 0.7867 GB, free: 1.051 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.204e-05/0.2988, allocations: 4.375 kB / 0.7867 GB, free: 1.047 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000236/0.299, allocations: 82.14 kB / 0.7867 GB, free: 0.9609 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.796e-06/0.299, allocations: 4.125 kB / 0.7867 GB, free: 0.957 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.483e-05/0.299, allocations: 7.938 kB / 0.7867 GB, free: 0.9492 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.999e-06/0.2991, allocations: 0 / 0.7867 GB, free: 0.9492 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002002/0.2993, allocations: 51.95 kB / 0.7868 GB, free: 0.8984 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005487/0.2998, allocations: 312.8 kB / 0.7871 GB, free: 0.543 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002022/0.3, allocations: 86.42 kB / 0.7872 GB, free: 460 kB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001168/0.3002, allocations: 44.83 kB / 0.7872 GB, free: 412 kB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.207e-05/0.3002, allocations: 4 kB / 0.7872 GB, free: 408 kB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002755/0.3005, allocations: 87.36 kB / 0.7873 GB, free: 308 kB / 0.6544 GB Notification: Performance of pre-optimization done (n=10): time 1.623e-06/0.3005, allocations: 0 / 0.7873 GB, free: 308 kB / 0.6544 GB Notification: Performance of matching and sorting (n=10): time 0.0004981/0.301, allocations: 173.6 kB / 0.7875 GB, free: 128 kB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.716e-05/0.3011, allocations: 63.41 kB / 0.7875 GB, free: 52 kB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.4044/0.7055, allocations: 99.48 kB / 0.7876 GB, free: 48.89 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 4.121e-05/0.7056, allocations: 35.91 kB / 0.7877 GB, free: 48.86 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 4.01e-05/0.7056, allocations: 85.22 kB / 0.7877 GB, free: 48.77 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 3.277e-05/0.7057, allocations: 32.23 kB / 0.7878 GB, free: 48.77 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.583e-05/0.7057, allocations: 28.91 kB / 0.7878 GB, free: 48.76 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 5.134e-05/0.7058, allocations: 320.7 kB / 0.7881 GB, free: 48.45 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001503/0.7059, allocations: 37.05 kB / 0.7881 GB, free: 48.45 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001255/0.7061, allocations: 63.72 kB / 0.7882 GB, free: 48.42 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002228/0.7063, allocations: 107.2 kB / 0.7883 GB, free: 48.4 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.125e-06/0.7063, allocations: 0 / 0.7883 GB, free: 48.4 MB / 0.6544 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003104/0.7066, allocations: 142.1 kB / 0.7884 GB, free: 48.37 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.946e-05/0.7067, allocations: 8.094 kB / 0.7884 GB, free: 48.37 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.892e-06/0.7067, allocations: 3.234 kB / 0.7885 GB, free: 48.37 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.9e-05/0.7067, allocations: 2.719 kB / 0.7885 GB, free: 48.37 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000136/0.7068, allocations: 21.59 kB / 0.7885 GB, free: 48.37 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.287e-06/0.7069, allocations: 8.344 kB / 0.7885 GB, free: 48.37 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.328e-05/0.7069, allocations: 15.42 kB / 0.7885 GB, free: 48.36 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.355e-05/0.707, allocations: 4.484 kB / 0.7885 GB, free: 48.36 MB / 0.6544 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 7.983e-05/0.7071, allocations: 125.5 kB / 0.7886 GB, free: 48.25 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.582e-05/0.7071, allocations: 2.875 kB / 0.7886 GB, free: 48.25 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003117/0.7074, allocations: 148.8 kB / 0.7888 GB, free: 48.21 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.978e-06/0.7074, allocations: 2.688 kB / 0.7888 GB, free: 48.21 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/0.7074, allocations: 0 / 0.7888 GB, free: 48.21 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.7074, allocations: 1.172 kB / 0.7888 GB, free: 48.21 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004262/0.7079, allocations: 412.4 kB / 0.7892 GB, free: 47.91 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.7079, allocations: 0 / 0.7892 GB, free: 47.91 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.156e-05/0.7079, allocations: 14.94 kB / 0.7892 GB, free: 47.91 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.7079, allocations: 1.406 kB / 0.7892 GB, free: 47.91 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.069e-05/0.708, allocations: 5.625 kB / 0.7892 GB, free: 47.91 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.708, allocations: 0 / 0.7892 GB, free: 47.91 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.708, allocations: 1.25 kB / 0.7892 GB, free: 47.91 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002843/0.7083, allocations: 246.3 kB / 0.7894 GB, free: 47.78 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 2.133e-05/0.7083, allocations: 77.11 kB / 0.7895 GB, free: 47.68 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.058e-05/0.7083, allocations: 2.594 kB / 0.7895 GB, free: 47.68 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001021/0.7084, allocations: 13.91 kB / 0.7895 GB, free: 47.68 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.784e-05/0.7085, allocations: 9.281 kB / 0.7895 GB, free: 47.68 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.975e-06/0.7085, allocations: 2.625 kB / 0.7895 GB, free: 47.68 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 2.658e-05/0.7085, allocations: 85.92 kB / 0.7896 GB, free: 47.61 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7085, allocations: 0.9688 kB / 0.7896 GB, free: 47.61 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002402/0.7088, allocations: 21.44 kB / 0.7896 GB, free: 47.61 MB / 0.6544 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.0001567/0.7089, allocations: 116.4 kB / 0.7897 GB, free: 47.52 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.000297/0.7092, allocations: 103.3 kB / 0.7898 GB, free: 47.52 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.7093, allocations: 2.75 kB / 0.7898 GB, free: 47.52 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.000123/0.7094, allocations: 50.02 kB / 0.7899 GB, free: 47.52 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002614/0.7097, allocations: 11.44 kB / 0.7899 GB, free: 47.52 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000337/0.71, allocations: 187.7 kB / 0.7901 GB, free: 47.38 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000115/0.7101, allocations: 0.688 MB / 0.7907 GB, free: 46.68 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.04e-05/0.7102, allocations: 14 kB / 0.7908 GB, free: 46.68 MB / 0.6544 GB Notification: Performance of SimCode: time 3.31e-07/0.7102, allocations: 0.9062 kB / 0.7908 GB, free: 46.68 MB / 0.6544 GB Notification: Performance of Templates: time 0.002579/0.7127, allocations: 1.087 MB / 0.7918 GB, free: 46.65 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.makefile (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & ./Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1)