Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.611/1.611, allocations: 252 MB / 267.3 MB, free: 10.82 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00105/0.00105, allocations: 173.4 kB / 327 MB, free: 2.082 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.78/1.78, allocations: 205.4 MB / 0.578 GB, free: 20.1 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007516/0.0007517, allocations: 86.36 kB / 0.6826 GB, free: 12.73 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003397/0.0003402, allocations: 11.83 kB / 0.7971 GB, free: 134.7 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2349/0.2353, allocations: 106.3 MB / 0.9009 GB, free: 63.23 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.002698/0.2381, allocations: 2.204 MB / 0.9031 GB, free: 61.01 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001184/0.2393, allocations: 0.7675 MB / 0.9038 GB, free: 60.24 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001392/0.2394, allocations: 7.875 kB / 0.9038 GB, free: 60.23 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001854/0.2396, allocations: 23.84 kB / 0.9038 GB, free: 60.21 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0004262/0.2401, allocations: 103.6 kB / 0.9039 GB, free: 60.11 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004068/0.2405, allocations: 103.8 kB / 0.904 GB, free: 60 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.000331/0.2408, allocations: 303.2 kB / 0.9043 GB, free: 59.71 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002767/0.2411, allocations: 175.2 kB / 0.9045 GB, free: 59.51 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001202/0.2413, allocations: 63.77 kB / 0.9046 GB, free: 59.45 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002518/0.2415, allocations: 95.66 kB / 0.9046 GB, free: 59.36 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.257e-05/0.2416, allocations: 8 kB / 0.9046 GB, free: 59.35 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002716/0.2418, allocations: 139.7 kB / 0.9048 GB, free: 59.21 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 7.007e-05/0.2419, allocations: 47.83 kB / 0.9048 GB, free: 59.16 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 8.054e-05/0.242, allocations: 93.36 kB / 0.9049 GB, free: 59.07 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0003036/0.2423, allocations: 219.5 kB / 0.9051 GB, free: 58.85 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.2423, allocations: 0 / 0.9051 GB, free: 58.85 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.653e-06/0.2423, allocations: 0 / 0.9051 GB, free: 58.85 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 7.183e-06/0.2423, allocations: 0 / 0.9051 GB, free: 58.85 MB / 0.6042 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.0005891/0.2429, allocations: 419.5 kB / 0.9055 GB, free: 58.39 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.725e-05/0.243, allocations: 12.03 kB / 0.9055 GB, free: 58.38 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.509e-05/0.2431, allocations: 46.73 kB / 0.9056 GB, free: 58.32 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003954/0.2435, allocations: 40.72 kB / 0.9056 GB, free: 58.28 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001931/0.2437, allocations: 224 kB / 0.9058 GB, free: 58.02 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.75e-05/0.2437, allocations: 16.59 kB / 0.9059 GB, free: 58.01 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.48e-05/0.2437, allocations: 12.38 kB / 0.9059 GB, free: 58 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003244/0.244, allocations: 231 kB / 0.9061 GB, free: 57.75 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/0.2441, allocations: 3.938 kB / 0.9061 GB, free: 57.75 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.176e-05/0.2441, allocations: 11.98 kB / 0.9061 GB, free: 57.73 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.745e-05/0.2441, allocations: 16.27 kB / 0.9061 GB, free: 57.72 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001983/0.2443, allocations: 148.6 kB / 0.9063 GB, free: 57.57 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008696/0.2452, allocations: 1.134 MB / 0.9074 GB, free: 56.3 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 7.173e-05/0.2453, allocations: 46.56 kB / 0.9074 GB, free: 56.25 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.976e-05/0.2453, allocations: 16.86 kB / 0.9074 GB, free: 56.23 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.174e-05/0.2454, allocations: 0 / 0.9074 GB, free: 56.23 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.186e-05/0.2454, allocations: 38.64 kB / 0.9075 GB, free: 56.18 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=4): time 8.52e-07/0.2454, allocations: 0 / 0.9075 GB, free: 56.18 MB / 0.6042 GB Notification: Performance of matching and sorting (n=4): time 0.0001854/0.2456, allocations: 77.53 kB / 0.9075 GB, free: 56.1 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.283e-05/0.2456, allocations: 55.34 kB / 0.9076 GB, free: 56.04 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000122/0.2458, allocations: 177.8 kB / 0.9078 GB, free: 55.86 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 9.829e-06/0.2458, allocations: 29.7 kB / 0.9078 GB, free: 55.82 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 7.13e-05/0.2459, allocations: 139.4 kB / 0.9079 GB, free: 55.68 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.404e-05/0.2459, allocations: 15.75 kB / 0.9079 GB, free: 55.66 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.412e-06/0.2459, allocations: 4 kB / 0.9079 GB, free: 55.66 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 9.165e-05/0.246, allocations: 322.8 kB / 0.9082 GB, free: 55.34 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.604e-05/0.246, allocations: 19.98 kB / 0.9083 GB, free: 55.32 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.047e-05/0.2461, allocations: 96.12 kB / 0.9084 GB, free: 55.19 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001133/0.2462, allocations: 121.2 kB / 0.9085 GB, free: 55.04 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.2462, allocations: 4 kB / 0.9085 GB, free: 55.04 MB / 0.6042 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001546/0.2464, allocations: 129.4 kB / 0.9086 GB, free: 54.9 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 6.152e-05/0.2465, allocations: 172.9 kB / 0.9088 GB, free: 54.7 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.884e-06/0.2465, allocations: 4 kB / 0.9088 GB, free: 54.7 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.471e-05/0.2465, allocations: 0 / 0.9088 GB, free: 54.7 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001025/0.2466, allocations: 23.98 kB / 0.9088 GB, free: 54.67 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.468e-06/0.2466, allocations: 15.92 kB / 0.9088 GB, free: 54.66 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.63e-05/0.2467, allocations: 15.84 kB / 0.9088 GB, free: 54.64 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.019e-05/0.2467, allocations: 4 kB / 0.9088 GB, free: 54.64 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 5.731e-06/0.2467, allocations: 4 kB / 0.9088 GB, free: 54.63 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0001172/0.2469, allocations: 103.6 kB / 0.9089 GB, free: 54.53 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.615e-06/0.2469, allocations: 4 kB / 0.9089 GB, free: 54.53 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.095e-06/0.2469, allocations: 8.312 kB / 0.9089 GB, free: 54.52 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.438e-05/0.2469, allocations: 20 kB / 0.909 GB, free: 54.5 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.791e-06/0.247, allocations: 11.92 kB / 0.909 GB, free: 54.49 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.009e-05/0.247, allocations: 7.906 kB / 0.909 GB, free: 54.48 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.883e-06/0.247, allocations: 11.94 kB / 0.909 GB, free: 54.47 MB / 0.6042 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.284e-05/0.2471, allocations: 209 kB / 0.9092 GB, free: 54.25 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.728e-05/0.2472, allocations: 11.91 kB / 0.9092 GB, free: 54.24 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.126e-05/0.2472, allocations: 8.938 kB / 0.9092 GB, free: 54.23 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.374e-06/0.2472, allocations: 4 kB / 0.9092 GB, free: 54.23 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.2472, allocations: 4 kB / 0.9092 GB, free: 54.22 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.009e-06/0.2472, allocations: 7.922 kB / 0.9092 GB, free: 54.21 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003127/0.2475, allocations: 469.1 kB / 0.9097 GB, free: 53.69 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.2475, allocations: 288 / 0.9097 GB, free: 53.69 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.08e-05/0.2476, allocations: 11.94 kB / 0.9097 GB, free: 53.68 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.2476, allocations: 4.125 kB / 0.9097 GB, free: 53.67 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.072e-05/0.2476, allocations: 4 kB / 0.9097 GB, free: 53.67 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.704e-06/0.2476, allocations: 0 / 0.9097 GB, free: 53.67 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.295e-06/0.2476, allocations: 0 / 0.9097 GB, free: 53.67 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.927e-05/0.2477, allocations: 115.5 kB / 0.9098 GB, free: 53.53 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 4.137e-05/0.2478, allocations: 96.95 kB / 0.9099 GB, free: 53.41 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.854e-05/0.2478, allocations: 4 kB / 0.9099 GB, free: 53.41 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.288e-05/0.2478, allocations: 0 / 0.9099 GB, free: 53.41 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.745e-05/0.2479, allocations: 7.984 kB / 0.9099 GB, free: 53.4 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.828e-06/0.2479, allocations: 4 kB / 0.9099 GB, free: 53.4 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 6.646e-05/0.2479, allocations: 128.9 kB / 0.91 GB, free: 53.27 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2479, allocations: 0 / 0.91 GB, free: 53.27 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0003132/0.2483, allocations: 55.75 kB / 0.9101 GB, free: 53.22 MB / 0.6042 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.0002401/0.2485, allocations: 0.6554 MB / 0.9107 GB, free: 52.52 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0001961/0.2487, allocations: 112 kB / 0.9108 GB, free: 52.41 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.2487, allocations: 0 / 0.9108 GB, free: 52.41 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 2.214e-05/0.2487, allocations: 19.94 kB / 0.9108 GB, free: 52.39 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002669/0.249, allocations: 15.98 kB / 0.9109 GB, free: 52.38 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001257/0.2503, allocations: 1.796 MB / 0.9126 GB, free: 50.42 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001407/0.2504, allocations: 0.7163 MB / 0.9133 GB, free: 49.68 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 8.836e-05/0.2505, allocations: 32.61 kB / 0.9133 GB, free: 49.64 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.247e-05/0.2506, allocations: 27.44 kB / 0.9134 GB, free: 49.62 MB / 0.6042 GB Notification: Performance of SimCode: time 3.4e-07/0.2506, allocations: 0 / 0.9134 GB, free: 49.62 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01124/0.2619, allocations: 2.167 MB / 0.9155 GB, free: 47.62 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001735/0.2621, allocations: 218.9 kB / 0.9157 GB, free: 47.36 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.796/2.058, allocations: 0 / 0.9157 GB, free: 47.36 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor.fmu > Buildings_maint.7.0.x_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1)