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.429/1.429, allocations: 252 MB / 267 MB, free: 10.97 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.001148/0.001148, allocations: 194 kB / 326.6 MB, free: 2.203 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.869/1.869, allocations: 205.4 MB / 0.5777 GB, free: 20.21 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.0007733/0.0007733, allocations: 83.42 kB / 0.6822 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004565/0.0004567, allocations: 9.562 kB / 0.7965 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2228/0.2233, allocations: 106.3 MB / 0.9003 GB, free: 63.81 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.002394/0.2258, allocations: 2.134 MB / 0.9024 GB, free: 61.66 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0009081/0.2267, allocations: 0.7209 MB / 0.9031 GB, free: 60.94 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.582e-05/0.2268, allocations: 4 kB / 0.9031 GB, free: 60.94 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001494/0.227, allocations: 31.72 kB / 0.9031 GB, free: 60.91 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0002587/0.2272, allocations: 95.62 kB / 0.9032 GB, free: 60.81 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002569/0.2275, allocations: 79.83 kB / 0.9033 GB, free: 60.73 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001785/0.2277, allocations: 235.3 kB / 0.9035 GB, free: 60.5 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001986/0.2279, allocations: 175.2 kB / 0.9037 GB, free: 60.31 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 5.733e-05/0.228, allocations: 59.77 kB / 0.9037 GB, free: 60.25 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001715/0.2281, allocations: 87.66 kB / 0.9038 GB, free: 60.16 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.267e-05/0.2282, allocations: 12 kB / 0.9038 GB, free: 60.15 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001127/0.2283, allocations: 43.97 kB / 0.9039 GB, free: 60.11 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 4.674e-05/0.2283, allocations: 55.81 kB / 0.9039 GB, free: 60.05 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 3.299e-05/0.2284, allocations: 49.64 kB / 0.904 GB, free: 60 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001794/0.2286, allocations: 167.8 kB / 0.9041 GB, free: 59.84 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.2286, allocations: 0 / 0.9041 GB, free: 59.84 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.823e-06/0.2286, allocations: 0 / 0.9041 GB, free: 59.84 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.06e-06/0.2286, allocations: 0 / 0.9041 GB, free: 59.84 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.0004606/0.2291, allocations: 415.3 kB / 0.9045 GB, free: 59.38 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.716e-05/0.2291, allocations: 12.03 kB / 0.9045 GB, free: 59.37 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.961e-05/0.2292, allocations: 46.55 kB / 0.9046 GB, free: 59.31 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003214/0.2295, allocations: 51.73 kB / 0.9046 GB, free: 59.26 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001717/0.2297, allocations: 210.8 kB / 0.9048 GB, free: 59.02 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.582e-05/0.2297, allocations: 16.27 kB / 0.9049 GB, free: 59 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.115e-05/0.2297, allocations: 15.94 kB / 0.9049 GB, free: 58.98 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002923/0.23, allocations: 226.7 kB / 0.9051 GB, free: 58.74 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.006e-05/0.23, allocations: 0 / 0.9051 GB, free: 58.74 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.814e-05/0.2301, allocations: 8 kB / 0.9051 GB, free: 58.73 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.266e-05/0.2301, allocations: 20.2 kB / 0.9051 GB, free: 58.71 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001894/0.2303, allocations: 144.7 kB / 0.9053 GB, free: 58.57 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007226/0.231, allocations: 1.13 MB / 0.9064 GB, free: 57.31 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 5.675e-05/0.2311, allocations: 54.42 kB / 0.9064 GB, free: 57.25 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.599e-05/0.2311, allocations: 16.86 kB / 0.9064 GB, free: 57.23 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.263e-05/0.2311, allocations: 4 kB / 0.9064 GB, free: 57.22 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.14e-05/0.2312, allocations: 34.56 kB / 0.9065 GB, free: 57.18 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=4): time 1.112e-06/0.2312, allocations: 0 / 0.9065 GB, free: 57.18 MB / 0.6042 GB Notification: Performance of matching and sorting (n=4): time 0.0001561/0.2313, allocations: 69.67 kB / 0.9065 GB, free: 57.11 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.245e-05/0.2314, allocations: 55.34 kB / 0.9066 GB, free: 57.04 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001018/0.2315, allocations: 177.8 kB / 0.9068 GB, free: 56.86 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 7.644e-06/0.2315, allocations: 29.7 kB / 0.9068 GB, free: 56.82 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 4.794e-05/0.2315, allocations: 147.3 kB / 0.9069 GB, free: 56.67 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 9.117e-06/0.2315, allocations: 7.906 kB / 0.9069 GB, free: 56.66 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.268e-06/0.2316, allocations: 0 / 0.9069 GB, free: 56.66 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 4.332e-05/0.2316, allocations: 322.8 kB / 0.9072 GB, free: 56.34 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.222e-05/0.2316, allocations: 19.98 kB / 0.9073 GB, free: 56.32 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.878e-05/0.2317, allocations: 89.44 kB / 0.9073 GB, free: 56.2 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.189e-05/0.2318, allocations: 35.92 kB / 0.9074 GB, free: 56.16 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.2318, allocations: 4 kB / 0.9074 GB, free: 56.16 MB / 0.6042 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001471/0.2319, allocations: 133.2 kB / 0.9075 GB, free: 56.02 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 4.73e-05/0.232, allocations: 169.8 kB / 0.9077 GB, free: 55.82 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.631e-06/0.232, allocations: 0 / 0.9077 GB, free: 55.82 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.413e-05/0.232, allocations: 4 kB / 0.9077 GB, free: 55.82 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.592e-05/0.2321, allocations: 23.98 kB / 0.9077 GB, free: 55.79 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.194e-06/0.2321, allocations: 7.938 kB / 0.9077 GB, free: 55.79 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.256e-05/0.2322, allocations: 15.78 kB / 0.9077 GB, free: 55.77 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.016e-05/0.2322, allocations: 12 kB / 0.9077 GB, free: 55.76 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 4.809e-06/0.2322, allocations: 7.938 kB / 0.9077 GB, free: 55.75 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0001123/0.2323, allocations: 99.73 kB / 0.9078 GB, free: 55.65 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.384e-06/0.2323, allocations: 4 kB / 0.9078 GB, free: 55.65 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.646e-06/0.2323, allocations: 8 kB / 0.9078 GB, free: 55.64 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.196e-05/0.2324, allocations: 27.94 kB / 0.9079 GB, free: 55.61 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.116e-06/0.2325, allocations: 3.938 kB / 0.9079 GB, free: 55.61 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.171e-05/0.2325, allocations: 15.91 kB / 0.9079 GB, free: 55.59 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.5e-06/0.2325, allocations: 4 kB / 0.9079 GB, free: 55.59 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.252e-05/0.2326, allocations: 213.3 kB / 0.9081 GB, free: 55.37 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.669e-05/0.2326, allocations: 7.906 kB / 0.9081 GB, free: 55.36 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.586e-05/0.2327, allocations: 12.94 kB / 0.9081 GB, free: 55.35 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.2327, allocations: 7.938 kB / 0.9081 GB, free: 55.34 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.2327, allocations: 0 / 0.9081 GB, free: 55.34 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.2327, allocations: 0 / 0.9081 GB, free: 55.34 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002968/0.233, allocations: 481 kB / 0.9086 GB, free: 54.8 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.233, allocations: 3.953 kB / 0.9086 GB, free: 54.8 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.987e-05/0.233, allocations: 4 kB / 0.9086 GB, free: 54.79 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.2331, allocations: 4 kB / 0.9086 GB, free: 54.79 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.254e-06/0.2331, allocations: 0 / 0.9086 GB, free: 54.79 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.2331, allocations: 0 / 0.9086 GB, free: 54.79 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-06/0.2331, allocations: 4 kB / 0.9086 GB, free: 54.79 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.406e-05/0.2332, allocations: 119.9 kB / 0.9087 GB, free: 54.64 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 4.713e-05/0.2332, allocations: 89.02 kB / 0.9088 GB, free: 54.54 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.858e-05/0.2333, allocations: 3.984 kB / 0.9088 GB, free: 54.53 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.582e-05/0.2333, allocations: 7.984 kB / 0.9088 GB, free: 54.52 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.923e-05/0.2333, allocations: 0 / 0.9088 GB, free: 54.52 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.04e-06/0.2333, allocations: 8 kB / 0.9088 GB, free: 54.52 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 7.417e-05/0.2334, allocations: 124.9 kB / 0.9089 GB, free: 54.39 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2334, allocations: 0 / 0.9089 GB, free: 54.39 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0003008/0.2337, allocations: 51.84 kB / 0.909 GB, free: 54.34 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 (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.0002666/0.234, allocations: 0.6538 MB / 0.9096 GB, free: 53.65 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0001568/0.2342, allocations: 103.7 kB / 0.9097 GB, free: 53.55 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.2342, allocations: 1.25 kB / 0.9097 GB, free: 53.55 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 2.252e-05/0.2342, allocations: 19.94 kB / 0.9097 GB, free: 53.53 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002515/0.2345, allocations: 20.23 kB / 0.9098 GB, free: 53.51 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008441/0.2353, allocations: 0.7976 MB / 0.9105 GB, free: 52.62 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001277/0.2355, allocations: 0.728 MB / 0.9113 GB, free: 51.86 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 7.943e-05/0.2355, allocations: 32.39 kB / 0.9113 GB, free: 51.83 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.427e-05/0.2356, allocations: 27.44 kB / 0.9113 GB, free: 51.8 MB / 0.6042 GB Notification: Performance of SimCode: time 2.3e-07/0.2356, allocations: 0 / 0.9113 GB, free: 51.8 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01141/0.247, allocations: 2.162 MB / 0.9134 GB, free: 49.82 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001231/0.2472, allocations: 206.2 kB / 0.9136 GB, free: 49.58 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.544/1.791, allocations: 0 / 0.9136 GB, free: 49.58 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)