Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Utilities.IO.Python36.Examples.KalmanFilter.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.Utilities.IO.Python36.Examples.KalmanFilter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Utilities.IO.Python36.Examples.KalmanFilter") translateModel(Buildings.Utilities.IO.Python36.Examples.KalmanFilter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Utilities.IO.Python36.Examples.KalmanFilter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.647/1.647, allocations: 288.4 MB / 303.4 MB, free: 8.133 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.001076/0.001076, allocations: 186.8 kB / 372 MB, free: 10.21 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.368/1.368, allocations: 205.4 MB / 0.6307 GB, free: 9.965 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.0007503/0.0007503, allocations: 94.23 kB / 0.7441 GB, free: 5.898 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005721/0.0005721, allocations: 11.66 kB / 0.867 GB, free: 142 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2568/0.2574, allocations: 115.3 MB / 0.9796 GB, free: 27.65 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python36.Examples.KalmanFilter): time 0.00186/0.2593, allocations: 1.416 MB / 0.981 GB, free: 26.21 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001991/0.2613, allocations: 1.737 MB / 0.9827 GB, free: 24.46 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.544e-05/0.2614, allocations: 0 / 0.9827 GB, free: 24.46 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001723/0.2616, allocations: 19.86 kB / 0.9827 GB, free: 24.45 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0001313/0.2617, allocations: 27.72 kB / 0.9827 GB, free: 24.42 MB / 0.6198 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/Utilities/IO/Python36/Functions/exchange.mo:2:1-113:13:writable] Warning: Pure function ‘Buildings.Utilities.IO.Python36.Functions.exchange‘ contains a call to impure function ‘Modelica.Utilities.System.getEnvironmentVariable‘. Notification: Performance of NFTyping.typeClassSections: time 0.0006967/0.2624, allocations: 267.4 kB / 0.983 GB, free: 24.16 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0002138/0.2626, allocations: 183.5 kB / 0.9831 GB, free: 23.98 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 8.91e-05/0.2627, allocations: 25.55 kB / 0.9832 GB, free: 23.95 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001151/0.2628, allocations: 71.69 kB / 0.9832 GB, free: 23.88 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 9.338e-05/0.2629, allocations: 63.69 kB / 0.9833 GB, free: 23.82 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.225e-05/0.263, allocations: 8 kB / 0.9833 GB, free: 23.81 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003139/0.2633, allocations: 235.6 kB / 0.9835 GB, free: 23.58 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 7.857e-05/0.2634, allocations: 51.86 kB / 0.9836 GB, free: 23.53 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 4.169e-05/0.2634, allocations: 49.64 kB / 0.9836 GB, free: 23.48 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0002538/0.2637, allocations: 259.8 kB / 0.9839 GB, free: 23.22 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.2637, allocations: 0 / 0.9839 GB, free: 23.22 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.433e-06/0.2637, allocations: 0 / 0.9839 GB, free: 23.22 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.939e-06/0.2637, allocations: 0 / 0.9839 GB, free: 23.22 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: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.0007392/0.2645, allocations: 0.4988 MB / 0.9844 GB, free: 22.68 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.515e-05/0.2645, allocations: 12.02 kB / 0.9844 GB, free: 22.66 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.487e-05/0.2646, allocations: 23.7 kB / 0.9844 GB, free: 22.64 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002238/0.2648, allocations: 217.4 kB / 0.9846 GB, free: 22.39 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.108e-05/0.2648, allocations: 8.188 kB / 0.9846 GB, free: 22.38 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.744e-05/0.2649, allocations: 15.98 kB / 0.9846 GB, free: 22.37 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002829/0.2652, allocations: 162.4 kB / 0.9848 GB, free: 22.2 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.019e-05/0.2652, allocations: 0 / 0.9848 GB, free: 22.2 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.894e-05/0.2652, allocations: 3.984 kB / 0.9848 GB, free: 22.2 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.079e-06/0.2652, allocations: 4 kB / 0.9848 GB, free: 22.19 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001996/0.2654, allocations: 88.48 kB / 0.9849 GB, free: 22.11 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007606/0.2662, allocations: 432.9 kB / 0.9853 GB, free: 21.63 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003046/0.2665, allocations: 162.4 kB / 0.9854 GB, free: 21.46 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001402/0.2667, allocations: 73.12 kB / 0.9855 GB, free: 21.39 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.275e-05/0.2667, allocations: 0 / 0.9855 GB, free: 21.39 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003242/0.267, allocations: 177.9 kB / 0.9857 GB, free: 21.2 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=20): time 1.543e-06/0.2671, allocations: 0 / 0.9857 GB, free: 21.2 MB / 0.6198 GB Notification: Performance of matching and sorting (n=20): time 0.0006166/0.2677, allocations: 323.6 kB / 0.986 GB, free: 20.88 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.292e-05/0.2677, allocations: 93.08 kB / 0.9861 GB, free: 20.77 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001164/0.2679, allocations: 166.8 kB / 0.9862 GB, free: 20.6 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.693e-05/0.2679, allocations: 45.69 kB / 0.9863 GB, free: 20.55 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.331e-05/0.2679, allocations: 112.5 kB / 0.9864 GB, free: 20.43 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 4.057e-05/0.268, allocations: 51.36 kB / 0.9864 GB, free: 20.38 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.958e-06/0.268, allocations: 4 kB / 0.9864 GB, free: 20.38 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.484e-05/0.2681, allocations: 330.8 kB / 0.9867 GB, free: 20.05 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001401/0.2682, allocations: 88.44 kB / 0.9868 GB, free: 19.96 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001838/0.2684, allocations: 181.9 kB / 0.987 GB, free: 19.74 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001829/0.2686, allocations: 119.8 kB / 0.9871 GB, free: 19.62 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.397e-06/0.2686, allocations: 0 / 0.9871 GB, free: 19.62 MB / 0.6198 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004126/0.269, allocations: 301.1 kB / 0.9874 GB, free: 19.32 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.497e-05/0.2691, allocations: 4 kB / 0.9874 GB, free: 19.32 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/0.2691, allocations: 4 kB / 0.9874 GB, free: 19.31 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.652e-05/0.2691, allocations: 4 kB / 0.9874 GB, free: 19.31 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001479/0.2692, allocations: 44.3 kB / 0.9875 GB, free: 19.27 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.243e-05/0.2693, allocations: 15.92 kB / 0.9875 GB, free: 19.25 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001037/0.2694, allocations: 27.75 kB / 0.9875 GB, free: 19.22 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.871e-05/0.2694, allocations: 12 kB / 0.9875 GB, free: 19.21 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 25 ($whenCondition3,$PRE.kalFil.firstTrigger,kalFil.firstTrigger,$PRE.kalFil.yR[1],kalFil.yR[1],$PRE.kalFil.uRIntPre[1],kalFil.uRIntPre[1],$PRE.ran.firstTrigger,ran.firstTrigger,$PRE.ran.uRIntPre[1],ran.uRIntPre[1],$whenCondition1,ran.sampleTrigger,$PRE.ran.uRWri[1],ran.uRWri[1],$PRE.ran.uRWri_temp[1],ran.uRWri_temp[1],$whenCondition2,kalFil.sampleTrigger,$PRE.ran.yR[1],ran.yR[1],$PRE.kalFil.uRWri[1],kalFil.uRWri[1],$PRE.kalFil.uRWri_temp[1],kalFil.uRWri_temp[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 34 * 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 0.0001311/0.2695, allocations: 159.9 kB / 0.9877 GB, free: 19.05 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.426e-05/0.2696, allocations: 19.8 kB / 0.9877 GB, free: 19.03 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.185e-05/0.2696, allocations: 21.88 kB / 0.9877 GB, free: 19.01 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.2696, allocations: 0 / 0.9877 GB, free: 19.01 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/0.2696, allocations: 4 kB / 0.9877 GB, free: 19.01 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.189e-06/0.2696, allocations: 3.984 kB / 0.9877 GB, free: 19 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006901/0.2703, allocations: 0.5812 MB / 0.9883 GB, free: 18.37 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.2704, allocations: 4 kB / 0.9883 GB, free: 18.36 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.735e-05/0.2705, allocations: 19.98 kB / 0.9883 GB, free: 18.34 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.2705, allocations: 0 / 0.9883 GB, free: 18.34 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.689e-05/0.2706, allocations: 11.98 kB / 0.9883 GB, free: 18.33 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.537e-06/0.2706, allocations: 0 / 0.9883 GB, free: 18.33 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.2706, allocations: 0 / 0.9883 GB, free: 18.33 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009243/0.2715, allocations: 450.8 kB / 0.9887 GB, free: 17.88 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 4.919e-05/0.2716, allocations: 100.9 kB / 0.9888 GB, free: 17.76 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.568e-05/0.2717, allocations: 12.05 kB / 0.9889 GB, free: 17.75 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002243/0.2719, allocations: 24.05 kB / 0.9889 GB, free: 17.72 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.523e-05/0.272, allocations: 11.98 kB / 0.9889 GB, free: 17.71 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.474e-05/0.272, allocations: 8 kB / 0.9889 GB, free: 17.7 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001029/0.2721, allocations: 123.2 kB / 0.989 GB, free: 17.58 MB / 0.6198 GB Notification: Performance of sort global known variables: time 2e-07/0.2722, allocations: 0 / 0.989 GB, free: 17.58 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0007116/0.2729, allocations: 107.9 kB / 0.9891 GB, free: 17.48 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (ran.uRInt[1],kalFil.uRInt[1]) * Number of discrete variables: 15 (kalFil.sampleTrigger,ran.sampleTrigger,$whenCondition2,$whenCondition1,ran.firstTrigger,ran.yR[1],ran.uRIntPre[1],ran.uRWri[1],ran.uRWri_temp[1],kalFil.firstTrigger,kalFil.yR[1],kalFil.uRIntPre[1],kalFil.uRWri[1],kalFil.uRWri_temp[1],$whenCondition3) * Number of discrete states: 2 (kalFil.uR[1],ran.uR[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * 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.00114/0.274, allocations: 439.7 kB / 0.9895 GB, free: 17.14 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0005966/0.2746, allocations: 200.2 kB / 0.9897 GB, free: 16.95 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.2747, allocations: 0 / 0.9897 GB, free: 16.95 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0002442/0.2749, allocations: 91.89 kB / 0.9898 GB, free: 16.86 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005089/0.2754, allocations: 23.98 kB / 0.9898 GB, free: 16.84 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001055/0.2765, allocations: 437.2 kB / 0.9903 GB, free: 16.38 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002074/0.2767, allocations: 0.7281 MB / 0.991 GB, free: 15.62 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0001694/0.2769, allocations: 53.48 kB / 0.991 GB, free: 15.57 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.896e-05/0.277, allocations: 15.44 kB / 0.991 GB, free: 15.55 MB / 0.6198 GB Notification: Performance of SimCode: time 6.71e-07/0.277, allocations: 0 / 0.991 GB, free: 15.55 MB / 0.6198 GB Notification: Performance of Templates: time 0.009083/0.2861, allocations: 3.237 MB / 0.9942 GB, free: 12.33 MB / 0.6198 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Utilities.IO.Python36.Examples.KalmanFilter.makefile (rm -f Buildings_maint.8.0.x_Buildings.Utilities.IO.Python36.Examples.KalmanFilter.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Utilities.IO.Python36.Examples.KalmanFilter.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Utilities.IO.Python36.Examples.KalmanFilter.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Utilities.IO.Python36.Examples.KalmanFilter.sim & ./Buildings_maint.8.0.x_Buildings.Utilities.IO.Python36.Examples.KalmanFilter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Utilities.IO.Python36.Examples.KalmanFilter.pipe 2>&1)