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.398/1.398, allocations: 251.9 MB / 266.9 MB, free: 10.99 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.001066/0.001066, allocations: 179.1 kB / 326.5 MB, free: 2.223 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.935/1.935, allocations: 205.4 MB / 0.5775 GB, free: 20.28 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.0009698/0.0009698, allocations: 88.23 kB / 0.6821 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000349/0.000349, allocations: 10.22 kB / 0.7963 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2739/0.2743, allocations: 106.3 MB / 0.9001 GB, free: 63.84 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.003765/0.2782, allocations: 2.614 MB / 0.9027 GB, free: 61.21 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.002702/0.2809, allocations: 1.607 MB / 0.9043 GB, free: 59.59 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002427/0.2812, allocations: 4 kB / 0.9043 GB, free: 59.59 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001975/0.2814, allocations: 31.77 kB / 0.9043 GB, free: 59.56 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.000493/0.2819, allocations: 143.5 kB / 0.9044 GB, free: 59.42 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004662/0.2824, allocations: 143.6 kB / 0.9046 GB, free: 59.28 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0002148/0.2826, allocations: 175.6 kB / 0.9047 GB, free: 59.11 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007303/0.2834, allocations: 495.2 kB / 0.9052 GB, free: 58.59 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001468/0.2835, allocations: 99.66 kB / 0.9053 GB, free: 58.49 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002424/0.2838, allocations: 107.6 kB / 0.9054 GB, free: 58.38 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.636e-05/0.2838, allocations: 12 kB / 0.9054 GB, free: 58.37 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002463/0.2841, allocations: 131.8 kB / 0.9056 GB, free: 58.24 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 8.457e-05/0.2842, allocations: 83.78 kB / 0.9056 GB, free: 58.16 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 5.204e-05/0.2842, allocations: 65.58 kB / 0.9057 GB, free: 58.09 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0003181/0.2845, allocations: 319.5 kB / 0.906 GB, free: 57.78 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.2845, allocations: 0 / 0.906 GB, free: 57.78 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.843e-06/0.2846, allocations: 0 / 0.906 GB, free: 57.78 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 7.003e-06/0.2846, allocations: 0 / 0.906 GB, free: 57.78 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.0008472/0.2854, allocations: 0.4951 MB / 0.9065 GB, free: 57.23 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.941e-05/0.2855, allocations: 12.03 kB / 0.9065 GB, free: 57.22 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.174e-05/0.2856, allocations: 62.48 kB / 0.9066 GB, free: 57.15 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007018/0.2863, allocations: 111.5 kB / 0.9067 GB, free: 57.04 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003299/0.2866, allocations: 252 kB / 0.9069 GB, free: 56.76 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.338e-05/0.2866, allocations: 20.42 kB / 0.9069 GB, free: 56.73 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001015/0.2867, allocations: 23.91 kB / 0.9069 GB, free: 56.71 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005153/0.2873, allocations: 369 kB / 0.9073 GB, free: 56.33 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.727e-05/0.2873, allocations: 7.891 kB / 0.9073 GB, free: 56.32 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.08e-05/0.2873, allocations: 16 kB / 0.9073 GB, free: 56.3 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.092e-05/0.2874, allocations: 24.42 kB / 0.9073 GB, free: 56.28 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004009/0.2878, allocations: 305.5 kB / 0.9076 GB, free: 55.98 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001441/0.2893, allocations: 1.537 MB / 0.9091 GB, free: 54.29 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003541/0.2897, allocations: 222.4 kB / 0.9093 GB, free: 54.07 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001172/0.2898, allocations: 89.09 kB / 0.9094 GB, free: 53.96 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.922e-05/0.2898, allocations: 34.56 kB / 0.9095 GB, free: 53.92 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=18): time 1.222e-06/0.2898, allocations: 0 / 0.9095 GB, free: 53.92 MB / 0.6042 GB Notification: Performance of matching and sorting (n=19): time 0.00107/0.2909, allocations: 0.7919 MB / 0.9102 GB, free: 53.08 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.468e-05/0.2909, allocations: 55.41 kB / 0.9103 GB, free: 53.01 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001601/0.2911, allocations: 191.9 kB / 0.9105 GB, free: 52.82 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 2.092e-05/0.2911, allocations: 29.7 kB / 0.9105 GB, free: 52.78 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 7.388e-05/0.2912, allocations: 159.9 kB / 0.9107 GB, free: 52.62 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 4.175e-05/0.2913, allocations: 78.92 kB / 0.9107 GB, free: 52.54 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.455e-05/0.2913, allocations: 4 kB / 0.9107 GB, free: 52.54 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 7.313e-05/0.2914, allocations: 330.8 kB / 0.911 GB, free: 52.21 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001409/0.2915, allocations: 119.9 kB / 0.9112 GB, free: 52.09 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001571/0.2917, allocations: 162.2 kB / 0.9113 GB, free: 51.91 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001699/0.2919, allocations: 140.6 kB / 0.9114 GB, free: 51.77 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-06/0.2919, allocations: 0 / 0.9114 GB, free: 51.77 MB / 0.6042 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006124/0.2925, allocations: 412 kB / 0.9118 GB, free: 51.36 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.846e-05/0.2925, allocations: 8 kB / 0.9118 GB, free: 51.36 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/0.2925, allocations: 0 / 0.9118 GB, free: 51.36 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003902/0.2929, allocations: 101 kB / 0.9119 GB, free: 51.25 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002351/0.2932, allocations: 55.89 kB / 0.912 GB, free: 51.2 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00154/0.2947, allocations: 1.765 MB / 0.9137 GB, free: 49.3 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000195/0.2949, allocations: 15.98 kB / 0.9137 GB, free: 49.28 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.985e-05/0.295, allocations: 8 kB / 0.9137 GB, free: 49.27 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.0001521/0.2951, allocations: 157.8 kB / 0.9139 GB, free: 49.11 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.503e-05/0.2952, allocations: 23.77 kB / 0.9139 GB, free: 49.09 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004281/0.2956, allocations: 295.3 kB / 0.9142 GB, free: 48.8 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.2956, allocations: 4 kB / 0.9142 GB, free: 48.79 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.854e-06/0.2956, allocations: 0 / 0.9142 GB, free: 48.79 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.581e-06/0.2956, allocations: 7.938 kB / 0.9142 GB, free: 48.79 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000769/0.2964, allocations: 0.6971 MB / 0.9149 GB, free: 48.03 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-06/0.2964, allocations: 3.938 kB / 0.9149 GB, free: 48.02 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002739/0.2967, allocations: 63.89 kB / 0.915 GB, free: 47.96 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.395e-06/0.2967, allocations: 0 / 0.915 GB, free: 47.96 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.907e-05/0.2967, allocations: 8 kB / 0.915 GB, free: 47.95 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/0.2967, allocations: 3.984 kB / 0.915 GB, free: 47.95 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.2968, allocations: 4 kB / 0.915 GB, free: 47.95 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004969/0.2973, allocations: 0.5346 MB / 0.9155 GB, free: 47.38 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 9.896e-05/0.2974, allocations: 116.9 kB / 0.9156 GB, free: 47.25 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.072e-05/0.2974, allocations: 4 kB / 0.9156 GB, free: 47.24 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001656/0.2976, allocations: 16.05 kB / 0.9156 GB, free: 47.23 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.131e-05/0.2976, allocations: 19.91 kB / 0.9156 GB, free: 47.21 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.256e-05/0.2976, allocations: 8 kB / 0.9157 GB, free: 47.2 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0001122/0.2978, allocations: 140.1 kB / 0.9158 GB, free: 47.06 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2978, allocations: 4 kB / 0.9158 GB, free: 47.06 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0003477/0.2981, allocations: 64 kB / 0.9159 GB, free: 47 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.0008341/0.299, allocations: 1.22 MB / 0.917 GB, free: 45.73 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0006622/0.2996, allocations: 430.6 kB / 0.9175 GB, free: 45.3 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.2997, allocations: 0 / 0.9175 GB, free: 45.3 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001436/0.2998, allocations: 119.9 kB / 0.9176 GB, free: 45.18 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00032/0.3001, allocations: 28.17 kB / 0.9176 GB, free: 45.16 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002717/0.3029, allocations: 2.593 MB / 0.9201 GB, free: 42.48 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002342/0.3031, allocations: 0.7792 MB / 0.9209 GB, free: 41.67 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.0001663/0.3033, allocations: 57.91 kB / 0.9209 GB, free: 41.62 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.89e-05/0.3034, allocations: 59.42 kB / 0.921 GB, free: 41.56 MB / 0.6042 GB Notification: Performance of SimCode: time 3.31e-07/0.3034, allocations: 0 / 0.921 GB, free: 41.56 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01661/0.32, allocations: 4.664 MB / 0.9256 GB, free: 37.11 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002179/0.3203, allocations: 233.4 kB / 0.9258 GB, free: 36.87 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.693/2.013, allocations: 2.531 kB / 0.9258 GB, free: 36.87 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)