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.001529/0.001529, allocations: 109.4 kB / 15.69 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001443/0.001443, allocations: 185.4 kB / 16.62 MB, free: 6.582 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.452/1.452, allocations: 205.1 MB / 222.5 MB, free: 4.484 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.836/1.836, allocations: 292.3 MB / 0.549 GB, free: 12.75 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.002119/0.002119, allocations: 64.98 kB / 0.6722 GB, free: 25.82 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2824/0.2846, allocations: 114.6 MB / 0.7841 GB, free: 12.74 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.005186/0.2898, allocations: 2.501 MB / 0.7866 GB, free: 10.22 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001577/0.2914, allocations: 0.7789 MB / 0.7873 GB, free: 9.441 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001712/0.2916, allocations: 4 kB / 0.7873 GB, free: 9.438 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.001377/0.293, allocations: 0.5686 MB / 0.7879 GB, free: 8.863 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0003353/0.2934, allocations: 107.5 kB / 0.788 GB, free: 8.758 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.000326/0.2937, allocations: 103.7 kB / 0.7881 GB, free: 8.656 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003118/0.294, allocations: 199.4 kB / 0.7883 GB, free: 8.461 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003993/0.2944, allocations: 172.7 kB / 0.7884 GB, free: 8.289 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001397/0.2946, allocations: 79.77 kB / 0.7885 GB, free: 8.211 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002836/0.2949, allocations: 95.64 kB / 0.7886 GB, free: 8.117 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.971e-05/0.2949, allocations: 12 kB / 0.7886 GB, free: 8.105 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002353/0.2952, allocations: 103.8 kB / 0.7887 GB, free: 8.004 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 7.148e-05/0.2952, allocations: 59.83 kB / 0.7888 GB, free: 7.945 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 9.466e-05/0.2953, allocations: 75.66 kB / 0.7888 GB, free: 7.871 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003459/0.2957, allocations: 223.3 kB / 0.7891 GB, free: 7.652 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.2957, allocations: 0 / 0.7891 GB, free: 7.652 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.513e-06/0.2957, allocations: 0 / 0.7891 GB, free: 7.652 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.167e-05/0.2957, allocations: 0 / 0.7891 GB, free: 7.652 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.0006808/0.2964, allocations: 447.2 kB / 0.7895 GB, free: 7.168 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.726e-05/0.2965, allocations: 12.03 kB / 0.7895 GB, free: 7.156 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004006/0.2969, allocations: 48.66 kB / 0.7895 GB, free: 7.109 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002827/0.2972, allocations: 224.1 kB / 0.7898 GB, free: 6.852 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.705e-05/0.2972, allocations: 12.64 kB / 0.7898 GB, free: 6.84 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.522e-05/0.2972, allocations: 12.38 kB / 0.7898 GB, free: 6.828 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00036/0.2976, allocations: 223.3 kB / 0.79 GB, free: 6.59 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.23e-05/0.2976, allocations: 7.938 kB / 0.79 GB, free: 6.582 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.147e-05/0.2977, allocations: 8 kB / 0.79 GB, free: 6.574 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.138e-05/0.2977, allocations: 12.27 kB / 0.79 GB, free: 6.562 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002464/0.2979, allocations: 148.7 kB / 0.7902 GB, free: 6.418 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001123/0.2991, allocations: 1.13 MB / 0.7913 GB, free: 5.152 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 8.663e-05/0.2992, allocations: 38.56 kB / 0.7913 GB, free: 5.105 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.32e-05/0.2992, allocations: 20.94 kB / 0.7913 GB, free: 5.082 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.32e-05/0.2992, allocations: 3.984 kB / 0.7913 GB, free: 5.078 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.354e-05/0.2993, allocations: 34.56 kB / 0.7914 GB, free: 5.035 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=4): time 1.212e-06/0.2993, allocations: 8 kB / 0.7914 GB, free: 5.027 MB / 0.6075 GB Notification: Performance of matching and sorting (n=4): time 0.0001987/0.2995, allocations: 73.47 kB / 0.7914 GB, free: 4.949 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.823e-05/0.2995, allocations: 55.39 kB / 0.7915 GB, free: 4.883 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001433/0.2997, allocations: 172.2 kB / 0.7916 GB, free: 4.707 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.442e-05/0.2997, allocations: 25.7 kB / 0.7917 GB, free: 4.676 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 8.804e-05/0.2998, allocations: 143.4 kB / 0.7918 GB, free: 4.531 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.382e-05/0.2998, allocations: 15.75 kB / 0.7918 GB, free: 4.516 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.976e-05/0.2999, allocations: 33.7 kB / 0.7919 GB, free: 4.477 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.000119/0.3, allocations: 322.8 kB / 0.7922 GB, free: 4.152 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.164e-05/0.3001, allocations: 24.84 kB / 0.7922 GB, free: 4.125 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.009e-05/0.3001, allocations: 89.38 kB / 0.7923 GB, free: 4.004 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001487/0.3003, allocations: 125.5 kB / 0.7924 GB, free: 3.848 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/0.3003, allocations: 0 / 0.7924 GB, free: 3.848 MB / 0.6075 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002083/0.3005, allocations: 133.3 kB / 0.7925 GB, free: 3.711 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.494e-05/0.3005, allocations: 8.312 kB / 0.7925 GB, free: 3.703 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.605e-06/0.3006, allocations: 8 kB / 0.7925 GB, free: 3.695 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.692e-05/0.3006, allocations: 7.938 kB / 0.7925 GB, free: 3.688 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001103/0.3007, allocations: 23.98 kB / 0.7926 GB, free: 3.664 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.318e-06/0.3007, allocations: 7.875 kB / 0.7926 GB, free: 3.656 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.758e-05/0.3008, allocations: 23.75 kB / 0.7926 GB, free: 3.633 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.019e-05/0.3008, allocations: 4 kB / 0.7926 GB, free: 3.629 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001038/0.3009, allocations: 124.8 kB / 0.7927 GB, free: 3.504 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001025/0.301, allocations: 97.42 kB / 0.7928 GB, free: 3.375 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001337/0.3012, allocations: 113.3 kB / 0.7929 GB, free: 3.23 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.216e-06/0.3012, allocations: 0 / 0.7929 GB, free: 3.23 MB / 0.6075 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0001844/0.3014, allocations: 137.3 kB / 0.7931 GB, free: 3.09 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.218e-05/0.3014, allocations: 14.59 kB / 0.7931 GB, free: 3.078 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.234e-06/0.3014, allocations: 0 / 0.7931 GB, free: 3.078 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.669e-06/0.3014, allocations: 4 kB / 0.7931 GB, free: 3.074 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.807e-05/0.3015, allocations: 31.92 kB / 0.7931 GB, free: 3.043 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.783e-06/0.3015, allocations: 7.938 kB / 0.7931 GB, free: 3.035 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.904e-05/0.3016, allocations: 4 kB / 0.7931 GB, free: 3.031 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.283e-06/0.3016, allocations: 4 kB / 0.7931 GB, free: 3.027 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 9.223e-05/0.3017, allocations: 196.5 kB / 0.7933 GB, free: 2.828 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.23e-05/0.3017, allocations: 11.81 kB / 0.7933 GB, free: 2.816 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.62e-05/0.3018, allocations: 16.92 kB / 0.7933 GB, free: 2.797 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.3018, allocations: 3.938 kB / 0.7933 GB, free: 2.793 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.3018, allocations: 4 kB / 0.7933 GB, free: 2.789 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.435e-06/0.3018, allocations: 0 / 0.7933 GB, free: 2.789 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004183/0.3022, allocations: 477.1 kB / 0.7938 GB, free: 2.254 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.3022, allocations: 0 / 0.7938 GB, free: 2.254 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.291e-05/0.3023, allocations: 8 kB / 0.7938 GB, free: 2.246 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.3023, allocations: 0 / 0.7938 GB, free: 2.246 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.264e-06/0.3023, allocations: 0 / 0.7938 GB, free: 2.246 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/0.3023, allocations: 4 kB / 0.7938 GB, free: 2.242 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.3023, allocations: 0 / 0.7938 GB, free: 2.242 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001401/0.3024, allocations: 119.6 kB / 0.7939 GB, free: 2.098 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.427e-05/0.3025, allocations: 92.92 kB / 0.794 GB, free: 1.988 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.041e-05/0.3025, allocations: 7.984 kB / 0.794 GB, free: 1.98 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.473e-05/0.3026, allocations: 0 / 0.794 GB, free: 1.98 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.393e-05/0.3026, allocations: 0 / 0.794 GB, free: 1.98 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.328e-06/0.3026, allocations: 7.938 kB / 0.794 GB, free: 1.973 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001034/0.3027, allocations: 130.1 kB / 0.7941 GB, free: 1.848 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3027, allocations: 0 / 0.7941 GB, free: 1.848 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003515/0.3031, allocations: 55.84 kB / 0.7942 GB, free: 1.793 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.0001108/0.3032, allocations: 95.25 kB / 0.7943 GB, free: 1.688 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002169/0.3034, allocations: 116.9 kB / 0.7944 GB, free: 1.574 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.3034, allocations: 0 / 0.7944 GB, free: 1.574 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 3.126e-05/0.3035, allocations: 23.92 kB / 0.7944 GB, free: 1.551 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002585/0.3037, allocations: 22.41 kB / 0.7944 GB, free: 1.531 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004984/0.3042, allocations: 275.6 kB / 0.7947 GB, free: 1.227 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000316/0.3046, allocations: 0.7202 MB / 0.7954 GB, free: 492 kB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0001116/0.3047, allocations: 40.53 kB / 0.7954 GB, free: 452 kB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.087e-05/0.3047, allocations: 11.44 kB / 0.7955 GB, free: 440 kB / 0.6075 GB Notification: Performance of SimCode: time 3.3e-07/0.3047, allocations: 0 / 0.7955 GB, free: 440 kB / 0.6075 GB Notification: Performance of Templates: time 0.003437/0.3082, allocations: 0.8487 MB / 0.7963 GB, free: 15.59 MB / 0.6231 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)