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.001011/0.001011, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.001218/0.001218, allocations: 172.7 kB / 15.95 MB, free: 208 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.697/1.697, allocations: 205.4 MB / 222.1 MB, free: 5.645 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.837/1.837, allocations: 292.7 MB / 0.5499 GB, free: 14.55 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.0005143/0.0005144, allocations: 15.59 kB / 0.6738 GB, free: 26.18 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2785/0.2791, allocations: 116.3 MB / 0.7874 GB, free: 11.84 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.004161/0.2833, allocations: 2.139 MB / 0.7895 GB, free: 9.691 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001772/0.2851, allocations: 0.7287 MB / 0.7902 GB, free: 8.961 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001285/0.2852, allocations: 4 kB / 0.7902 GB, free: 8.957 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001969/0.2855, allocations: 27.78 kB / 0.7902 GB, free: 8.93 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0003799/0.2859, allocations: 75.69 kB / 0.7903 GB, free: 8.855 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004012/0.2863, allocations: 91.39 kB / 0.7904 GB, free: 8.77 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003979/0.2867, allocations: 235.3 kB / 0.7906 GB, free: 8.539 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003462/0.287, allocations: 167.2 kB / 0.7908 GB, free: 8.352 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001141/0.2872, allocations: 63.77 kB / 0.7908 GB, free: 8.289 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002992/0.2875, allocations: 83.72 kB / 0.7909 GB, free: 8.207 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.744e-05/0.2875, allocations: 8 kB / 0.7909 GB, free: 8.199 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001352/0.2877, allocations: 55.89 kB / 0.791 GB, free: 8.145 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 6.212e-05/0.2877, allocations: 55.88 kB / 0.791 GB, free: 8.09 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 4.675e-05/0.2878, allocations: 53.58 kB / 0.7911 GB, free: 8.031 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002205/0.288, allocations: 163.8 kB / 0.7912 GB, free: 7.871 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.288, allocations: 0 / 0.7912 GB, free: 7.871 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.813e-06/0.288, allocations: 0 / 0.7912 GB, free: 7.871 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 8.536e-06/0.2881, allocations: 0 / 0.7912 GB, free: 7.871 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.0007844/0.2888, allocations: 427.1 kB / 0.7916 GB, free: 7.402 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.236e-05/0.2889, allocations: 8.031 kB / 0.7916 GB, free: 7.395 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.03e-05/0.289, allocations: 50.53 kB / 0.7917 GB, free: 7.336 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005849/0.2896, allocations: 51.77 kB / 0.7917 GB, free: 7.285 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003094/0.2899, allocations: 206.9 kB / 0.7919 GB, free: 7.043 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.444e-05/0.2899, allocations: 16.28 kB / 0.792 GB, free: 7.027 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.743e-05/0.29, allocations: 15.98 kB / 0.792 GB, free: 7.012 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005459/0.2905, allocations: 226.7 kB / 0.7922 GB, free: 6.77 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.212e-05/0.2906, allocations: 4 kB / 0.7922 GB, free: 6.766 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.867e-05/0.2906, allocations: 8 kB / 0.7922 GB, free: 6.758 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.346e-05/0.2907, allocations: 16.27 kB / 0.7922 GB, free: 6.742 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002392/0.2909, allocations: 144.7 kB / 0.7923 GB, free: 6.602 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001427/0.2923, allocations: 1.127 MB / 0.7934 GB, free: 5.34 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001173/0.2925, allocations: 46.5 kB / 0.7935 GB, free: 5.285 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.613e-05/0.2925, allocations: 12.86 kB / 0.7935 GB, free: 5.27 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.302e-05/0.2926, allocations: 12.03 kB / 0.7935 GB, free: 5.258 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.913e-05/0.2926, allocations: 34.56 kB / 0.7936 GB, free: 5.215 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=4): time 1.924e-06/0.2927, allocations: 0 / 0.7936 GB, free: 5.215 MB / 0.6075 GB Notification: Performance of matching and sorting (n=4): time 0.0002756/0.2929, allocations: 73.5 kB / 0.7936 GB, free: 5.137 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.613e-05/0.293, allocations: 51.41 kB / 0.7937 GB, free: 5.074 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002245/0.2932, allocations: 182.9 kB / 0.7938 GB, free: 4.883 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.574e-05/0.2933, allocations: 25.7 kB / 0.7939 GB, free: 4.852 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001223/0.2934, allocations: 147.4 kB / 0.794 GB, free: 4.703 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.788e-05/0.2934, allocations: 15.69 kB / 0.794 GB, free: 4.688 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.588e-06/0.2934, allocations: 4 kB / 0.794 GB, free: 4.684 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.000145/0.2936, allocations: 322.8 kB / 0.7943 GB, free: 4.359 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.019e-05/0.2937, allocations: 19.98 kB / 0.7944 GB, free: 4.34 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001201/0.2938, allocations: 89.44 kB / 0.7944 GB, free: 4.219 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.71e-05/0.2939, allocations: 31.92 kB / 0.7945 GB, free: 4.188 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.831e-06/0.2939, allocations: 4 kB / 0.7945 GB, free: 4.184 MB / 0.6075 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001977/0.2941, allocations: 129.4 kB / 0.7946 GB, free: 4.051 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 9.53e-05/0.2942, allocations: 172.6 kB / 0.7948 GB, free: 3.848 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.2943, allocations: 0 / 0.7948 GB, free: 3.848 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.329e-05/0.2943, allocations: 8 kB / 0.7948 GB, free: 3.84 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001053/0.2944, allocations: 23.98 kB / 0.7948 GB, free: 3.816 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.958e-06/0.2944, allocations: 4 kB / 0.7948 GB, free: 3.812 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001302/0.2945, allocations: 15.78 kB / 0.7948 GB, free: 3.797 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.577e-05/0.2946, allocations: 8 kB / 0.7948 GB, free: 3.789 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 7.855e-06/0.2946, allocations: 4 kB / 0.7948 GB, free: 3.785 MB / 0.6075 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002284/0.2948, allocations: 103.9 kB / 0.7949 GB, free: 3.684 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.51e-06/0.2948, allocations: 4 kB / 0.7949 GB, free: 3.68 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.903e-06/0.2949, allocations: 4 kB / 0.7949 GB, free: 3.676 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000103/0.295, allocations: 20.27 kB / 0.7949 GB, free: 3.656 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.771e-06/0.295, allocations: 7.953 kB / 0.795 GB, free: 3.648 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.773e-05/0.2951, allocations: 11.84 kB / 0.795 GB, free: 3.637 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.151e-05/0.2951, allocations: 15.94 kB / 0.795 GB, free: 3.621 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.0001581/0.2953, allocations: 205.1 kB / 0.7952 GB, free: 3.41 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.454e-05/0.2953, allocations: 11.91 kB / 0.7952 GB, free: 3.398 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.48e-05/0.2954, allocations: 24.91 kB / 0.7952 GB, free: 3.371 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.414e-06/0.2954, allocations: 0 / 0.7952 GB, free: 3.371 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.734e-06/0.2954, allocations: 3.953 kB / 0.7952 GB, free: 3.367 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.2954, allocations: 0 / 0.7952 GB, free: 3.367 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005836/0.296, allocations: 473.1 kB / 0.7957 GB, free: 2.836 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.296, allocations: 8.062 kB / 0.7957 GB, free: 2.828 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.924e-05/0.2961, allocations: 4 kB / 0.7957 GB, free: 2.824 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.065e-06/0.2961, allocations: 7.953 kB / 0.7957 GB, free: 2.816 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.737e-06/0.2961, allocations: 0 / 0.7957 GB, free: 2.816 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.068e-06/0.2961, allocations: 4 kB / 0.7957 GB, free: 2.812 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.2961, allocations: 4 kB / 0.7957 GB, free: 2.809 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001542/0.2963, allocations: 115.5 kB / 0.7958 GB, free: 2.668 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 8.714e-05/0.2964, allocations: 96.91 kB / 0.7959 GB, free: 2.555 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.599e-05/0.2964, allocations: 3.953 kB / 0.7959 GB, free: 2.551 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.23e-05/0.2965, allocations: 7.938 kB / 0.7959 GB, free: 2.543 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.262e-05/0.2965, allocations: 0 / 0.7959 GB, free: 2.543 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.084e-06/0.2965, allocations: 4 kB / 0.7959 GB, free: 2.539 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001245/0.2966, allocations: 124 kB / 0.796 GB, free: 2.418 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.7e-07/0.2967, allocations: 0 / 0.796 GB, free: 2.418 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0005721/0.2972, allocations: 59.78 kB / 0.7961 GB, free: 2.359 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.0004675/0.2977, allocations: 0.6422 MB / 0.7967 GB, free: 1.676 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002606/0.298, allocations: 111.7 kB / 0.7968 GB, free: 1.566 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.298, allocations: 0 / 0.7968 GB, free: 1.566 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 3.822e-05/0.298, allocations: 21.17 kB / 0.7968 GB, free: 1.547 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003685/0.2984, allocations: 23.98 kB / 0.7969 GB, free: 1.523 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001469/0.2999, allocations: 0.7988 MB / 0.7976 GB, free: 0.6406 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003752/0.3003, allocations: 0.7202 MB / 0.7983 GB, free: 15.89 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001274/0.3004, allocations: 32.61 kB / 0.7984 GB, free: 15.86 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.69e-05/0.3005, allocations: 35.42 kB / 0.7984 GB, free: 15.83 MB / 0.6231 GB Notification: Performance of SimCode: time 2.91e-07/0.3005, allocations: 0 / 0.7984 GB, free: 15.83 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01611/0.3166, allocations: 2.149 MB / 0.8005 GB, free: 13.82 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003339/0.317, allocations: 195.5 kB / 0.8007 GB, free: 13.58 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.881/2.198, allocations: 0 / 0.8007 GB, free: 13.58 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: