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.537/1.537, allocations: 251.9 MB / 266.9 MB, free: 11.07 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.001074/0.001074, allocations: 181.5 kB / 326.5 MB, free: 2.262 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.82/1.82, allocations: 205.4 MB / 0.5775 GB, free: 20.29 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.0009383/0.0009384, allocations: 88.61 kB / 0.6821 GB, free: 12.92 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003925/0.0003926, allocations: 9.438 kB / 0.7963 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2655/0.2659, allocations: 106.3 MB / 0.9001 GB, free: 63.9 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.002426/0.2684, allocations: 2.111 MB / 0.9022 GB, free: 61.77 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0009154/0.2693, allocations: 0.717 MB / 0.9029 GB, free: 61.05 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.689e-05/0.2694, allocations: 0 / 0.9029 GB, free: 61.05 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001347/0.2696, allocations: 31.84 kB / 0.9029 GB, free: 61.02 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0002138/0.2698, allocations: 67.75 kB / 0.903 GB, free: 60.96 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002207/0.27, allocations: 79.77 kB / 0.9031 GB, free: 60.88 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001522/0.2702, allocations: 111.8 kB / 0.9032 GB, free: 60.77 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002326/0.2704, allocations: 175.2 kB / 0.9034 GB, free: 60.57 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 5.709e-05/0.2705, allocations: 51.78 kB / 0.9034 GB, free: 60.52 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001632/0.2707, allocations: 59.81 kB / 0.9035 GB, free: 60.46 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.715e-05/0.2707, allocations: 8 kB / 0.9035 GB, free: 60.46 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001011/0.2708, allocations: 47.91 kB / 0.9035 GB, free: 60.41 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 4.073e-05/0.2708, allocations: 43.89 kB / 0.9036 GB, free: 60.37 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 3.946e-05/0.2709, allocations: 49.64 kB / 0.9036 GB, free: 60.31 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001748/0.2711, allocations: 163.9 kB / 0.9038 GB, free: 60.15 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 2.765e-06/0.2711, allocations: 3.938 kB / 0.9038 GB, free: 60.15 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.844e-06/0.2711, allocations: 0 / 0.9038 GB, free: 60.15 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.919e-06/0.2711, allocations: 0 / 0.9038 GB, free: 60.15 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.0004568/0.2716, allocations: 423.2 kB / 0.9042 GB, free: 59.68 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.839e-05/0.2716, allocations: 8.031 kB / 0.9042 GB, free: 59.68 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.984e-05/0.2716, allocations: 46.55 kB / 0.9042 GB, free: 59.62 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003372/0.272, allocations: 59.7 kB / 0.9043 GB, free: 59.56 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002071/0.2722, allocations: 210.8 kB / 0.9045 GB, free: 59.32 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.271e-05/0.2722, allocations: 12.22 kB / 0.9045 GB, free: 59.3 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.144e-05/0.2723, allocations: 16 kB / 0.9045 GB, free: 59.29 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000284/0.2725, allocations: 230.7 kB / 0.9047 GB, free: 59.04 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.124e-05/0.2726, allocations: 0 / 0.9047 GB, free: 59.04 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.683e-05/0.2726, allocations: 4 kB / 0.9047 GB, free: 59.04 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.028e-05/0.2726, allocations: 20.27 kB / 0.9047 GB, free: 59.02 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001778/0.2728, allocations: 144.7 kB / 0.9049 GB, free: 58.88 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007829/0.2736, allocations: 1.134 MB / 0.906 GB, free: 57.61 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 6.84e-05/0.2737, allocations: 46.52 kB / 0.906 GB, free: 57.55 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.46e-05/0.2737, allocations: 0 / 0.906 GB, free: 57.55 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.488e-05/0.2737, allocations: 30.66 kB / 0.9061 GB, free: 57.52 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=4): time 1.032e-06/0.2737, allocations: 0 / 0.9061 GB, free: 57.52 MB / 0.6042 GB Notification: Performance of matching and sorting (n=4): time 0.0001675/0.2739, allocations: 81.52 kB / 0.9061 GB, free: 57.43 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.617e-05/0.2739, allocations: 51.41 kB / 0.9062 GB, free: 57.37 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001265/0.2741, allocations: 177.8 kB / 0.9064 GB, free: 57.18 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.036e-05/0.2741, allocations: 25.7 kB / 0.9064 GB, free: 57.15 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 5.917e-05/0.2742, allocations: 143.3 kB / 0.9065 GB, free: 57.01 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 9.869e-06/0.2742, allocations: 11.91 kB / 0.9065 GB, free: 57 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.608e-06/0.2742, allocations: 0 / 0.9065 GB, free: 57 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.836e-05/0.2742, allocations: 322.8 kB / 0.9068 GB, free: 56.67 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.346e-05/0.2743, allocations: 19.98 kB / 0.9069 GB, free: 56.65 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.208e-05/0.2743, allocations: 93.31 kB / 0.907 GB, free: 56.53 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.478e-05/0.2744, allocations: 39.98 kB / 0.907 GB, free: 56.49 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.2744, allocations: 0 / 0.907 GB, free: 56.49 MB / 0.6042 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000148/0.2746, allocations: 141.2 kB / 0.9071 GB, free: 56.34 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001904/0.2748, allocations: 0.9641 MB / 0.9081 GB, free: 55.3 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/0.2748, allocations: 0 / 0.9081 GB, free: 55.3 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.555e-05/0.2748, allocations: 4 kB / 0.9081 GB, free: 55.3 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001006/0.2749, allocations: 27.92 kB / 0.9081 GB, free: 55.27 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.487e-06/0.2749, allocations: 8 kB / 0.9081 GB, free: 55.27 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.269e-05/0.275, allocations: 19.78 kB / 0.9081 GB, free: 55.25 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.448e-06/0.275, allocations: 8 kB / 0.9081 GB, free: 55.24 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 7.174e-06/0.275, allocations: 4 kB / 0.9081 GB, free: 55.23 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0001152/0.2751, allocations: 99.73 kB / 0.9082 GB, free: 55.14 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.274e-06/0.2751, allocations: 4 kB / 0.9082 GB, free: 55.13 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.485e-06/0.2751, allocations: 0 / 0.9082 GB, free: 55.13 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.56e-05/0.2752, allocations: 27.92 kB / 0.9083 GB, free: 55.11 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.138e-06/0.2752, allocations: 4 kB / 0.9083 GB, free: 55.1 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.857e-05/0.2753, allocations: 11.91 kB / 0.9083 GB, free: 55.09 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.202e-06/0.2753, allocations: 8 kB / 0.9083 GB, free: 55.08 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.502e-05/0.2754, allocations: 225.2 kB / 0.9085 GB, free: 54.85 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.463e-05/0.2754, allocations: 7.906 kB / 0.9085 GB, free: 54.84 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.884e-05/0.2754, allocations: 20.86 kB / 0.9085 GB, free: 54.82 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.2755, allocations: 0 / 0.9085 GB, free: 54.82 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.2755, allocations: 0 / 0.9085 GB, free: 54.82 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.2755, allocations: 0 / 0.9085 GB, free: 54.82 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002945/0.2758, allocations: 477.1 kB / 0.909 GB, free: 54.29 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.2758, allocations: 0 / 0.909 GB, free: 54.29 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.846e-05/0.2758, allocations: 7.938 kB / 0.909 GB, free: 54.28 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.2758, allocations: 4.281 kB / 0.909 GB, free: 54.27 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.033e-06/0.2758, allocations: 0 / 0.909 GB, free: 54.27 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/0.2758, allocations: 3.953 kB / 0.909 GB, free: 54.27 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.2759, allocations: 7.984 kB / 0.909 GB, free: 54.26 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001045/0.276, allocations: 148.8 kB / 0.9091 GB, free: 54.07 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 4.28e-05/0.276, allocations: 92.94 kB / 0.9092 GB, free: 53.96 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.718e-05/0.276, allocations: 3.938 kB / 0.9092 GB, free: 53.96 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.264e-05/0.2761, allocations: 4 kB / 0.9092 GB, free: 53.95 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.055e-05/0.2761, allocations: 8 kB / 0.9092 GB, free: 53.95 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.707e-06/0.2761, allocations: 4 kB / 0.9093 GB, free: 53.94 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 7.848e-05/0.2762, allocations: 120.9 kB / 0.9094 GB, free: 53.82 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2762, allocations: 0 / 0.9094 GB, free: 53.82 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0003068/0.2765, allocations: 51.84 kB / 0.9094 GB, free: 53.77 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.0002698/0.2768, allocations: 0.8886 MB / 0.9103 GB, free: 52.83 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0001613/0.277, allocations: 108.3 kB / 0.9104 GB, free: 52.73 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.277, allocations: 0 / 0.9104 GB, free: 52.73 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 2.189e-05/0.277, allocations: 23.92 kB / 0.9104 GB, free: 52.7 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002009/0.2772, allocations: 25.61 kB / 0.9104 GB, free: 52.68 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001065/0.2783, allocations: 2.301 MB / 0.9127 GB, free: 50.28 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001408/0.2784, allocations: 0.728 MB / 0.9134 GB, free: 49.52 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 8.127e-05/0.2785, allocations: 32.41 kB / 0.9134 GB, free: 49.49 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.325e-05/0.2786, allocations: 31.42 kB / 0.9135 GB, free: 49.46 MB / 0.6042 GB Notification: Performance of SimCode: time 2.31e-07/0.2786, allocations: 4 kB / 0.9135 GB, free: 49.45 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01225/0.2908, allocations: 2.137 MB / 0.9155 GB, free: 47.49 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001559/0.2911, allocations: 203 kB / 0.9157 GB, free: 47.25 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.64/1.931, allocations: 8 kB / 0.9157 GB, free: 47.24 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)