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.001244/0.001244, allocations: 100 kB / 15.05 MB, free: 1.105 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.001349/0.00135, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.849/1.849, allocations: 205.4 MB / 222.1 MB, free: 5.652 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.841/1.841, allocations: 292.6 MB / 0.5497 GB, free: 14.61 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.0005114/0.0005115, allocations: 16.88 kB / 0.6737 GB, free: 26.34 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2439/0.2444, allocations: 116.3 MB / 0.7872 GB, free: 11.89 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.002573/0.247, allocations: 2.119 MB / 0.7893 GB, free: 9.762 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001014/0.2481, allocations: 0.7171 MB / 0.79 GB, free: 9.043 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.815e-05/0.2481, allocations: 3.938 kB / 0.79 GB, free: 9.039 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001133/0.2483, allocations: 31.78 kB / 0.79 GB, free: 9.008 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001989/0.2485, allocations: 63.81 kB / 0.7901 GB, free: 8.945 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002289/0.2487, allocations: 87.14 kB / 0.7902 GB, free: 8.863 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001676/0.2489, allocations: 103.8 kB / 0.7903 GB, free: 8.762 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002435/0.2491, allocations: 175.2 kB / 0.7904 GB, free: 8.566 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 6.239e-05/0.2492, allocations: 43.84 kB / 0.7905 GB, free: 8.523 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001538/0.2494, allocations: 67.73 kB / 0.7905 GB, free: 8.457 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.692e-05/0.2494, allocations: 8 kB / 0.7905 GB, free: 8.449 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001117/0.2495, allocations: 55.83 kB / 0.7906 GB, free: 8.395 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 4.488e-05/0.2496, allocations: 39.91 kB / 0.7906 GB, free: 8.355 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 4.48e-05/0.2496, allocations: 49.64 kB / 0.7907 GB, free: 8.301 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.000179/0.2498, allocations: 163.8 kB / 0.7908 GB, free: 8.141 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 1.954e-06/0.2498, allocations: 4 kB / 0.7908 GB, free: 8.137 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.243e-06/0.2498, allocations: 0 / 0.7908 GB, free: 8.137 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.168e-06/0.2498, allocations: 0 / 0.7908 GB, free: 8.137 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.0004934/0.2503, allocations: 423.1 kB / 0.7913 GB, free: 7.672 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.323e-05/0.2504, allocations: 12.03 kB / 0.7913 GB, free: 7.66 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.747e-05/0.2504, allocations: 46.55 kB / 0.7913 GB, free: 7.605 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003556/0.2508, allocations: 47.78 kB / 0.7914 GB, free: 7.559 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002165/0.251, allocations: 214.8 kB / 0.7916 GB, free: 7.309 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.565e-05/0.251, allocations: 16.22 kB / 0.7916 GB, free: 7.293 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.242e-05/0.2511, allocations: 12 kB / 0.7916 GB, free: 7.281 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003263/0.2514, allocations: 218.8 kB / 0.7918 GB, free: 7.047 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.838e-06/0.2514, allocations: 4 kB / 0.7918 GB, free: 7.043 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.701e-05/0.2514, allocations: 4 kB / 0.7918 GB, free: 7.039 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.739e-05/0.2515, allocations: 20.27 kB / 0.7918 GB, free: 7.02 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002244/0.2517, allocations: 148.6 kB / 0.792 GB, free: 6.875 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001/0.2527, allocations: 1.138 MB / 0.7931 GB, free: 5.602 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 6.929e-05/0.2528, allocations: 46.5 kB / 0.7931 GB, free: 5.547 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 9.227e-06/0.2528, allocations: 0 / 0.7931 GB, free: 5.547 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.912e-05/0.2529, allocations: 34.52 kB / 0.7932 GB, free: 5.504 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=4): time 1.022e-06/0.2529, allocations: 0 / 0.7932 GB, free: 5.504 MB / 0.6075 GB Notification: Performance of matching and sorting (n=4): time 0.0001742/0.253, allocations: 89.52 kB / 0.7932 GB, free: 5.41 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.166e-05/0.2531, allocations: 51.41 kB / 0.7933 GB, free: 5.348 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001657/0.2533, allocations: 167.1 kB / 0.7934 GB, free: 5.172 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.199e-05/0.2533, allocations: 25.7 kB / 0.7935 GB, free: 5.141 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 8.285e-05/0.2534, allocations: 139.4 kB / 0.7936 GB, free: 5 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.611e-05/0.2534, allocations: 27.67 kB / 0.7936 GB, free: 4.973 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.418e-06/0.2534, allocations: 0 / 0.7936 GB, free: 4.973 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001106/0.2535, allocations: 318.8 kB / 0.7939 GB, free: 4.652 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.757e-05/0.2536, allocations: 23.98 kB / 0.794 GB, free: 4.629 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.987e-05/0.2536, allocations: 85.42 kB / 0.794 GB, free: 4.512 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.569e-05/0.2537, allocations: 39.94 kB / 0.7941 GB, free: 4.473 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.2537, allocations: 0 / 0.7941 GB, free: 4.473 MB / 0.6075 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001859/0.2539, allocations: 133.6 kB / 0.7942 GB, free: 4.336 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003703/0.2543, allocations: 0.9599 MB / 0.7951 GB, free: 3.301 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.855e-06/0.2543, allocations: 7.953 kB / 0.7951 GB, free: 3.293 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.124e-05/0.2543, allocations: 4 kB / 0.7952 GB, free: 3.289 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001045/0.2544, allocations: 23.98 kB / 0.7952 GB, free: 3.266 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.086e-05/0.2544, allocations: 7.938 kB / 0.7952 GB, free: 3.258 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.784e-05/0.2545, allocations: 15.84 kB / 0.7952 GB, free: 3.242 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.969e-06/0.2545, allocations: 8 kB / 0.7952 GB, free: 3.234 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 6.533e-06/0.2545, allocations: 8 kB / 0.7952 GB, free: 3.227 MB / 0.6075 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00014/0.2547, allocations: 99.92 kB / 0.7953 GB, free: 3.129 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.913e-06/0.2547, allocations: 0 / 0.7953 GB, free: 3.129 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.178e-06/0.2547, allocations: 4 kB / 0.7953 GB, free: 3.125 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.266e-05/0.2548, allocations: 23.98 kB / 0.7953 GB, free: 3.102 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.342e-06/0.2548, allocations: 7.938 kB / 0.7953 GB, free: 3.094 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.687e-05/0.2549, allocations: 20.16 kB / 0.7954 GB, free: 3.074 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.605e-06/0.2549, allocations: 8 kB / 0.7954 GB, free: 3.066 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001257/0.255, allocations: 213.1 kB / 0.7956 GB, free: 2.848 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.746e-05/0.255, allocations: 15.75 kB / 0.7956 GB, free: 2.832 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.012e-05/0.2551, allocations: 12.94 kB / 0.7956 GB, free: 2.816 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.302e-06/0.2551, allocations: 0 / 0.7956 GB, free: 2.816 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.486e-06/0.2551, allocations: 0 / 0.7956 GB, free: 2.816 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.63e-06/0.2551, allocations: 3.984 kB / 0.7956 GB, free: 2.812 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004033/0.2555, allocations: 473.1 kB / 0.7961 GB, free: 2.281 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.2555, allocations: 4 kB / 0.7961 GB, free: 2.277 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.037e-05/0.2556, allocations: 4 kB / 0.7961 GB, free: 2.273 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.2556, allocations: 0 / 0.7961 GB, free: 2.273 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.863e-06/0.2556, allocations: 4 kB / 0.7961 GB, free: 2.27 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.2556, allocations: 0 / 0.7961 GB, free: 2.27 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.2556, allocations: 7.891 kB / 0.7961 GB, free: 2.262 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001301/0.2557, allocations: 148.8 kB / 0.7962 GB, free: 2.07 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 6.357e-05/0.2558, allocations: 96.92 kB / 0.7963 GB, free: 1.957 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.67e-05/0.2558, allocations: 0 / 0.7963 GB, free: 1.957 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.348e-05/0.2559, allocations: 0 / 0.7963 GB, free: 1.957 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.67e-05/0.2559, allocations: 15.98 kB / 0.7963 GB, free: 1.941 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.595e-06/0.2559, allocations: 0 / 0.7963 GB, free: 1.941 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 8.326e-05/0.256, allocations: 131.8 kB / 0.7964 GB, free: 1.812 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/0.256, allocations: 0 / 0.7964 GB, free: 1.812 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003312/0.2563, allocations: 55.78 kB / 0.7965 GB, free: 1.758 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 (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.0004315/0.2568, allocations: 0.8848 MB / 0.7974 GB, free: 0.8203 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0001769/0.2569, allocations: 107.7 kB / 0.7975 GB, free: 0.7148 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.257, allocations: 0 / 0.7975 GB, free: 0.7148 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 2.378e-05/0.257, allocations: 17.19 kB / 0.7975 GB, free: 0.6992 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002251/0.2572, allocations: 30.38 kB / 0.7975 GB, free: 0.6719 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001488/0.2587, allocations: 2.309 MB / 0.7998 GB, free: 14.26 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002767/0.259, allocations: 0.7241 MB / 0.8005 GB, free: 13.51 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 8.381e-05/0.2591, allocations: 32.61 kB / 0.8005 GB, free: 13.48 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.941e-05/0.2592, allocations: 31.42 kB / 0.8005 GB, free: 13.45 MB / 0.6231 GB Notification: Performance of SimCode: time 2.31e-07/0.2592, allocations: 0 / 0.8005 GB, free: 13.45 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01268/0.2718, allocations: 2.134 MB / 0.8026 GB, free: 11.46 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001705/0.2721, allocations: 186.9 kB / 0.8028 GB, free: 11.22 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.914/2.186, allocations: 7.938 kB / 0.8028 GB, free: 11.21 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/linux/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) Environment - environmentSimulation: