Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.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.Electrical.DC.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor") translateModel(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001155/0.001155, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.00137/0.00137, allocations: 189.2 kB / 16.25 MB, free: 6.625 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.59/1.59, allocations: 205.1 MB / 222.1 MB, free: 4.66 MB / 174.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.727/1.727, allocations: 292.3 MB / 0.5485 GB, free: 13.61 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.001471/0.001471, allocations: 64.33 kB / 0.671 GB, free: 26.22 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3204/0.3219, allocations: 114.6 MB / 0.7829 GB, free: 13.93 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.005411/0.3274, allocations: 2.559 MB / 0.7853 GB, free: 11.35 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001838/0.3292, allocations: 0.7635 MB / 0.7861 GB, free: 10.58 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001444/0.3294, allocations: 7.938 kB / 0.7861 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.001373/0.3308, allocations: 0.5425 MB / 0.7866 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0002967/0.3311, allocations: 107.6 kB / 0.7867 GB, free: 9.918 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003094/0.3314, allocations: 103.8 kB / 0.7868 GB, free: 9.816 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003057/0.3317, allocations: 191.3 kB / 0.787 GB, free: 9.629 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003722/0.3321, allocations: 181 kB / 0.7872 GB, free: 9.453 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001752/0.3323, allocations: 79.75 kB / 0.7873 GB, free: 9.375 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002233/0.3325, allocations: 95.66 kB / 0.7874 GB, free: 9.281 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.618e-05/0.3326, allocations: 16 kB / 0.7874 GB, free: 9.266 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002765/0.3329, allocations: 111.8 kB / 0.7875 GB, free: 9.156 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 7.036e-05/0.3329, allocations: 63.81 kB / 0.7875 GB, free: 9.094 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 8.226e-05/0.333, allocations: 75.66 kB / 0.7876 GB, free: 9.02 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003296/0.3334, allocations: 223.5 kB / 0.7878 GB, free: 8.801 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.3334, allocations: 0 / 0.7878 GB, free: 8.801 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.514e-06/0.3334, allocations: 0 / 0.7878 GB, free: 8.801 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.624e-06/0.3334, allocations: 0 / 0.7878 GB, free: 8.801 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 37 * Number of variables: 37 Notification: Performance of Generate backend data structure: time 0.0008537/0.3343, allocations: 459.2 kB / 0.7883 GB, free: 8.305 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.235e-05/0.3343, allocations: 12.03 kB / 0.7883 GB, free: 8.293 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005524/0.3349, allocations: 40.72 kB / 0.7883 GB, free: 8.254 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003662/0.3353, allocations: 216.1 kB / 0.7885 GB, free: 8.004 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.792e-05/0.3353, allocations: 8.656 kB / 0.7885 GB, free: 7.996 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.856e-05/0.3353, allocations: 20.31 kB / 0.7885 GB, free: 7.977 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004075/0.3357, allocations: 231 kB / 0.7888 GB, free: 7.73 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.326e-05/0.3358, allocations: 4 kB / 0.7888 GB, free: 7.727 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.591e-05/0.3358, allocations: 8 kB / 0.7888 GB, free: 7.719 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.913e-05/0.3358, allocations: 16.27 kB / 0.7888 GB, free: 7.703 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002755/0.3361, allocations: 140.7 kB / 0.7889 GB, free: 7.566 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001394/0.3375, allocations: 1.134 MB / 0.79 GB, free: 6.297 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 9.808e-05/0.3376, allocations: 50.48 kB / 0.7901 GB, free: 6.238 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.649e-05/0.3377, allocations: 12.86 kB / 0.7901 GB, free: 6.223 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.869e-05/0.3377, allocations: 8 kB / 0.7901 GB, free: 6.215 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.889e-05/0.3377, allocations: 34.64 kB / 0.7901 GB, free: 6.172 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=4): time 1.213e-06/0.3377, allocations: 0 / 0.7901 GB, free: 6.172 MB / 0.6075 GB Notification: Performance of matching and sorting (n=4): time 0.0002212/0.338, allocations: 73.53 kB / 0.7902 GB, free: 6.094 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.61e-05/0.338, allocations: 55.41 kB / 0.7903 GB, free: 6.027 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001582/0.3382, allocations: 182.9 kB / 0.7904 GB, free: 5.84 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.517e-05/0.3382, allocations: 25.7 kB / 0.7905 GB, free: 5.809 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001017/0.3383, allocations: 139.4 kB / 0.7906 GB, free: 5.668 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.764e-05/0.3383, allocations: 19.75 kB / 0.7906 GB, free: 5.648 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.596e-05/0.3384, allocations: 29.7 kB / 0.7906 GB, free: 5.613 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001491/0.3385, allocations: 318.8 kB / 0.7909 GB, free: 5.293 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.584e-05/0.3386, allocations: 28.84 kB / 0.791 GB, free: 5.262 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001095/0.3387, allocations: 97.11 kB / 0.7911 GB, free: 5.137 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001465/0.3389, allocations: 121.3 kB / 0.7912 GB, free: 4.984 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.529e-06/0.3389, allocations: 0 / 0.7912 GB, free: 4.984 MB / 0.6075 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001927/0.3391, allocations: 137.4 kB / 0.7913 GB, free: 4.844 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.385e-05/0.3391, allocations: 4 kB / 0.7913 GB, free: 4.84 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.3391, allocations: 4 kB / 0.7913 GB, free: 4.836 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.909e-05/0.3391, allocations: 7.938 kB / 0.7913 GB, free: 4.828 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001157/0.3392, allocations: 27.92 kB / 0.7914 GB, free: 4.801 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.186e-05/0.3393, allocations: 4 kB / 0.7914 GB, free: 4.797 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.452e-05/0.3393, allocations: 19.75 kB / 0.7914 GB, free: 4.777 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.592e-05/0.3394, allocations: 8 kB / 0.7914 GB, free: 4.77 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002142/0.3396, allocations: 125 kB / 0.7915 GB, free: 4.645 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001403/0.3397, allocations: 93.38 kB / 0.7916 GB, free: 4.52 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001347/0.3399, allocations: 117.3 kB / 0.7917 GB, free: 4.371 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.336e-06/0.3399, allocations: 8 kB / 0.7917 GB, free: 4.363 MB / 0.6075 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0001917/0.3401, allocations: 125.3 kB / 0.7918 GB, free: 4.234 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.217e-05/0.3401, allocations: 11.98 kB / 0.7918 GB, free: 4.223 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.486e-06/0.3401, allocations: 4 kB / 0.7918 GB, free: 4.219 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.479e-06/0.3401, allocations: 4 kB / 0.7918 GB, free: 4.215 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.801e-05/0.3402, allocations: 16.31 kB / 0.7919 GB, free: 4.199 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.294e-06/0.3403, allocations: 15.88 kB / 0.7919 GB, free: 4.184 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.908e-05/0.3403, allocations: 11.98 kB / 0.7919 GB, free: 4.172 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.141e-05/0.3403, allocations: 11.98 kB / 0.7919 GB, free: 4.16 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * 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.0002615/0.3406, allocations: 188.2 kB / 0.7921 GB, free: 3.969 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.008e-05/0.3406, allocations: 11.81 kB / 0.7921 GB, free: 3.957 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.541e-05/0.3407, allocations: 12.94 kB / 0.7921 GB, free: 3.941 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.529e-06/0.3407, allocations: 3.938 kB / 0.7921 GB, free: 3.938 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.105e-06/0.3407, allocations: 0 / 0.7921 GB, free: 3.938 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.551e-06/0.3407, allocations: 0 / 0.7921 GB, free: 3.938 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005138/0.3412, allocations: 477.4 kB / 0.7926 GB, free: 3.402 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.78e-06/0.3413, allocations: 7.984 kB / 0.7926 GB, free: 3.395 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.95e-05/0.3413, allocations: 4 kB / 0.7926 GB, free: 3.391 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.3413, allocations: 0 / 0.7926 GB, free: 3.391 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.322e-05/0.3413, allocations: 4 kB / 0.7926 GB, free: 3.387 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.917e-06/0.3413, allocations: 8.125 kB / 0.7926 GB, free: 3.379 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.899e-06/0.3413, allocations: 7.922 kB / 0.7926 GB, free: 3.371 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001424/0.3415, allocations: 111.5 kB / 0.7927 GB, free: 3.234 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 8.19e-05/0.3416, allocations: 96.92 kB / 0.7928 GB, free: 3.121 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.375e-05/0.3416, allocations: 0 / 0.7928 GB, free: 3.121 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.249e-05/0.3416, allocations: 4 kB / 0.7928 GB, free: 3.117 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.272e-05/0.3417, allocations: 7.984 kB / 0.7928 GB, free: 3.109 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.755e-06/0.3417, allocations: 0 / 0.7928 GB, free: 3.109 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001038/0.3418, allocations: 131.9 kB / 0.7929 GB, free: 2.98 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.385e-06/0.3418, allocations: 3.938 kB / 0.7929 GB, free: 2.977 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003439/0.3421, allocations: 55.78 kB / 0.793 GB, free: 2.922 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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 Backend phase and start with SimCode phase: time 0.0001716/0.3423, allocations: 95.25 kB / 0.7931 GB, free: 2.816 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.000235/0.3426, allocations: 115.6 kB / 0.7932 GB, free: 2.703 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.3426, allocations: 0 / 0.7932 GB, free: 2.703 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 2.672e-05/0.3426, allocations: 17.36 kB / 0.7932 GB, free: 2.688 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003224/0.3429, allocations: 19.98 kB / 0.7932 GB, free: 2.668 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006228/0.3436, allocations: 335.1 kB / 0.7935 GB, free: 2.305 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005485/0.3441, allocations: 0.7241 MB / 0.7942 GB, free: 1.555 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0001086/0.3442, allocations: 32.41 kB / 0.7943 GB, free: 1.523 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.445e-05/0.3443, allocations: 11.44 kB / 0.7943 GB, free: 1.512 MB / 0.6075 GB Notification: Performance of SimCode: time 3.71e-07/0.3443, allocations: 0 / 0.7943 GB, free: 1.512 MB / 0.6075 GB Notification: Performance of Templates: time 0.003386/0.3477, allocations: 0.8439 MB / 0.7951 GB, free: 0.6797 MB / 0.6075 GB make -j1 -f Buildings_8_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.makefile (rm -f Buildings_8_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_8_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_8_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_8_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1)