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/Buildings 8.1.4-maint.8.1.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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.755/1.755, allocations: 292.3 MB / 308.1 MB, free: 4.277 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.001694/0.001694, allocations: 188.2 kB / 376.9 MB, free: 1.816 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.463/1.463, allocations: 205 MB / 0.6354 GB, free: 9.801 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009266/0.0009267, allocations: 100.8 kB / 0.748 GB, free: 61.12 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.001096/0.001096, allocations: 55.92 kB / 0.8704 GB, free: 13.11 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2885/0.2896, allocations: 114.5 MB / 0.9822 GB, free: 10.39 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.004126/0.2938, allocations: 2.552 MB / 0.9847 GB, free: 7.824 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.001234/0.295, allocations: 0.7791 MB / 0.9855 GB, free: 7.043 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.905e-05/0.2951, allocations: 0 / 0.9855 GB, free: 7.043 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 0.001147/0.2963, allocations: 0.558 MB / 0.986 GB, free: 6.477 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 0.0002399/0.2965, allocations: 103.6 kB / 0.9861 GB, free: 6.375 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002685/0.2968, allocations: 95.83 kB / 0.9862 GB, free: 6.281 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 0.0002823/0.2971, allocations: 299.2 kB / 0.9865 GB, free: 5.988 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002533/0.2974, allocations: 102.2 kB / 0.9866 GB, free: 5.883 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 9.067e-05/0.2975, allocations: 71.7 kB / 0.9867 GB, free: 5.812 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002161/0.2977, allocations: 107.6 kB / 0.9868 GB, free: 5.707 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 2.36e-05/0.2977, allocations: 8 kB / 0.9868 GB, free: 5.699 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002291/0.2979, allocations: 143.7 kB / 0.9869 GB, free: 5.559 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 7.669e-05/0.298, allocations: 51.89 kB / 0.987 GB, free: 5.508 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 9.255e-05/0.2981, allocations: 71.59 kB / 0.987 GB, free: 5.438 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.0002956/0.2984, allocations: 235.5 kB / 0.9873 GB, free: 5.207 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.2984, allocations: 4 kB / 0.9873 GB, free: 5.203 MB / 0.7136 GB Notification: Performance of FrontEnd: time 8.72e-07/0.2985, allocations: 0 / 0.9873 GB, free: 5.203 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 5.029e-06/0.2985, allocations: 0 / 0.9873 GB, free: 5.203 MB / 0.7136 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.0006415/0.2991, allocations: 443.3 kB / 0.9877 GB, free: 4.723 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.743e-05/0.2992, allocations: 12.03 kB / 0.9877 GB, free: 4.711 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003738/0.2995, allocations: 48.7 kB / 0.9877 GB, free: 4.664 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002475/0.2998, allocations: 204.1 kB / 0.9879 GB, free: 4.426 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.887e-05/0.2998, allocations: 16.66 kB / 0.9879 GB, free: 4.41 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.696e-05/0.2998, allocations: 16.38 kB / 0.988 GB, free: 4.395 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000372/0.3002, allocations: 234.9 kB / 0.9882 GB, free: 4.145 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.137e-05/0.3002, allocations: 4 kB / 0.9882 GB, free: 4.141 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.078e-05/0.3003, allocations: 7.984 kB / 0.9882 GB, free: 4.133 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.412e-05/0.3003, allocations: 20.27 kB / 0.9882 GB, free: 4.113 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002218/0.3005, allocations: 144.7 kB / 0.9884 GB, free: 3.973 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00111/0.3017, allocations: 1.13 MB / 0.9895 GB, free: 2.711 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 8.515e-05/0.3018, allocations: 46.5 kB / 0.9895 GB, free: 2.656 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.646e-05/0.3018, allocations: 20.94 kB / 0.9895 GB, free: 2.633 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.279e-05/0.3018, allocations: 0 / 0.9895 GB, free: 2.633 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.408e-05/0.3018, allocations: 30.56 kB / 0.9896 GB, free: 2.594 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=4): time 8.92e-07/0.3019, allocations: 0 / 0.9896 GB, free: 2.594 MB / 0.7136 GB Notification: Performance of matching and sorting (n=4): time 0.0002028/0.3021, allocations: 85.52 kB / 0.9896 GB, free: 2.504 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.546e-05/0.3021, allocations: 51.41 kB / 0.9897 GB, free: 2.441 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001529/0.3023, allocations: 171 kB / 0.9898 GB, free: 2.266 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.385e-05/0.3023, allocations: 25.7 kB / 0.9899 GB, free: 2.234 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 8.946e-05/0.3024, allocations: 139.4 kB / 0.99 GB, free: 2.094 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 1.851e-05/0.3024, allocations: 27.67 kB / 0.99 GB, free: 2.066 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.283e-05/0.3025, allocations: 29.66 kB / 0.9901 GB, free: 2.031 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001209/0.3026, allocations: 322.8 kB / 0.9904 GB, free: 1.707 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.813e-05/0.3026, allocations: 32.84 kB / 0.9904 GB, free: 1.672 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.221e-05/0.3027, allocations: 81.44 kB / 0.9905 GB, free: 1.559 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001331/0.3029, allocations: 121.3 kB / 0.9906 GB, free: 1.406 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.3029, allocations: 0 / 0.9906 GB, free: 1.406 MB / 0.7136 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001884/0.3031, allocations: 141.2 kB / 0.9907 GB, free: 1.262 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.458e-05/0.3031, allocations: 8 kB / 0.9907 GB, free: 1.254 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.3031, allocations: 3.984 kB / 0.9907 GB, free: 1.25 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.996e-05/0.3031, allocations: 8.25 kB / 0.9907 GB, free: 1.242 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001073/0.3032, allocations: 31.88 kB / 0.9908 GB, free: 1.211 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.348e-06/0.3033, allocations: 4 kB / 0.9908 GB, free: 1.207 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.963e-05/0.3033, allocations: 15.83 kB / 0.9908 GB, free: 1.191 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.196e-05/0.3034, allocations: 8 kB / 0.9908 GB, free: 1.184 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 9.066e-05/0.3034, allocations: 120.1 kB / 0.9909 GB, free: 1.062 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 7.616e-05/0.3035, allocations: 93.36 kB / 0.991 GB, free: 0.9375 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001166/0.3037, allocations: 121.3 kB / 0.9911 GB, free: 0.7852 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.112e-06/0.3037, allocations: 0 / 0.9911 GB, free: 0.7852 MB / 0.7136 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.000168/0.3038, allocations: 141.8 kB / 0.9913 GB, free: 0.6406 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 7.043e-06/0.3039, allocations: 4 kB / 0.9913 GB, free: 0.6367 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.136e-06/0.3039, allocations: 4 kB / 0.9913 GB, free: 0.6328 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.437e-06/0.3039, allocations: 4 kB / 0.9913 GB, free: 0.6289 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.665e-05/0.3039, allocations: 23.98 kB / 0.9913 GB, free: 0.6055 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.215e-06/0.304, allocations: 11.88 kB / 0.9913 GB, free: 0.5938 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.613e-05/0.304, allocations: 7.906 kB / 0.9913 GB, free: 0.5859 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.997e-06/0.304, allocations: 11.98 kB / 0.9913 GB, free: 0.5742 MB / 0.7136 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 8.465e-05/0.3041, allocations: 188.3 kB / 0.9915 GB, free: 392 kB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.657e-05/0.3042, allocations: 7.906 kB / 0.9915 GB, free: 384 kB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.376e-05/0.3042, allocations: 20.92 kB / 0.9915 GB, free: 364 kB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.3042, allocations: 3.938 kB / 0.9915 GB, free: 360 kB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.3042, allocations: 3.938 kB / 0.9915 GB, free: 356 kB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/0.3042, allocations: 0 / 0.9915 GB, free: 356 kB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003942/0.3046, allocations: 477.1 kB / 0.992 GB, free: 15.81 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.3046, allocations: 4 kB / 0.992 GB, free: 15.81 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.929e-05/0.3047, allocations: 4 kB / 0.992 GB, free: 15.8 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.718e-06/0.3047, allocations: 4 kB / 0.992 GB, free: 15.8 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.873e-06/0.3047, allocations: 0 / 0.992 GB, free: 15.8 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.3047, allocations: 0 / 0.992 GB, free: 15.8 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.988e-06/0.3047, allocations: 4 kB / 0.992 GB, free: 15.8 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003643/0.3051, allocations: 0.6927 MB / 0.9927 GB, free: 15.04 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 5.507e-05/0.3051, allocations: 89.02 kB / 0.9928 GB, free: 14.93 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.701e-05/0.3052, allocations: 4 kB / 0.9928 GB, free: 14.93 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.222e-05/0.3052, allocations: 0 / 0.9928 GB, free: 14.93 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.148e-05/0.3052, allocations: 7.922 kB / 0.9928 GB, free: 14.92 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.589e-06/0.3052, allocations: 8 kB / 0.9928 GB, free: 14.91 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0001015/0.3053, allocations: 124 kB / 0.9929 GB, free: 14.79 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3054, allocations: 0 / 0.9929 GB, free: 14.79 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0005171/0.3059, allocations: 55.84 kB / 0.993 GB, free: 14.73 MB / 0.7292 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.0001086/0.306, allocations: 95.25 kB / 0.993 GB, free: 14.63 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0001879/0.3062, allocations: 112.5 kB / 0.9932 GB, free: 14.52 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.3062, allocations: 0 / 0.9932 GB, free: 14.52 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 2.629e-05/0.3062, allocations: 15.92 kB / 0.9932 GB, free: 14.5 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002722/0.3065, allocations: 27.92 kB / 0.9932 GB, free: 14.48 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005407/0.3071, allocations: 434.7 kB / 0.9936 GB, free: 14 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000261/0.3073, allocations: 0.728 MB / 0.9943 GB, free: 13.25 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 8.754e-05/0.3074, allocations: 24.62 kB / 0.9943 GB, free: 13.22 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.701e-05/0.3075, allocations: 11.44 kB / 0.9944 GB, free: 13.21 MB / 0.7292 GB Notification: Performance of SimCode: time 2e-07/0.3075, allocations: 7.938 kB / 0.9944 GB, free: 13.21 MB / 0.7292 GB Notification: Performance of Templates: time 0.002901/0.3104, allocations: 0.8336 MB / 0.9952 GB, free: 12.38 MB / 0.7292 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)