Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.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.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Electrical_AC_OnePhase_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.432/1.432, 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.0009857/0.0009854, allocations: 183 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.847/1.847, allocations: 205.4 MB / 0.5776 GB, free: 20.25 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.0009557/0.0009557, allocations: 85.83 kB / 0.6822 GB, free: 12.85 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004388/0.0004391, allocations: 12.25 kB / 0.7965 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2607/0.2611, allocations: 106.3 MB / 0.9003 GB, free: 63.75 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.002959/0.2642, allocations: 2.653 MB / 0.9029 GB, free: 61.08 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.002061/0.2662, allocations: 1.622 MB / 0.9045 GB, free: 59.45 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001163/0.2664, allocations: 0 / 0.9045 GB, free: 59.45 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001825/0.2666, allocations: 39.66 kB / 0.9045 GB, free: 59.41 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0004074/0.267, allocations: 159.3 kB / 0.9047 GB, free: 59.25 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003676/0.2674, allocations: 139.7 kB / 0.9048 GB, free: 59.11 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0002982/0.2677, allocations: 366.9 kB / 0.9052 GB, free: 58.75 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007043/0.2684, allocations: 0.4914 MB / 0.9056 GB, free: 58.23 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001554/0.2686, allocations: 107.6 kB / 0.9057 GB, free: 58.12 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002692/0.2688, allocations: 143.5 kB / 0.9059 GB, free: 57.98 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 3.218e-05/0.2689, allocations: 16 kB / 0.9059 GB, free: 57.96 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002591/0.2692, allocations: 143.8 kB / 0.906 GB, free: 57.82 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 7.562e-05/0.2692, allocations: 91.77 kB / 0.9061 GB, free: 57.73 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 4.978e-05/0.2693, allocations: 65.56 kB / 0.9062 GB, free: 57.66 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0002906/0.2696, allocations: 311.5 kB / 0.9065 GB, free: 57.36 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 6.903e-06/0.2696, allocations: 0 / 0.9065 GB, free: 57.36 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.753e-06/0.2696, allocations: 3.938 kB / 0.9065 GB, free: 57.36 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.751e-06/0.2696, allocations: 4 kB / 0.9065 GB, free: 57.35 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: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.0008331/0.2705, allocations: 0.5068 MB / 0.907 GB, free: 56.8 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.163e-05/0.2705, allocations: 8.031 kB / 0.907 GB, free: 56.79 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.481e-05/0.2706, allocations: 54.55 kB / 0.907 GB, free: 56.73 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000652/0.2712, allocations: 95.56 kB / 0.9071 GB, free: 56.63 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002538/0.2715, allocations: 254.7 kB / 0.9074 GB, free: 56.34 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.03e-05/0.2715, allocations: 12.44 kB / 0.9074 GB, free: 56.33 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001008/0.2716, allocations: 35.83 kB / 0.9074 GB, free: 56.29 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004825/0.2721, allocations: 373 kB / 0.9078 GB, free: 55.91 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.928e-05/0.2722, allocations: 3.953 kB / 0.9078 GB, free: 55.9 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.979e-05/0.2722, allocations: 11.98 kB / 0.9078 GB, free: 55.89 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.877e-05/0.2723, allocations: 32.41 kB / 0.9078 GB, free: 55.86 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000387/0.2727, allocations: 301.5 kB / 0.9081 GB, free: 55.57 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001463/0.2741, allocations: 1.533 MB / 0.9096 GB, free: 53.88 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004032/0.2746, allocations: 230.4 kB / 0.9098 GB, free: 53.64 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001416/0.2747, allocations: 119.5 kB / 0.9099 GB, free: 53.53 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001283/0.2749, allocations: 85.11 kB / 0.91 GB, free: 53.43 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.082e-05/0.2749, allocations: 34.56 kB / 0.9101 GB, free: 53.38 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=18): time 1.723e-06/0.2749, allocations: 0 / 0.9101 GB, free: 53.38 MB / 0.6042 GB Notification: Performance of matching and sorting (n=19): time 0.001089/0.276, allocations: 0.7895 MB / 0.9108 GB, free: 52.54 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.787e-05/0.276, allocations: 51.41 kB / 0.9109 GB, free: 52.48 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001479/0.2762, allocations: 203.8 kB / 0.9111 GB, free: 52.27 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.939e-05/0.2762, allocations: 29.7 kB / 0.9111 GB, free: 52.24 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 6.03e-05/0.2763, allocations: 159.9 kB / 0.9113 GB, free: 52.08 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 3.804e-05/0.2763, allocations: 74.92 kB / 0.9113 GB, free: 52 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.425e-05/0.2763, allocations: 4 kB / 0.9113 GB, free: 52 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.901e-05/0.2764, allocations: 326.8 kB / 0.9116 GB, free: 51.67 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001403/0.2766, allocations: 107.9 kB / 0.9117 GB, free: 51.57 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001614/0.2767, allocations: 182.1 kB / 0.9119 GB, free: 51.37 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001666/0.2769, allocations: 136.6 kB / 0.912 GB, free: 51.23 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.2769, allocations: 4 kB / 0.9121 GB, free: 51.23 MB / 0.6042 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006352/0.2775, allocations: 420 kB / 0.9125 GB, free: 50.81 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.798e-05/0.2776, allocations: 8 kB / 0.9125 GB, free: 50.8 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/0.2776, allocations: 0 / 0.9125 GB, free: 50.8 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004072/0.278, allocations: 92.89 kB / 0.9125 GB, free: 50.71 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002706/0.2783, allocations: 59.89 kB / 0.9126 GB, free: 50.65 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001492/0.2798, allocations: 1.734 MB / 0.9143 GB, free: 48.78 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002093/0.28, allocations: 23.97 kB / 0.9143 GB, free: 48.76 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.949e-05/0.28, allocations: 7.938 kB / 0.9143 GB, free: 48.75 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (26): * Single equations (assignments): 25 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001582/0.2802, allocations: 161.7 kB / 0.9145 GB, free: 48.58 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.171e-05/0.2803, allocations: 15.81 kB / 0.9145 GB, free: 48.57 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004366/0.2807, allocations: 299.4 kB / 0.9148 GB, free: 48.27 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.2807, allocations: 4 kB / 0.9148 GB, free: 48.27 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.243e-06/0.2807, allocations: 0 / 0.9148 GB, free: 48.27 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.2807, allocations: 0 / 0.9148 GB, free: 48.27 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007193/0.2815, allocations: 0.7011 MB / 0.9155 GB, free: 47.51 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.2815, allocations: 64 / 0.9155 GB, free: 47.51 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002816/0.2818, allocations: 63.95 kB / 0.9155 GB, free: 47.45 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.2818, allocations: 0 / 0.9155 GB, free: 47.45 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.002e-05/0.2818, allocations: 8 kB / 0.9155 GB, free: 47.44 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.364e-06/0.2818, allocations: 3.984 kB / 0.9155 GB, free: 47.43 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.2818, allocations: 4 kB / 0.9155 GB, free: 47.43 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005163/0.2823, allocations: 0.5107 MB / 0.916 GB, free: 46.9 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 8.66e-05/0.2824, allocations: 120.9 kB / 0.9162 GB, free: 46.76 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.927e-05/0.2825, allocations: 8 kB / 0.9162 GB, free: 46.75 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001693/0.2826, allocations: 11.98 kB / 0.9162 GB, free: 46.74 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.927e-05/0.2827, allocations: 11.98 kB / 0.9162 GB, free: 46.73 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.327e-05/0.2827, allocations: 4 kB / 0.9162 GB, free: 46.73 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0001156/0.2828, allocations: 144.1 kB / 0.9163 GB, free: 46.59 MB / 0.6042 GB Notification: Performance of sort global known variables: time 2.4e-07/0.2828, allocations: 0 / 0.9163 GB, free: 46.59 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0003202/0.2832, allocations: 64 kB / 0.9164 GB, free: 46.52 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (loa.q[1],loa.q[2]) * 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 (20): * Single equations (assignments): 20 * 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.0007593/0.2839, allocations: 1.058 MB / 0.9174 GB, free: 45.43 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0006443/0.2846, allocations: 430.6 kB / 0.9178 GB, free: 45 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.2846, allocations: 0 / 0.9178 GB, free: 45 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001328/0.2847, allocations: 123.8 kB / 0.918 GB, free: 44.88 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003797/0.2851, allocations: 36.73 kB / 0.918 GB, free: 44.84 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002178/0.2873, allocations: 1.689 MB / 0.9196 GB, free: 43.08 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002484/0.2876, allocations: 0.7675 MB / 0.9204 GB, free: 42.29 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.0001715/0.2878, allocations: 61.89 kB / 0.9205 GB, free: 42.23 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001105/0.2879, allocations: 75.41 kB / 0.9205 GB, free: 42.15 MB / 0.6042 GB Notification: Performance of SimCode: time 2.3e-07/0.2879, allocations: 0 / 0.9205 GB, free: 42.15 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01686/0.3047, allocations: 4.67 MB / 0.9251 GB, free: 37.7 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001843/0.305, allocations: 237.3 kB / 0.9253 GB, free: 37.46 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.836/2.141, allocations: 64 / 0.9253 GB, free: 37.46 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.fmu > Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1)