Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_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_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.786/1.786, allocations: 288.4 MB / 303.7 MB, free: 8.098 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001365/0.001365, allocations: 181.1 kB / 372.3 MB, free: 10.09 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.814/1.814, allocations: 205.4 MB / 0.631 GB, free: 9.922 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007824/0.0007822, allocations: 82.38 kB / 0.7444 GB, free: 5.812 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005742/0.0005743, allocations: 16.78 kB / 0.8675 GB, free: 141.8 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2858/0.2864, allocations: 115.3 MB / 0.9801 GB, free: 27.34 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.000789/0.2872, allocations: 398 kB / 0.9805 GB, free: 26.95 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001084/0.2883, allocations: 1.048 MB / 0.9815 GB, free: 25.89 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.93e-05/0.2884, allocations: 0 / 0.9815 GB, free: 25.89 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 1.684e-05/0.2884, allocations: 7.938 kB / 0.9816 GB, free: 25.88 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 6.75e-05/0.2885, allocations: 4 kB / 0.9816 GB, free: 25.88 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002318/0.2887, allocations: 39.89 kB / 0.9816 GB, free: 25.84 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 7.121e-05/0.2888, allocations: 59.84 kB / 0.9817 GB, free: 25.78 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001006/0.2889, allocations: 11.97 kB / 0.9817 GB, free: 25.77 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 6.742e-05/0.289, allocations: 23.92 kB / 0.9817 GB, free: 25.75 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 5.454e-05/0.289, allocations: 27.91 kB / 0.9817 GB, free: 25.72 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.386e-05/0.2891, allocations: 4 kB / 0.9817 GB, free: 25.71 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 5.815e-05/0.2891, allocations: 19.98 kB / 0.9817 GB, free: 25.7 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 1.982e-05/0.2892, allocations: 19.91 kB / 0.9818 GB, free: 25.68 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 4.198e-05/0.2892, allocations: 41.58 kB / 0.9818 GB, free: 25.63 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 9.042e-05/0.2893, allocations: 55.88 kB / 0.9818 GB, free: 25.57 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 6.062e-06/0.2893, allocations: 4 kB / 0.9819 GB, free: 25.57 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.663e-06/0.2893, allocations: 0 / 0.9819 GB, free: 25.57 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.608e-06/0.2893, allocations: 0 / 0.9819 GB, free: 25.57 MB / 0.6198 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.0004901/0.2898, allocations: 379.6 kB / 0.9822 GB, free: 25.15 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.565e-05/0.2899, allocations: 8.031 kB / 0.9822 GB, free: 25.14 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.836e-05/0.2899, allocations: 8.844 kB / 0.9822 GB, free: 25.13 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.444e-05/0.29, allocations: 172.3 kB / 0.9824 GB, free: 24.93 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.559e-05/0.29, allocations: 12.36 kB / 0.9824 GB, free: 24.91 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.732e-05/0.2901, allocations: 4.375 kB / 0.9824 GB, free: 24.91 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001897/0.2903, allocations: 82.22 kB / 0.9825 GB, free: 24.82 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.275e-06/0.2903, allocations: 4.188 kB / 0.9825 GB, free: 24.82 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.28e-05/0.2903, allocations: 11.91 kB / 0.9825 GB, free: 24.81 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.89e-06/0.2903, allocations: 4 kB / 0.9825 GB, free: 24.8 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001822/0.2905, allocations: 63.89 kB / 0.9826 GB, free: 24.74 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004174/0.2909, allocations: 308.8 kB / 0.9829 GB, free: 24.39 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001659/0.2911, allocations: 86.47 kB / 0.9829 GB, free: 24.3 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001066/0.2912, allocations: 60.95 kB / 0.983 GB, free: 24.23 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.316e-05/0.2912, allocations: 3.984 kB / 0.983 GB, free: 24.23 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002015/0.2914, allocations: 91.36 kB / 0.9831 GB, free: 24.13 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=10): time 1.532e-06/0.2915, allocations: 4 kB / 0.9831 GB, free: 24.12 MB / 0.6198 GB Notification: Performance of matching and sorting (n=10): time 0.0004382/0.2919, allocations: 185.5 kB / 0.9833 GB, free: 23.94 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.185e-05/0.2919, allocations: 63.39 kB / 0.9833 GB, free: 23.86 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.495e-05/0.292, allocations: 105.8 kB / 0.9834 GB, free: 23.75 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.48e-05/0.292, allocations: 33.7 kB / 0.9835 GB, free: 23.71 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 2.824e-05/0.2921, allocations: 80.38 kB / 0.9835 GB, free: 23.62 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.403e-05/0.2921, allocations: 27.75 kB / 0.9836 GB, free: 23.6 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.503e-06/0.2921, allocations: 7.938 kB / 0.9836 GB, free: 23.59 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 5.853e-05/0.2922, allocations: 318.8 kB / 0.9839 GB, free: 23.27 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001095/0.2923, allocations: 43.97 kB / 0.9839 GB, free: 23.23 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000116/0.2924, allocations: 70.86 kB / 0.984 GB, free: 23.15 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002075/0.2926, allocations: 114.4 kB / 0.9841 GB, free: 23.03 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.2926, allocations: 0 / 0.9841 GB, free: 23.03 MB / 0.6198 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002681/0.2929, allocations: 149.5 kB / 0.9842 GB, free: 22.88 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.283e-05/0.2929, allocations: 7.938 kB / 0.9843 GB, free: 22.87 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.782e-06/0.2929, allocations: 7.984 kB / 0.9843 GB, free: 22.86 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.656e-05/0.293, allocations: 0 / 0.9843 GB, free: 22.86 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001285/0.2931, allocations: 23.92 kB / 0.9843 GB, free: 22.84 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.043e-06/0.2931, allocations: 7.938 kB / 0.9843 GB, free: 22.83 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.984e-05/0.2932, allocations: 19.84 kB / 0.9843 GB, free: 22.81 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.203e-05/0.2932, allocations: 11.98 kB / 0.9843 GB, free: 22.8 MB / 0.6198 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 ($PRE.firOrdHol.firstTrigger,firOrdHol.firstTrigger,$whenCondition1,firOrdHol.sampleTrigger,$PRE.firOrdHol.tSample,firOrdHol.tSample,$PRE.firOrdHol.uSample,firOrdHol.uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.pre_uSample,$PRE.firOrdHol.c,firOrdHol.c) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.759e-05/0.2933, allocations: 125.7 kB / 0.9844 GB, free: 22.66 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.143e-05/0.2933, allocations: 4 kB / 0.9844 GB, free: 22.66 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002955/0.2936, allocations: 154 kB / 0.9846 GB, free: 22.51 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/0.2936, allocations: 0 / 0.9846 GB, free: 22.51 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.2936, allocations: 0 / 0.9846 GB, free: 22.51 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.2936, allocations: 3.938 kB / 0.9846 GB, free: 22.5 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003944/0.294, allocations: 418.3 kB / 0.985 GB, free: 22.04 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.294, allocations: 4 kB / 0.985 GB, free: 22.04 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.303e-05/0.2941, allocations: 11.98 kB / 0.985 GB, free: 22.02 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.2941, allocations: 4 kB / 0.985 GB, free: 22.02 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.016e-05/0.2941, allocations: 4 kB / 0.985 GB, free: 22.02 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.2941, allocations: 3.984 kB / 0.985 GB, free: 22.01 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.2941, allocations: 0 / 0.985 GB, free: 22.01 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002705/0.2944, allocations: 247.4 kB / 0.9853 GB, free: 21.75 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.034e-05/0.2945, allocations: 84.95 kB / 0.9853 GB, free: 21.65 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.094e-05/0.2945, allocations: 8.531 kB / 0.9853 GB, free: 21.64 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.892e-05/0.2946, allocations: 15.98 kB / 0.9854 GB, free: 21.63 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.341e-05/0.2946, allocations: 11.98 kB / 0.9854 GB, free: 21.62 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.837e-06/0.2947, allocations: 7.875 kB / 0.9854 GB, free: 21.61 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 2.484e-05/0.2947, allocations: 87.27 kB / 0.9855 GB, free: 21.52 MB / 0.6198 GB Notification: Performance of sort global known variables: time 9e-08/0.2947, allocations: 4 kB / 0.9855 GB, free: 21.52 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002214/0.2949, allocations: 16 kB / 0.9855 GB, free: 21.5 MB / 0.6198 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001267/0.295, allocations: 112.4 kB / 0.9856 GB, free: 21.38 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0002653/0.2953, allocations: 111.9 kB / 0.9857 GB, free: 21.27 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.2953, allocations: 0 / 0.9857 GB, free: 21.27 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001185/0.2955, allocations: 47.98 kB / 0.9857 GB, free: 21.23 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002434/0.2957, allocations: 8.109 kB / 0.9857 GB, free: 21.22 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002893/0.296, allocations: 187.8 kB / 0.9859 GB, free: 21.02 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001083/0.2961, allocations: 0.6809 MB / 0.9866 GB, free: 20.31 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 3.71e-05/0.2962, allocations: 12.42 kB / 0.9866 GB, free: 20.3 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.221e-05/0.2962, allocations: 11.44 kB / 0.9866 GB, free: 20.29 MB / 0.6198 GB Notification: Performance of SimCode: time 2.11e-07/0.2962, allocations: 4 kB / 0.9866 GB, free: 20.28 MB / 0.6198 GB Notification: Performance of Templates: time 0.002719/0.2989, allocations: 0.8879 MB / 0.9875 GB, free: 19.4 MB / 0.6198 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.makefile (rm -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & ./Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1)