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: "" <> buildModelFMU(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_8_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_8_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001443/0.001443, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001622/0.001622, allocations: 198.5 kB / 16.14 MB, free: 6.707 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.267/1.267, allocations: 205.1 MB / 222 MB, free: 5.008 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.683/1.683, allocations: 292.3 MB / 0.5484 GB, free: 13.68 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.001363/0.001363, allocations: 75.59 kB / 0.6709 GB, free: 26.33 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1947/0.1961, allocations: 114.5 MB / 0.7828 GB, free: 13.91 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.003571/0.1997, allocations: 2.562 MB / 0.7853 GB, free: 11.33 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001141/0.2009, allocations: 0.783 MB / 0.7861 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.138e-05/0.201, allocations: 4 kB / 0.7861 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.001025/0.202, allocations: 0.5385 MB / 0.7866 GB, free: 9.996 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0002128/0.2022, allocations: 107.6 kB / 0.7867 GB, free: 9.891 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002407/0.2025, allocations: 103.8 kB / 0.7868 GB, free: 9.789 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002569/0.2027, allocations: 283.3 kB / 0.7871 GB, free: 9.512 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002264/0.203, allocations: 110.2 kB / 0.7872 GB, free: 9.402 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 7.536e-05/0.2031, allocations: 71.7 kB / 0.7872 GB, free: 9.332 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001858/0.2033, allocations: 103.7 kB / 0.7873 GB, free: 9.23 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.293e-05/0.2033, allocations: 11.94 kB / 0.7873 GB, free: 9.219 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002049/0.2035, allocations: 139.7 kB / 0.7875 GB, free: 9.082 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 6.031e-05/0.2036, allocations: 55.88 kB / 0.7875 GB, free: 9.027 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 7.717e-05/0.2037, allocations: 67.61 kB / 0.7876 GB, free: 8.961 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.000248/0.2039, allocations: 219.6 kB / 0.7878 GB, free: 8.746 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.2039, allocations: 0 / 0.7878 GB, free: 8.746 MB / 0.6075 GB Notification: Performance of FrontEnd: time 3.677e-06/0.2039, allocations: 8 kB / 0.7878 GB, free: 8.738 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.209e-06/0.2039, allocations: 0 / 0.7878 GB, free: 8.738 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.0005577/0.2045, allocations: 455.2 kB / 0.7882 GB, free: 8.246 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.16e-05/0.2045, allocations: 8.031 kB / 0.7883 GB, free: 8.238 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.493e-05/0.2046, allocations: 50.73 kB / 0.7883 GB, free: 8.18 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003403/0.2049, allocations: 48.7 kB / 0.7883 GB, free: 8.133 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001933/0.2051, allocations: 208.1 kB / 0.7885 GB, free: 7.891 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.401e-05/0.2052, allocations: 12.64 kB / 0.7886 GB, free: 7.879 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.245e-05/0.2052, allocations: 12.38 kB / 0.7886 GB, free: 7.867 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003251/0.2055, allocations: 234.8 kB / 0.7888 GB, free: 7.617 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.727e-06/0.2055, allocations: 0 / 0.7888 GB, free: 7.617 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.832e-05/0.2056, allocations: 4 kB / 0.7888 GB, free: 7.613 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.038e-05/0.2056, allocations: 16.27 kB / 0.7888 GB, free: 7.598 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002143/0.2058, allocations: 148.7 kB / 0.789 GB, free: 7.453 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009197/0.2067, allocations: 1.134 MB / 0.7901 GB, free: 6.184 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 6.64e-05/0.2068, allocations: 34.56 kB / 0.7901 GB, free: 6.141 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.047e-05/0.2069, allocations: 20.86 kB / 0.7901 GB, free: 6.117 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.317e-05/0.2069, allocations: 8.062 kB / 0.7901 GB, free: 6.109 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.997e-05/0.2069, allocations: 34.56 kB / 0.7902 GB, free: 6.066 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=4): time 2.185e-06/0.2069, allocations: 0 / 0.7902 GB, free: 6.066 MB / 0.6075 GB Notification: Performance of matching and sorting (n=4): time 0.000177/0.2071, allocations: 77.66 kB / 0.7902 GB, free: 5.984 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.924e-05/0.2071, allocations: 59.41 kB / 0.7903 GB, free: 5.914 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001309/0.2073, allocations: 175 kB / 0.7905 GB, free: 5.734 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.069e-05/0.2073, allocations: 25.7 kB / 0.7905 GB, free: 5.703 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.712e-05/0.2074, allocations: 143.4 kB / 0.7906 GB, free: 5.559 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.392e-05/0.2074, allocations: 15.75 kB / 0.7906 GB, free: 5.543 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.415e-05/0.2074, allocations: 33.7 kB / 0.7907 GB, free: 5.504 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 8.364e-05/0.2075, allocations: 318.8 kB / 0.791 GB, free: 5.184 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.104e-05/0.2076, allocations: 24.86 kB / 0.791 GB, free: 5.156 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.789e-05/0.2076, allocations: 97.3 kB / 0.7911 GB, free: 5.027 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001159/0.2078, allocations: 125.3 kB / 0.7912 GB, free: 4.871 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.2078, allocations: 0 / 0.7912 GB, free: 4.871 MB / 0.6075 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001775/0.208, allocations: 141.2 kB / 0.7913 GB, free: 4.727 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.413e-05/0.208, allocations: 8 kB / 0.7913 GB, free: 4.719 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.208, allocations: 4 kB / 0.7913 GB, free: 4.715 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.214e-05/0.208, allocations: 4.25 kB / 0.7914 GB, free: 4.711 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.981e-05/0.2081, allocations: 31.98 kB / 0.7914 GB, free: 4.68 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.927e-06/0.2081, allocations: 7.938 kB / 0.7914 GB, free: 4.672 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.785e-05/0.2082, allocations: 15.84 kB / 0.7914 GB, free: 4.656 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.076e-05/0.2082, allocations: 4 kB / 0.7914 GB, free: 4.652 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 8.96e-05/0.2083, allocations: 128.1 kB / 0.7915 GB, free: 4.523 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 6.676e-05/0.2084, allocations: 86.44 kB / 0.7916 GB, free: 4.406 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001089/0.2085, allocations: 125.2 kB / 0.7917 GB, free: 4.25 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.052e-06/0.2085, allocations: 0 / 0.7917 GB, free: 4.25 MB / 0.6075 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0001702/0.2087, allocations: 133.6 kB / 0.7919 GB, free: 4.113 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 7.755e-06/0.2087, allocations: 8 kB / 0.7919 GB, free: 4.105 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.124e-06/0.2087, allocations: 0 / 0.7919 GB, free: 4.105 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.677e-06/0.2087, allocations: 4 kB / 0.7919 GB, free: 4.102 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.401e-05/0.2088, allocations: 31.88 kB / 0.7919 GB, free: 4.07 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.133e-06/0.2088, allocations: 11.97 kB / 0.7919 GB, free: 4.059 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.82e-05/0.2089, allocations: 11.84 kB / 0.7919 GB, free: 4.047 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.462e-06/0.2089, allocations: 4 kB / 0.7919 GB, free: 4.043 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 7.493e-05/0.2089, allocations: 191 kB / 0.7921 GB, free: 3.852 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.801e-05/0.209, allocations: 11.97 kB / 0.7921 GB, free: 3.84 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.995e-05/0.209, allocations: 16.88 kB / 0.7921 GB, free: 3.82 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.209, allocations: 0 / 0.7921 GB, free: 3.82 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.209, allocations: 0 / 0.7921 GB, free: 3.82 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.209, allocations: 7.984 kB / 0.7921 GB, free: 3.812 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003659/0.2094, allocations: 473.2 kB / 0.7926 GB, free: 3.281 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.2094, allocations: 0 / 0.7926 GB, free: 3.281 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.415e-05/0.2095, allocations: 8 kB / 0.7926 GB, free: 3.273 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.2095, allocations: 3.938 kB / 0.7926 GB, free: 3.27 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.733e-06/0.2095, allocations: 0 / 0.7926 GB, free: 3.27 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.026e-06/0.2095, allocations: 4 kB / 0.7926 GB, free: 3.266 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.2095, allocations: 0 / 0.7926 GB, free: 3.266 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001094/0.2096, allocations: 123.4 kB / 0.7927 GB, free: 3.117 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.901e-05/0.2097, allocations: 89.02 kB / 0.7928 GB, free: 3.012 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.77e-05/0.2097, allocations: 0 / 0.7928 GB, free: 3.012 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.392e-05/0.2097, allocations: 4 kB / 0.7928 GB, free: 3.008 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.341e-05/0.2097, allocations: 3.984 kB / 0.7928 GB, free: 3.004 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.208e-06/0.2097, allocations: 4.141 kB / 0.7928 GB, free: 3 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 8.315e-05/0.2098, allocations: 124 kB / 0.7929 GB, free: 2.879 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2098, allocations: 4 kB / 0.7929 GB, free: 2.875 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003262/0.2102, allocations: 51.84 kB / 0.793 GB, free: 2.824 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.0003068/0.2105, allocations: 0.6615 MB / 0.7936 GB, free: 2.121 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0001697/0.2107, allocations: 107.7 kB / 0.7937 GB, free: 2.016 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.2107, allocations: 0 / 0.7937 GB, free: 2.016 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 2.276e-05/0.2107, allocations: 13.25 kB / 0.7938 GB, free: 2.004 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002521/0.211, allocations: 20.23 kB / 0.7938 GB, free: 1.984 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001519/0.2125, allocations: 1.782 MB / 0.7955 GB, free: 44 kB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002455/0.2127, allocations: 0.7241 MB / 0.7962 GB, free: 15.29 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 8.44e-05/0.2128, allocations: 32.39 kB / 0.7963 GB, free: 15.26 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.125e-05/0.2129, allocations: 35.42 kB / 0.7963 GB, free: 15.23 MB / 0.6231 GB Notification: Performance of SimCode: time 3.71e-07/0.2129, allocations: 0 / 0.7963 GB, free: 15.23 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01029/0.2232, allocations: 2.225 MB / 0.7985 GB, free: 13.11 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001597/0.2234, allocations: 206.5 kB / 0.7987 GB, free: 12.86 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.616/1.84, allocations: 0 / 0.7987 GB, free: 12.86 MB / 0.6231 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor.fmu > Buildings_8_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1)