Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.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.ZeroOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001611/0.001611, allocations: 100.6 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.001765/0.001765, 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.511/1.511, allocations: 205.1 MB / 223.1 MB, free: 12.32 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.82/1.82, allocations: 292.3 MB / 0.5495 GB, free: 17.68 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.001447/0.001448, allocations: 68.38 kB / 0.6722 GB, free: 6.523 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2738/0.2752, allocations: 114.6 MB / 0.784 GB, free: 3.852 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.002235/0.2775, allocations: 0.6781 MB / 0.7847 GB, free: 3.168 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001427/0.279, allocations: 1.055 MB / 0.7857 GB, free: 2.098 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.836e-05/0.2791, allocations: 4 kB / 0.7857 GB, free: 2.094 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 3.484e-05/0.2791, allocations: 3.938 kB / 0.7857 GB, free: 2.09 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 7.052e-05/0.2792, allocations: 7.938 kB / 0.7857 GB, free: 2.082 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003446/0.2795, allocations: 43.83 kB / 0.7858 GB, free: 2.039 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 9.149e-05/0.2796, allocations: 51.84 kB / 0.7858 GB, free: 1.988 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00012/0.2798, allocations: 12 kB / 0.7858 GB, free: 1.977 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 8.195e-05/0.2798, allocations: 23.91 kB / 0.7859 GB, free: 1.953 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 6.249e-05/0.2799, allocations: 19.92 kB / 0.7859 GB, free: 1.934 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 1.859e-05/0.2799, allocations: 4 kB / 0.7859 GB, free: 1.93 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 7.403e-05/0.28, allocations: 19.92 kB / 0.7859 GB, free: 1.91 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 2.665e-05/0.28, allocations: 19.92 kB / 0.7859 GB, free: 1.891 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 4.228e-05/0.2801, allocations: 23.91 kB / 0.786 GB, free: 1.867 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0001484/0.2803, allocations: 51.8 kB / 0.786 GB, free: 1.816 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 7.955e-06/0.2803, allocations: 4 kB / 0.786 GB, free: 1.812 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.924e-06/0.2803, allocations: 0 / 0.786 GB, free: 1.812 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 5.781e-06/0.2803, allocations: 0 / 0.786 GB, free: 1.812 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0006741/0.281, allocations: 363.7 kB / 0.7864 GB, free: 1.406 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.541e-05/0.281, allocations: 8.031 kB / 0.7864 GB, free: 1.398 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.752e-05/0.2811, allocations: 16.83 kB / 0.7864 GB, free: 1.383 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001411/0.2812, allocations: 172.3 kB / 0.7865 GB, free: 1.176 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.062e-05/0.2812, allocations: 384 / 0.7865 GB, free: 1.176 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.886e-05/0.2813, allocations: 8.375 kB / 0.7866 GB, free: 1.168 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000225/0.2815, allocations: 62.22 kB / 0.7866 GB, free: 1.102 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.273e-05/0.2815, allocations: 192 / 0.7866 GB, free: 1.102 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.473e-05/0.2815, allocations: 11.88 kB / 0.7866 GB, free: 1.09 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.053e-06/0.2815, allocations: 0 / 0.7866 GB, free: 1.09 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001934/0.2817, allocations: 47.95 kB / 0.7867 GB, free: 1.043 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005157/0.2823, allocations: 272.8 kB / 0.7869 GB, free: 0.7266 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001697/0.2824, allocations: 58.48 kB / 0.787 GB, free: 0.6602 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.81e-05/0.2826, allocations: 28.97 kB / 0.787 GB, free: 0.6289 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.514e-05/0.2826, allocations: 11.94 kB / 0.787 GB, free: 0.6172 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002686/0.2829, allocations: 75.44 kB / 0.7871 GB, free: 0.5312 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=7): time 1.282e-06/0.2829, allocations: 0 / 0.7871 GB, free: 0.5312 MB / 0.6544 GB Notification: Performance of matching and sorting (n=7): time 0.0004932/0.2834, allocations: 121.6 kB / 0.7872 GB, free: 416 kB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.006e-05/0.2834, allocations: 55.41 kB / 0.7873 GB, free: 348 kB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001121/0.2836, allocations: 109.8 kB / 0.7874 GB, free: 228 kB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 2.233e-05/0.2836, allocations: 29.7 kB / 0.7874 GB, free: 192 kB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 6.118e-05/0.2837, allocations: 88.05 kB / 0.7875 GB, free: 100 kB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 3.221e-05/0.2837, allocations: 27.67 kB / 0.7875 GB, free: 72 kB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.113e-05/0.2837, allocations: 17.72 kB / 0.7875 GB, free: 48 kB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.6079/0.8917, allocations: 322.1 kB / 0.7878 GB, free: 48.43 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002569/0.892, allocations: 21.47 kB / 0.7879 GB, free: 48.43 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001574/0.8922, allocations: 58.67 kB / 0.7879 GB, free: 48.39 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002465/0.8924, allocations: 95.66 kB / 0.788 GB, free: 48.35 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/0.8924, allocations: 0 / 0.788 GB, free: 48.35 MB / 0.6544 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003288/0.8928, allocations: 118.1 kB / 0.7881 GB, free: 48.32 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.655e-05/0.8928, allocations: 12.09 kB / 0.7881 GB, free: 48.32 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.033e-05/0.8928, allocations: 1.219 kB / 0.7881 GB, free: 48.32 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.077e-05/0.8928, allocations: 2.719 kB / 0.7881 GB, free: 48.32 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000145/0.893, allocations: 22.75 kB / 0.7881 GB, free: 48.32 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.055e-05/0.893, allocations: 3.75 kB / 0.7882 GB, free: 48.32 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.724e-05/0.8931, allocations: 8.188 kB / 0.7882 GB, free: 48.32 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.524e-05/0.8931, allocations: 6.781 kB / 0.7882 GB, free: 48.32 MB / 0.6544 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 (zerOrdHol.firstTrigger,$PRE.zerOrdHol.firstTrigger,zerOrdHol.sampleTrigger,$whenCondition1,$PRE.zerOrdHol.ySample,zerOrdHol.ySample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.0001165/0.8933, allocations: 126 kB / 0.7883 GB, free: 48.21 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.096e-05/0.8933, allocations: 6.312 kB / 0.7883 GB, free: 48.21 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003217/0.8936, allocations: 110.2 kB / 0.7884 GB, free: 48.18 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.638e-06/0.8936, allocations: 0.5938 kB / 0.7884 GB, free: 48.18 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.324e-06/0.8936, allocations: 3.938 kB / 0.7884 GB, free: 48.17 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.8936, allocations: 0.8438 kB / 0.7884 GB, free: 48.17 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004504/0.8941, allocations: 360 kB / 0.7887 GB, free: 47.88 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.8941, allocations: 1.969 kB / 0.7887 GB, free: 47.88 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.891e-05/0.8942, allocations: 11.3 kB / 0.7888 GB, free: 47.88 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.729e-06/0.8942, allocations: 7 kB / 0.7888 GB, free: 47.88 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.004e-05/0.8942, allocations: 0 / 0.7888 GB, free: 47.88 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.8942, allocations: 0 / 0.7888 GB, free: 47.88 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.8942, allocations: 4.516 kB / 0.7888 GB, free: 47.88 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002762/0.8945, allocations: 205.5 kB / 0.789 GB, free: 47.75 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 2.609e-05/0.8945, allocations: 81.05 kB / 0.789 GB, free: 47.65 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.124e-05/0.8946, allocations: 3.031 kB / 0.789 GB, free: 47.65 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.447e-05/0.8947, allocations: 7.203 kB / 0.7891 GB, free: 47.65 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.551e-05/0.8947, allocations: 7.953 kB / 0.7891 GB, free: 47.65 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.705e-05/0.8947, allocations: 3.156 kB / 0.7891 GB, free: 47.65 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 4.214e-05/0.8948, allocations: 84.55 kB / 0.7891 GB, free: 47.57 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1e-07/0.8948, allocations: 1.625 kB / 0.7891 GB, free: 47.57 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002547/0.8951, allocations: 16.92 kB / 0.7892 GB, free: 47.57 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: 4 (zerOrdHol.sampleTrigger,$whenCondition1,zerOrdHol.ySample,zerOrdHol.firstTrigger) * Number of discrete states: 1 (zerOrdHol.ySample) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * 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.0001804/0.8953, allocations: 107.2 kB / 0.7893 GB, free: 47.49 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0002986/0.8956, allocations: 80.25 kB / 0.7893 GB, free: 47.49 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.8956, allocations: 0 / 0.7893 GB, free: 47.49 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001168/0.8957, allocations: 33.48 kB / 0.7894 GB, free: 47.49 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003535/0.8961, allocations: 14.81 kB / 0.7894 GB, free: 47.49 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004341/0.8965, allocations: 155.1 kB / 0.7895 GB, free: 47.35 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000166/0.8967, allocations: 0.688 MB / 0.7902 GB, free: 46.66 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.431e-05/0.8967, allocations: 10.06 kB / 0.7902 GB, free: 46.65 MB / 0.6544 GB Notification: Performance of SimCode: time 7.51e-07/0.8967, allocations: 0.625 kB / 0.7902 GB, free: 46.65 MB / 0.6544 GB Notification: Performance of Templates: time 0.002702/0.8994, allocations: 0.901 MB / 0.7911 GB, free: 46.64 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.makefile (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & ./Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1)